Example #1
0
 public function clearSchedule()
 {
     if ($this->id > 0) {
         $objSchedules = ElementSchedule::selectByElement($this->id);
         foreach ($objSchedules as $objSchedule) {
             $objSchedule->delete();
         }
     }
 }