Exemple #1
0
 /**
  * Section constructor.
  * @param array|null $data The object's data options.
  */
 public function __construct($data = null)
 {
     parent::__construct($data);
     $this->setData($this->defaultData());
 }
 /**
  * {@inheritdoc}
  *
  * @param array $properties Optional properties to update.
  * @return boolean
  */
 public function preUpdate(array $properties = null)
 {
     $this->setSlug($this->generateSlug());
     return parent::preUpdate($properties);
 }