コード例 #1
0
ファイル: Course.php プロジェクト: stan5621/eduwind
 protected function afterFind()
 {
     if (!$this->face) {
         $this->face = $this->defaultFace;
     }
     return parent::afterFind();
 }
コード例 #2
0
ファイル: UserInfo.php プロジェクト: stan5621/jp_edu_online
 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();
 }