Exemplo n.º 1
0
 /**
  * Notify observers on update/create
  * 
  * @param string $a_action
  * @param ilNote $a_note 
  */
 protected function notifyObserver($a_action, $a_note)
 {
     if (sizeof($this->observer)) {
         foreach ($this->observer as $item) {
             $param = $a_note->getObject();
             $param["action"] = $a_action;
             $param["note_id"] = $a_note->getId();
             call_user_func_array($item, $param);
         }
     }
 }