data; } /** * 设置 * @param array include @see UmengApptrackAppRecPlan[] $data * 此参数必填 */ public function setData(UmengApptrackAppRecPlan $data) { $this->data = $data; } private $total; /** * @return 总记录数 */ public function getTotal() { return $this->total; } /** * 设置总记录数 * @param Integer $total * 此参数必填 */ public function setTotal( $total) { $this->total = $total; } private $stdResult; public function setStdResult($stdResult) { $this->stdResult = $stdResult; if (array_key_exists ( "data", $this->stdResult )) { $dataResult=$this->stdResult->{"data"}; $object = json_decode ( json_encode ( $dataResult ), true ); $this->data = array (); for($i = 0; $i < count ( $object ); $i ++) { $arrayobject = new ArrayObject ( $object [$i] ); $UmengApptrackAppRecPlanResult=new UmengApptrackAppRecPlan(); $UmengApptrackAppRecPlanResult->setArrayResult($arrayobject ); $this->data [$i] = $UmengApptrackAppRecPlanResult; } } if (array_key_exists ( "total", $this->stdResult )) { $this->total = $this->stdResult->{"total"}; } } private $arrayResult; public function setArrayResult($arrayResult) { $this->arrayResult = $arrayResult; if (array_key_exists ( "data", $this->arrayResult )) { $dataResult=$arrayResult['data']; $this->data = new UmengApptrackAppRecPlan(); $this->data->setStdResult ( $dataResult); } if (array_key_exists ( "total", $this->arrayResult )) { $this->total = $arrayResult['total']; } } } ?>