/** * * get tempaltes array */ public function getList($type = null) { $arrTemplates = $this->getListRaw($type); foreach ($arrTemplates as $key => $templateData) { $objTemplate = new ShowBizTemplate(); $objTemplate->initByData($templateData); $arrTemplates[$key] = $objTemplate; } return $arrTemplates; }