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