Example #1
0
 /**
  *
  */
 protected function _beforeInsert()
 {
     parent::_beforeInsert();
     if (!$this->__get('profile_name')) {
         $this->setProfileName(uniqid('event-'));
     }
 }
Example #2
0
 /**
  *
  */
 protected function _beforeInsert()
 {
     parent::_beforeInsert();
     if (empty($this->description)) {
         $this->setDescription(substr(strip_tags($this->getContent()), 0, 255));
     }
 }
Example #3
0
 /**
  * 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();
 }
Example #5
0
 /**
  *
  */
 protected function _beforeInsert()
 {
     parent::_beforeInsert();
     if (!$this->__get('profile_name')) {
         $this->__set('profile_name', uniqid('group-'));
     }
 }