@@ 81-89 (lines=9) @@ | ||
78 | * @param integer|string $value |
|
79 | * @return Struct\Info[] |
|
80 | */ |
|
81 | public function getAll($field, $value) |
|
82 | { |
|
83 | $response = $this->_get('get-db', $field, $value); |
|
84 | $items = []; |
|
85 | foreach ($response->xpath('//result') as $xmlResult) { |
|
86 | $items[] = new Struct\Info($xmlResult); |
|
87 | } |
|
88 | return $items; |
|
89 | } |
|
90 | ||
91 | /** |
|
92 | * @param string $field |
|
@@ 96-104 (lines=9) @@ | ||
93 | * @param integer|string $value |
|
94 | * @return Struct\UserInfo[] |
|
95 | */ |
|
96 | public function getAllUsers($field, $value) |
|
97 | { |
|
98 | $response = $this->_get('get-db-users', $field, $value); |
|
99 | $items = []; |
|
100 | foreach ($response->xpath('//result') as $xmlResult) { |
|
101 | $items[] = new Struct\UserInfo($xmlResult); |
|
102 | } |
|
103 | return $items; |
|
104 | } |
|
105 | ||
106 | /** |
|
107 | * @param $command |