Skip to content

Commit a426768

Browse files
author
Tobia Zanarella
committed
Correzione classi non più utilizzate
1 parent a15c78f commit a426768

File tree

19 files changed

+36
-66
lines changed

19 files changed

+36
-66
lines changed

src/Api/Operator/PhpHandler.php

100644100755
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,28 @@ public function getAll($field = null, $value = null)
5656

5757
return $items;
5858
}
59+
60+
/**
61+
* Restituisce tutte le subscriptions (servizi attivati) presenti sul server.
62+
* Tali subscription potrebbero anche essere in uno stato non attivo
63+
* @return Struct\GeneralInfo[]
64+
*/
65+
public function getHandler( $handlerId ) {
66+
$packet = $this->_client->getPacket();
67+
$getTag = $packet->addChild($this->_wrapperTag)->addChild('get');
68+
69+
$filterTag = $getTag->addChild('filter');
70+
$filterTag->addChild('id', $handlerId);
71+
$response = $this->_client->request( $packet );
72+
73+
$item = [];
74+
75+
$item['id'] = $response->getValue( '//id' );
76+
$item['display-name'] = $response->getValue( '//display-name' );
77+
$item['full-version'] = $response->getValue( '//full-version' );
78+
$item['version'] = $response->getValue( '//version' );
79+
$item['type'] = $response->getValue( '//type' );
80+
81+
return $item;
82+
}
5983
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/PleskX/Api/Struct/Server/LicenseAdditional/keyAdditionalInfo.php renamed to src/Api/Struct/Server/LicenseAdditional/keyAdditionalInfo.php

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)