private function model2view(&$model)
 {
     foreach ($model as $key => $value) {
         Coder::cleanData($model[$key]);
     }
     User::fillDisplayName($model);
     return $model;
 }
Exemple #2
0
 protected function model2view(&$model)
 {
     foreach ($model as $key => $value) {
         Coder::cleanData($model[$key]);
     }
     Coder::dbstr2date($model["nacreatedDateTime"]);
     Coder::htmldecode($model["newsContent"]);
     return $model;
 }