/** * Returns the static model of the specified AR class. * Please note that you should have this exact method in all your CActiveRecord descendants! * @param string $className active record class name. * @return Article the static model class */ public static function model($className = __CLASS__) { return parent::model($className); }
protected function afterFind() { if (!$this->face) { $this->face = $this->defaultFace; } return parent::afterFind(); }
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(); }