/** Checks the data of the item. * * @return boolean TRUE if data is valid FALSE otherwise */ function isValid() { // mandatory fields set? $title = $this->getTitle(); $start_day = $this->getStartingDay(); return parent::isValid() and !empty($title) and !empty($start_day); }