| @@ 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 | { |
|
| @@ 165-172 (lines=8) @@ | ||
| 162 | * |
|
| 163 | * @return \SimpleXMLElement |
|
| 164 | */ |
|
| 165 | private function _getInfo($operation) |
|
| 166 | { |
|
| 167 | $packet = $this->_client->getPacket(); |
|
| 168 | $packet->addChild($this->_wrapperTag)->addChild('get')->addChild($operation); |
|
| 169 | $response = $this->_client->request($packet); |
|
| 170 | ||
| 171 | return $response->$operation; |
|
| 172 | } |
|
| 173 | } |
|
| 174 | ||