feature to allow filter for public events only

This commit is contained in:
Klaus Leithoff 2010-05-03 14:03:11 +00:00
parent e016d9ed16
commit fbfdb38852
2 changed files with 4 additions and 0 deletions

View File

@ -400,6 +400,9 @@ class calendar_so
switch($filter)
{
case 'showonlypublic':
$where[] = "cal_public=1";
$where[] = "cal_status != 'R'"; break;
case 'unknown':
$where[] = "cal_status='U'"; break;
case 'accepted':

View File

@ -691,6 +691,7 @@ class calendar_ui
'owner' => array(lang('Owner too'),lang('Show also events just owned by selected user')),
'all' => array(lang('All incl. rejected'),lang('Show all status incl. rejected events')),
'hideprivate' => array(lang('Hide private infos'),lang('Show all events, as if they were private')),
'showonlypublic' => array(lang('Hide private events'),lang('Show only events flagged as public, (not checked as private)')),
'no-enum-groups' => array(lang('only group-events'),lang('Do not include events of group members')),
) as $value => $label)
{