Exemplo n.º 1
0
Arquivo: Image.php Projeto: semnt/tp01
 public function getModelAttributes()
 {
     $attrs = parent::getModelAttributes();
     $model = $this->getModel();
     $attrs['mid_src'] = $model->getImageSrc('mid');
     return $attrs;
 }
Exemplo n.º 2
0
Arquivo: User.php Projeto: semnt/tp01
 public function getModelAttributes()
 {
     $model = $this->getModel();
     $attrs = parent::getModelAttributes();
     $attrs['groups'] = $model->getGroups();
     $attrs['enabled'] = $model->getEnabled();
     return $attrs;
 }