function getList(array $args = array()) { !isset($args['type']) && ($args['type'] = 'cases'); return parent::getList($args); }
/** * 返回相关项目列表 */ function projectList() { $project = new Project_model(); $this->project_list_args = array('name' => array('heading' => '名称'), 'people' => array('heading' => '人员', 'cell' => array('class' => 'ellipsis'), 'parser' => array('function' => array($project, 'getCompiledPeople'), 'args' => array('id')))); $list = $this->table->setFields($this->project_list_args)->setRowAttributes(array('hash' => '{type}/{id}'))->setData($project->getList(array('people' => $this->people->id, 'limit' => 10, 'orderby' => 'project.id DESC')))->generate(); return $list; }