protected function _fillSeourl() { if (empty($this->title)) { $this->title = $this->name; } if (empty($this->seourl)) { $this->seourl = Translit::url($this->title); } }
protected function fillSeourl(StructureRecord $model) { if (empty($model->title)) { $model->title = $model->label; } if (empty($model->seourl)) { $model->seourl = Translit::url($model->title); } }