|
|
@@ -211,43 +211,53 @@ class Data_Source {
|
|
|
$fltrs = array();
|
|
|
|
|
|
if ($this->_showMsgsSpecialFilter) {
|
|
|
- $fltrs['Msgs'] = new stdClass();
|
|
|
- $fltrs['Msgs']->icon = 'glyphicon glyphicon-envelope';
|
|
|
- $fltrs['Msgs']->label = 'Wiadomości';
|
|
|
- $fltrs['Msgs']->btns = array();
|
|
|
- $fltrs['Msgs']->btns['WIADOMOSCI'] = (object)array('value'=>'HAS_MSGS');
|
|
|
- $fltrs['Msgs']->btns['NOWE'] = (object)array('value'=>'NEW_MSGS');
|
|
|
- $fltrs['Msgs']->btns['BRAK_WIAD.'] = (object)array('value'=>'NO_MSGS');
|
|
|
+ $fltrs['Msgs'] = (object)[
|
|
|
+ 'icon' => 'glyphicon glyphicon-envelope',
|
|
|
+ 'label' => 'Wiadomości',
|
|
|
+ 'btns' => [
|
|
|
+ 'WIADOMOSCI' => (object)[ 'value' => 'HAS_MSGS' ],
|
|
|
+ 'NOWE' => (object)[ 'value' => 'NEW_MSGS' ],
|
|
|
+ 'BRAK_WIAD.' => (object)[ 'value' => 'NO_MSGS' ],
|
|
|
+ ],
|
|
|
+ ];
|
|
|
}
|
|
|
if (array_key_exists('A_PROBLEM', $this->_cols)) {
|
|
|
- $fltrs['Problemy'] = new stdClass();
|
|
|
- $fltrs['Problemy']->icon = 'glyphicon glyphicon-warning-sign';
|
|
|
- $fltrs['Problemy']->btns = array();
|
|
|
- $fltrs['Problemy']->btns['PROBLEMY'] = (object)array('value'=>'PROBLEM');
|
|
|
- $fltrs['Problemy']->btns['OSTRZEZENIA'] = (object)array('value'=>'WARNING');
|
|
|
- $fltrs['Problemy']->btns['BEZ_PROBLEM.'] = (object)array('value'=>'NORMAL');
|
|
|
+ $fltrs['Problemy'] = (object)[
|
|
|
+ 'icon' => 'glyphicon glyphicon-warning-sign',
|
|
|
+ 'btns' => [
|
|
|
+ 'PROBLEMY' => (object)[ 'value' => 'PROBLEM' ],
|
|
|
+ 'OSTRZEZENIA' => (object)[ 'value' => 'WARNING' ],
|
|
|
+ 'BEZ_PROBLEM.' => (object)[ 'value' => 'NORMAL' ],
|
|
|
+ ],
|
|
|
+ ];
|
|
|
}
|
|
|
if (array_key_exists('A_STATUS', $this->_cols)) {
|
|
|
- $fltrs['Status'] = new stdClass();
|
|
|
- $fltrs['Status']->icon = 'glyphicon glyphicon-question-sign';
|
|
|
- $fltrs['Status']->btns = array();
|
|
|
- $fltrs['Status']->btns['OCZEKUJACY'] = (object)array('value'=>'WAITING');
|
|
|
- $fltrs['Status']->btns['AKTYWNI'] = (object)array('value'=>'AKTYWNI');
|
|
|
+ $fltrs['Status'] = (object)[
|
|
|
+ 'icon' => 'glyphicon glyphicon-question-sign',
|
|
|
+ 'btns' => [
|
|
|
+ 'OCZEKUJACY' => (object)[ 'value' => 'WAITING' ],
|
|
|
+ 'AKTYWNI' => (object)[ 'value' => 'AKTYWNI' ],
|
|
|
+ ],
|
|
|
+ ];
|
|
|
}
|
|
|
if (array_key_exists('L_APPOITMENT_DATE', $this->_cols)) {
|
|
|
- $fltrs['Spotkania'] = new stdClass();
|
|
|
- $fltrs['Spotkania']->icon = 'glyphicon glyphicon-calendar';
|
|
|
- $fltrs['Spotkania']->btns = array();
|
|
|
- $fltrs['Spotkania']->btns['STARE'] = (object)array('value'=>'OLD');
|
|
|
- $fltrs['Spotkania']->btns['ZARAZ'] = (object)array('value'=>'NOW');
|
|
|
- $fltrs['Spotkania']->btns['DZISIAJ'] = (object)array('value'=>'TODAY');
|
|
|
- $fltrs['Spotkania']->btns['BRAK'] = (object)array('value'=>'BRAK');
|
|
|
+ $fltrs['Spotkania'] = (object)[
|
|
|
+ 'icon' => 'glyphicon glyphicon-calendar',
|
|
|
+ 'btns' => [
|
|
|
+ 'STARE' => (object)[ 'value' => 'OLD' ],
|
|
|
+ 'ZARAZ' => (object)[ 'value' => 'NOW' ],
|
|
|
+ 'DZISIAJ' => (object)[ 'value' => 'TODAY' ],
|
|
|
+ 'BRAK' => (object)[ 'value' => 'BRAK' ],
|
|
|
+ ],
|
|
|
+ ];
|
|
|
}
|
|
|
if ($this->isAccessFltrAllowed()) {
|
|
|
- $fltrs['Access'] = new stdClass();
|
|
|
- $fltrs['Access']->icon = 'glyphicon glyphicon-lock';
|
|
|
- $fltrs['Access']->btns = array();
|
|
|
- $fltrs['Access']->btns['Pokaż'] = (object)array('value'=>'SHOW');
|
|
|
+ $fltrs['Access'] = (object)[
|
|
|
+ 'icon' => 'glyphicon glyphicon-lock',
|
|
|
+ 'btns' => [
|
|
|
+ 'Pokaż' => (object)[ 'value' => 'SHOW' ],
|
|
|
+ ],
|
|
|
+ ];
|
|
|
}
|
|
|
return $fltrs;
|
|
|
}
|