public function postDuplicate(&$copyFrom) { $err = parent::postDuplicate($copyFrom); $err .= $this->cleanDate(); if ($err) { error_log(__FILE__ . ":" . __LINE__ . ":" . __METHOD__ . " " . $err . "\n"); } }
/** * Hook executed after the store * * @return string|void */ public function postStore() { $err = parent::postStore(); $err .= $this->refreshAudit(); if ($err) { error_log(__FILE__ . ":" . __LINE__ . ":" . __METHOD__ . " " . $err . "\n"); } }
public function preDelete() { $msg = parent::preDelete(); $msg .= $this->checkIfAssociatedChapterExist(); return $msg; }