typeId); my_Assert(null != $mo, ErrCode::err_const_no); return $mo; } public function __construct($args = 0) { if (isInt($args)) { $this->typeId = $args; $arr = array(); $cfg = GameConfig::item_taskcard_getItem($this->typeId); my_Assert(null != $cfg, ErrCode::err_const_no); foreach (explode(',', $cfg->tasksteps) as $taskStepTypeId) { $arr [] = new TaskStepVo($taskStepTypeId); } $this->curSteps = $arr; } else { parent::__construct($args); } } }