Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add list empty
  • Loading branch information
munikes committed Nov 14, 2016
commit 7599189b01eead6a9257567fa25b3cf5f914ad6d
20 changes: 11 additions & 9 deletions src/pmill/Plesk/ListSubdomains.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,17 @@ protected function processResponse($xml)
$result = [];

foreach ($xml->subdomain->get->result as $node) {
$result[] = [
'id' => (int)$node->id,
'status' => (string)$node->status,
'parent' => (string)$node->data->parent,
'name' => (string)$node->data->name,
'php' => (string)Xml::findProperty($node->data, 'php'),
'php_handler_type' => (string)Xml::findProperty($node->data, 'php_handler_type'),
'www_root' => (string)Xml::findProperty($node->data, 'www_root'),
];
if (isset($node->id)){
$result[] = [
'id' => (int)$node->id,
'status' => (string)$node->status,
'parent' => (string)$node->data->parent,
'name' => (string)$node->data->name,
'php' => (string)Xml::findProperty($node->data, 'php'),
'php_handler_type' => (string)Xml::findProperty($node->data, 'php_handler_type'),
'www_root' => (string)Xml::findProperty($node->data, 'www_root'),
];
}
}

return $result;
Expand Down