@@ 16-22 (lines=7) @@ | ||
13 | * @param string $ipAddress |
|
14 | * @return string |
|
15 | */ |
|
16 | public function create($ipAddress) |
|
17 | { |
|
18 | $packet = $this->_client->getPacket(); |
|
19 | $packet->addChild($this->_wrapperTag)->addChild('create')->addChild('ip_address', $ipAddress); |
|
20 | $response = $this->_client->request($packet); |
|
21 | return (string)$response->key; |
|
22 | } |
|
23 | ||
24 | /** |
|
25 | * @param string $keyId |
@@ 13-20 (lines=8) @@ | ||
10 | /** |
|
11 | * @return array |
|
12 | */ |
|
13 | public function getProtos() |
|
14 | { |
|
15 | $packet = $this->_client->getPacket(); |
|
16 | $packet->addChild($this->_wrapperTag)->addChild('get_protos'); |
|
17 | $response = $this->_client->request($packet); |
|
18 | ||
19 | return (array)$response->protos->proto; |
|
20 | } |
|
21 | ||
22 | public function getGeneralInfo() |
|
23 | { |
|
@@ 162-169 (lines=8) @@ | ||
159 | * @param string $operation |
|
160 | * @return \SimpleXMLElement |
|
161 | */ |
|
162 | private function _getInfo($operation) |
|
163 | { |
|
164 | $packet = $this->_client->getPacket(); |
|
165 | $packet->addChild($this->_wrapperTag)->addChild('get')->addChild($operation); |
|
166 | $response = $this->_client->request($packet); |
|
167 | ||
168 | return $response->$operation; |
|
169 | } |
|
170 | ||
171 | } |
|
172 |
@@ 59-67 (lines=9) @@ | ||
56 | * @param string $planName |
|
57 | * @return Struct\Info |
|
58 | */ |
|
59 | public function create($planName) |
|
60 | { |
|
61 | $packet = $this->_client->getPacket(); |
|
62 | $info = $packet->addChild($this->_wrapperTag)->addChild('add'); |
|
63 | $info->addChild('name', $planName); |
|
64 | ||
65 | $response = $this->_client->request($packet); |
|
66 | return new Struct\Info($response); |
|
67 | } |
|
68 | ||
69 | /** |
|
70 | * @param string $field |