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