Files
FHC-Core/application/widgets/Organisationseinheit_widget.php
T
Paolo 9dc9a712c4 - Moved file to manage vorlage into subdir vorlage
- Updated sprache, orgform, organisationseinheit and vorlage to the new
widget
- Changed method getRecursiveList of model Organisationseinheit_model
- Updated vilesci_menu_main.inc.php
- Changed method loadDropDownView of WidgetLib: if a selected value is
not given, by default it is set as HTML_DEFAULT_VALUE
- Updated all the affectd files
2017-03-29 16:57:29 +02:00

21 lines
556 B
PHP
Executable File

<?php
class Organisationseinheit_widget extends DropdownWidget
{
public function display($widgetData)
{
$this->load->model('organisation/Organisationseinheit_model', 'OrganisationseinheitModel');
if (isset($widgetData['typ']))
$typ = $widgetData['typ'];
else
$typ = null;
// NOTE: no need to call addSelectToModel because getRecursiveList already returns
// the correct names of the fields
$this->setElementsArray($this->OrganisationseinheitModel->getRecursiveList($typ));
$this->loadDropDownView($widgetData);
}
}