Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 protected function afterFind()
 {
     if (!$this->face) {
         $this->face = $this->defaultFace;
     }
     return parent::afterFind();
 }
Exemplo n.º 3
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();
 }