public function save($blnSaveModifiedDate = TRUE) { parent::$object = "Template"; parent::$table = "pcms_template"; $intId = $this->getId(); $blnReturn = parent::save($blnSaveModifiedDate); if (class_exists("AuditLog")) { AuditLog::addLog(AUDIT_TYPE_TEMPLATE, $this->getId(), $this->getName(), empty($intId) ? "create" : "edit"); } return $blnReturn; }