add function isrepeating to OC_Calendar_Object class and change OC_Calendar_Object::getUTCforMDB from protected to public

This commit is contained in:
Georg Ehrke 2012-06-11 17:15:50 +02:00
parent 2dd84373c1
commit 009c4c9045
1 changed files with 6 additions and 1 deletions

View File

@ -300,7 +300,7 @@ class OC_Calendar_Object{
* This function creates a date string that can be used by MDB2.
* Furthermore it converts the time to UTC.
*/
protected static function getUTCforMDB($datetime){
public static function getUTCforMDB($datetime){
return date('Y-m-d H:i', $datetime->format('U') - $datetime->getOffset());
}
@ -802,4 +802,9 @@ class OC_Calendar_Object{
$event = self::find($id);
return $event['calendarid'];
}
public static function isrepeating($id){
$event = self::find($id);
return ($event['repeating'] == 1)?true:false;
}
}