mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 01:42:17 +00:00
- Merged controller system/infocenter/InfoCenter.php into system/infocenter/InfocenterDetails.php
- Removed controller application/controllers/system/infocenter/InfocenterDetails.php - Removed method _getFilterList from controller system/infocenter/InfoCenter.php - Added method _setNavigationMenuArray to controller system/infocenter/InfoCenter.php to generate the array for the left menu - Added public method getFilterList to model Filters_model - Removed view application/views/widgets/navigation.php - Removed widget application/widgets/navigation.php - Widget application/widgets/FHC_navigation.php now is usable to print any menu from an array
This commit is contained in:
@@ -11,4 +11,24 @@ class Filters_model extends DB_Model
|
||||
$this->dbTable = 'system.tbl_filters';
|
||||
$this->pk = 'filter_id';
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function getFilterList($app, $dataset_name, $filter_kurzbz)
|
||||
{
|
||||
$this->addSelect('filter_id, description');
|
||||
$this->addOrder('sort', 'ASC');
|
||||
|
||||
$filterParametersArray = array(
|
||||
'app' => $app,
|
||||
'dataset_name' => $dataset_name,
|
||||
'person_id' => null,
|
||||
'default_filter' => false,
|
||||
'array_length(description, 1) >' => 0,
|
||||
'filter_kurzbz ILIKE' => $filter_kurzbz
|
||||
);
|
||||
|
||||
return $this->FiltersModel->loadWhere($filterParametersArray);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user