Beispiel #1
0
 /**
  * Wrpper to edit holidays
  *
  * @param unknown_type $modifier
  */
 public function editHoliday($modifier = "specific")
 {
     $this->_authenticateViewHoliday();
     switch ($modifier) {
         case "specific":
             $objLeave = $this->getObjLeave();
             $this->getObjLeave()->edit();
             Leave::updateLeavesForDate($objLeave->getDate(), $objLeave->getLength());
             break;
         case "weekend":
             $this->getObjLeave()->editDay();
             break;
     }
 }