Add an IsCalendar() method.

This commit is contained in:
Andrew McMillan 2009-10-06 14:33:30 +13:00
parent 3a83eb06fb
commit abf596f7d8

View File

@ -682,6 +682,15 @@ EOSQL;
}
/**
* Returns true if the URL referenced by this request points at a calendar collection.
*/
function IsCalendar( ) {
if ( !$this->IsCollection() ) return false;
return $this->collection->is_calendar;
}
/**
* Returns true if the URL referenced by this request points at a principal.
*/