public function getDevice($deviceName = null) { if ($this->device) { return $this->device; } $request = OCISchemaGroup::GroupAccessDeviceGetRequest16($this->migrator->getOrigEnterprise(), $this->migrator->getOrigGroup(), $deviceName); $this->migrator->send($request); return $this->migrator->getResponse(); }
private function getDeviceDetail($deviceResponse) { if (array_key_exists('row', $deviceResponse->accessDeviceTable)) { $device = $deviceResponse->accessDeviceTable['row']['col']; $this->client->send(OCISchemaGroup::GroupAccessDeviceGetRequest16($device[0], $device[2], $device[3])); return $this->client->getResponse(); } return null; }