|
|
@ -96,7 +96,7 @@ class OC_Calendar_Calendar{ |
|
|
|
* @param string $components Default: "VEVENT,VTODO,VJOURNAL" |
|
|
|
* @param string $components Default: "VEVENT,VTODO,VJOURNAL" |
|
|
|
* @param string $timezone Default: null |
|
|
|
* @param string $timezone Default: null |
|
|
|
* @param integer $order Default: 1 |
|
|
|
* @param integer $order Default: 1 |
|
|
|
* @param string $color Default: null |
|
|
|
* @param string $color Default: null, format: '#RRGGBB(AA)' |
|
|
|
* @return insertid |
|
|
|
* @return insertid |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static function addCalendar($userid,$name,$components='VEVENT,VTODO,VJOURNAL',$timezone=null,$order=0,$color=null){ |
|
|
|
public static function addCalendar($userid,$name,$components='VEVENT,VTODO,VJOURNAL',$timezone=null,$order=0,$color=null){ |
|
|
@ -122,7 +122,7 @@ class OC_Calendar_Calendar{ |
|
|
|
* @param string $components |
|
|
|
* @param string $components |
|
|
|
* @param string $timezone |
|
|
|
* @param string $timezone |
|
|
|
* @param integer $order |
|
|
|
* @param integer $order |
|
|
|
* @param string $color |
|
|
|
* @param string $color format: '#RRGGBB(AA)' |
|
|
|
* @return insertid |
|
|
|
* @return insertid |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static function addCalendarFromDAVData($principaluri,$uri,$name,$components,$timezone,$order,$color){ |
|
|
|
public static function addCalendarFromDAVData($principaluri,$uri,$name,$components,$timezone,$order,$color){ |
|
|
@ -141,7 +141,7 @@ class OC_Calendar_Calendar{ |
|
|
|
* @param string $components Default: null |
|
|
|
* @param string $components Default: null |
|
|
|
* @param string $timezone Default: null |
|
|
|
* @param string $timezone Default: null |
|
|
|
* @param integer $order Default: null |
|
|
|
* @param integer $order Default: null |
|
|
|
* @param string $color Default: null |
|
|
|
* @param string $color Default: null, format: '#RRGGBB(AA)' |
|
|
|
* @return boolean |
|
|
|
* @return boolean |
|
|
|
* |
|
|
|
* |
|
|
|
* Values not null will be set |
|
|
|
* Values not null will be set |
|
|
@ -230,20 +230,20 @@ class OC_Calendar_Calendar{ |
|
|
|
} |
|
|
|
} |
|
|
|
public static function getCalendarColorOptions(){ |
|
|
|
public static function getCalendarColorOptions(){ |
|
|
|
return array( |
|
|
|
return array( |
|
|
|
'ff0000', // "Red" |
|
|
|
'#ff0000', // "Red" |
|
|
|
'b3dc6c', // "Green" |
|
|
|
'#b3dc6c', // "Green" |
|
|
|
'ffff00', // "Yellow" |
|
|
|
'#ffff00', // "Yellow" |
|
|
|
'808000', // "Olive" |
|
|
|
'#808000', // "Olive" |
|
|
|
'ffa500', // "Orange" |
|
|
|
'#ffa500', // "Orange" |
|
|
|
'ff7f50', // "Coral" |
|
|
|
'#ff7f50', // "Coral" |
|
|
|
'ee82ee', // "Violet" |
|
|
|
'#ee82ee', // "Violet" |
|
|
|
'9fc6e7', // "light blue" |
|
|
|
'#9fc6e7', // "light blue" |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
public static function getEventSourceInfo($calendar){ |
|
|
|
public static function getEventSourceInfo($calendar){ |
|
|
|
return array( |
|
|
|
return array( |
|
|
|
'url' => 'ajax/events.php?calendar_id='.$calendar['id'], |
|
|
|
'url' => 'ajax/events.php?calendar_id='.$calendar['id'], |
|
|
|
'backgroundColor' => '#'.$calendar['calendarcolor'], |
|
|
|
'backgroundColor' => $calendar['calendarcolor'], |
|
|
|
'borderColor' => '#888', |
|
|
|
'borderColor' => '#888', |
|
|
|
'textColor' => 'black', |
|
|
|
'textColor' => 'black', |
|
|
|
'cache' => true, |
|
|
|
'cache' => true, |
|
|
|