mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
61317978ce
- Extended functionalities to Widget class - Only one view for the dropdown html element - Updated system/aufnahme/prestudentMultiAssign.php - Updated affected widgets
23 lines
563 B
PHP
23 lines
563 B
PHP
<?php
|
|
|
|
class Stufe_widget extends DropdownWidget
|
|
{
|
|
public function display($widgetData)
|
|
{
|
|
// Stufe
|
|
$this->load->model('crm/Reihungstest_model', 'ReihungstestModel');
|
|
$this->ReihungstestModel->addSelect('DISTINCT ON(stufe) stufe');
|
|
$this->ReihungstestModel->addOrder('stufe');
|
|
|
|
$this->addSelectToModel($this->ReihungstestModel, 'stufe', 'stufe');
|
|
|
|
$this->setElementsArray(
|
|
$this->ReihungstestModel->loadWhere('stufe IS NOT NULL'),
|
|
true,
|
|
'Select a stufe...',
|
|
'No stufen found'
|
|
);
|
|
|
|
$this->loadDropDownView($widgetData);
|
|
}
|
|
} |