feature to filter for only public events (no events tacked as private)

This commit is contained in:
Klaus Leithoff 2010-04-26 07:08:23 +00:00
parent f47cced6ed
commit 09ea5fe114
2 changed files with 3 additions and 0 deletions

View File

@ -404,6 +404,8 @@ class calendar_so
}
switch($filter)
{
case 'showonlypublic':
$where[] = "cal_public=1"; break;
case 'deleted':
$where[] = 'cal_deleted='.$this->db->quote(true,'bool');
case 'unknown':

View File

@ -696,6 +696,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)
{