Ejemplo n.º 1
0
 protected function afterFind()
 {
     if (!$this->face) {
         $this->face = $this->defaultFace;
     }
     return parent::afterFind();
 }
Ejemplo n.º 2
0
 protected function afterFind()
 {
     if (!$this->face) {
         $this->face = $this->defaultFace;
     }
     $this->face_48 = $this->face && DxdUtil::xImage($this->face, 48, 48) ? Yii::app()->baseUrl . "/" . DxdUtil::xImage($this->face, 48, 48) : "http://placehold.it/48x48";
     //	if($this->noEmail()) $this->email = "";
     return parent::afterFind();
 }