PATH:
home
/
letacommog
/
letaweb
/
admin
/
classes
/
hosting
/
api-php-lib
/
src
/
PleskX
/
Api
/
Operator
<?php // Copyright 1999-2015. Parallels IP Holdings GmbH. namespace PleskX\Api\Operator; use PleskX\Api\Struct\Ui as Struct; class Ui extends \PleskX\Api\Operator { /** * @return array */ public function getNavigation() { $response = $this->request('get-navigation'); return unserialize(base64_decode($response->navigation)); } /** * @param string $owner * @param array $properties * * @return int */ public function createCustomButton($owner, $properties) { $packet = $this->_client->getPacket(); $buttonNode = $packet->addChild('ui')->addChild('create-custombutton'); $buttonNode->addChild('owner')->addChild($owner); $propertiesNode = $buttonNode->addChild('properties'); foreach ($properties as $name => $value) { $propertiesNode->addChild($name, $value); } $response = $this->_client->request($packet); return (int) $response->id; } /** * @param int $id * * @return Struct\CustomButton */ public function getCustomButton($id) { $response = $this->request("get-custombutton.filter.custombutton-id=$id"); return new Struct\CustomButton($response); } /** * @param int $id * * @return bool */ public function deleteCustomButton($id) { $response = $this->request("delete-custombutton.filter.custombutton-id=$id"); return 'ok' === (string) $response->status; } }
[+]
..
[-] Mail.php
[edit]
[-] EventLog.php
[edit]
[-] Ip.php
[edit]
[-] Updater.php
[edit]
[-] WpInstance.php
[edit]
[-] Webspace.php
[edit]
[-] Certificate.php
[edit]
[-] Aps.php
[edit]
[-] Dns.php
[edit]
[-] Migration.php
[edit]
[-] DatabaseServer.php
[edit]
[-] SiteAlias.php
[edit]
[-] ProtectedDirectory.php
[edit]
[-] Sso.php
[edit]
[-] PlanItem.php
[edit]
[-] VirtualDirectory.php
[edit]
[-] Sitebuilder.php
[edit]
[-] ResellerPlan.php
[edit]
[-] Webmail.php
[edit]
[-] User.php
[edit]
[-] Database.php
[edit]
[-] ServicePlan.php
[edit]
[-] BusinessLogicUpgrade.php
[edit]
[-] ServiceNode.php
[edit]
[-] Subdomain.php
[edit]
[-] FtpUser.php
[edit]
[-] LogRotation.php
[edit]
[-] Customer.php
[edit]
[-] BackupManager.php
[edit]
[-] SecretKey.php
[edit]
[-] Session.php
[edit]
[-] Locale.php
[edit]
[-] IpBan.php
[edit]
[-] Role.php
[edit]
[-] Reseller.php
[edit]
[-] ServicePlanAddon.php
[edit]
[-] Server.php
[edit]
[-] Ui.php
[edit]
[-] Site.php
[edit]
[-] WebUser.php
[edit]
[-] SpamFilter.php
[edit]
[-] MailList.php
[edit]