setOpenElementsFromCurrentEvent() 보호된 메소드

based on the current state of the controller, sets the open_elements property, which is the array of relevant open elements for the controller.
protected setOpenElementsFromCurrentEvent ( $action )
 public function setOpenElementsFromCurrentEvent($action)
 {
     parent::setOpenElementsFromCurrentEvent($action);
 }
예제 #2
0
 /**
  * Extend base function to ensure there is always an exceptional circumstances for updates.
  */
 protected function setOpenElementsFromCurrentEvent($action)
 {
     if ($action == 'update') {
         $this->setRequiredEventElements();
         $this->setElementOptions($action);
     } else {
         parent::setOpenElementsFromCurrentEvent($action);
     }
 }