示例#1
0
 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();
 }
示例#2
0
 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;
 }