mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-27 02:54:27 +00:00
Add an IsCalendar() method.
This commit is contained in:
parent
3a83eb06fb
commit
abf596f7d8
@ -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.
|
* Returns true if the URL referenced by this request points at a principal.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user