/** * Pre-update hook. If overridden, should be called at end of function. * * @return void */ protected function _update() { if ($this->_disableHooks) { return; } Engine_Hooks_Dispatcher::getInstance()->callEvent('on' . $this->getType(true) . 'UpdateBefore', $this); Engine_Hooks_Dispatcher::getInstance()->callEvent('onItemUpdateBefore', $this); // Update modified if (is_array($this->_modifiedTriggers) && isset($this->modified_date) && empty($this->_modifiedFields['modified_date']) && count(array_intersect_key((array) @$this->_modifiedFields, array_flip($this->_modifiedTriggers))) > 0) { $this->modified_date = date('Y-m-d H:i:s'); //new Zend_Db_Expr('NOW()'); } parent::_update(); }