function get($sPropName)
{
if ($sPropName === "todos") {
# TRUE if components contains VTODO, FALSE otherwise
if (($sComponents = $this->get("components")) !== "") {
$aComponents = explode(",", $sComponents);
} else {
$aComponents = [];
}
return in_array("VTODO", $aComponents);
}
if ($sPropName === "notes") {
# TRUE if components contains VJOURNAL, FALSE otherwise
if (($sComponents = $this->get("components")) !== "") {
$aComponents = explode(",", $sComponents);
} else {
$aComponents = [];
}
return in_array("VJOURNAL", $aComponents);
}
return parent::get($sPropName);
}