/** * */ protected function _beforeInsert() { parent::_beforeInsert(); if (!$this->__get('profile_name')) { $this->setProfileName(uniqid('event-')); } }
/** * */ protected function _beforeUpdate() { parent::_beforeUpdate(); if (empty($this->description)) { $this->setDescription(substr(strip_tags($this->getContent()), 0, 255)); } }
/** * before insert checking */ public function _beforeInsert() { parent::_beforeInsert(); if (null == $this->__get('profile_name')) { $this->setProfileName(uniqid('page-')); } }
/** * Before insert */ public function _beforeInsert() { if (empty($this->getSectionId())) { $this->setSectionId(app()->layouts()->_generateNewId()); } parent::_beforeInsert(); }
/** * */ protected function _beforeInsert() { parent::_beforeInsert(); if (!$this->__get('profile_name')) { $this->__set('profile_name', uniqid('group-')); } }