Moved filter labels to BO

This commit is contained in:
Ralf Becker 2009-05-05 12:48:38 +00:00
parent 272817b1c7
commit 7bc380fab9
2 changed files with 28 additions and 20 deletions

View File

@ -95,6 +95,31 @@ class infolog_bo
*/ */
var $max_line_chars = 40; var $max_line_chars = 40;
/**
* Available filters
*
* @var array filter => label pairs
*/
var $filters = array(
'none' => 'no Filter',
'done' => 'done',
'responsible' => 'responsible',
'responsible-open-today' => 'responsible open',
'responsible-open-overdue' => 'responsible overdue',
'responsible-upcoming' => 'responsible upcoming',
'delegated' => 'delegated',
'delegated-open-today' => 'delegated open',
'delegated-open-overdue' => 'delegated overdue',
'delegated-upcoming' => 'delegated upcomming',
'own' => 'own',
'own-open-today' => 'own open',
'own-open-overdue' => 'own overdue',
'own-upcoming' => 'own upcoming',
'open-today' => 'open',
'open-overdue' => 'overdue',
'upcoming' => 'upcoming',
);
/** /**
* Constructor Infolog BO * Constructor Infolog BO
* *

View File

@ -75,25 +75,7 @@ class infolog_ui
'ongoing' => 'ongoing.gif', 'ongoing_alt' => 'ongoing', 'ongoing' => 'ongoing.gif', 'ongoing_alt' => 'ongoing',
'offer' => 'offer.gif', 'offer_alt' => 'offer' ) 'offer' => 'offer.gif', 'offer_alt' => 'offer' )
); );
var $filters = array( var $filters;
'none' => 'no Filter',
'done' => 'done',
'responsible' => 'responsible',
'responsible-open-today' => 'responsible open',
'responsible-open-overdue' => 'responsible overdue',
'responsible-upcoming' => 'responsible upcoming',
'delegated' => 'delegated',
'delegated-open-today' => 'delegated open',
'delegated-open-overdue' => 'delegated overdue',
'delegated-upcoming' => 'delegated upcomming',
'own' => 'own',
'own-open-today' => 'own open',
'own-open-overdue' => 'own overdue',
'own-upcoming' => 'own upcoming',
'open-today' => 'open',
'open-overdue' => 'overdue',
'upcoming' => 'upcoming',
);
var $messages = array( var $messages = array(
'edit' => 'InfoLog - Edit', 'edit' => 'InfoLog - Edit',
'add' => 'InfoLog - New', 'add' => 'InfoLog - New',
@ -124,6 +106,7 @@ class infolog_ui
$this->duration_format = str_replace(',','',$pm_config['duration_units']).','.$pm_config['hours_per_workday']; $this->duration_format = str_replace(',','',$pm_config['duration_units']).','.$pm_config['hours_per_workday'];
unset($pm_config); unset($pm_config);
} }
$this->filters =& $this->bo->filters;
/* these are just for testing of the notifications /* these are just for testing of the notifications
for($i = -1; $i <= 3; ++$i) for($i = -1; $i <= 3; ++$i)
{ {