CurrentGateId = $startId; $this->UnlockedGatesMaxId = $startId; $this->GateList = new \stdClass(); $Ins_GateInfo = new Ins_GateInfo(); $Ins_GateInfo->GateId = $this->CurrentGateId; $this->GateList->$startId = $Ins_GateInfo; $this->GatesChallengeRecord = new \stdClass(); } public function __construct($arg = null) { if ($arg == null) { if ($this->CurrentGateId == 0) { $startId = 1; $this->CurrentGateId = $startId; $this->UnlockedGatesMaxId = $startId; $this->GateList = new \stdClass(); $Ins_GateInfo = new Ins_GateInfo(); $Ins_GateInfo->GateId = $this->CurrentGateId; $this->GateList->$startId = $Ins_GateInfo; } $this->GatesChallengeRecord = new \stdClass(); $this->evolveUnlockRecord = array(); $this->xunluo_StartTs = now(); } else { parent::__construct($arg); } } }