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\Customer as Struct; class Customer extends \PleskX\Api\Operator { /** * @param array $properties * * @return Struct\Info */ public function create($properties) { $packet = $this->_client->getPacket(); $info = $packet->addChild('customer')->addChild('add')->addChild('gen_info'); foreach ($properties as $name => $value) { $info->addChild($name, $value); } $response = $this->_client->request($packet); return new Struct\Info($response); } /** * @param string $field * @param int|string $value * * @return bool */ public function delete($field, $value) { $packet = $this->_client->getPacket(); $packet->addChild('customer')->addChild('del')->addChild('filter')->addChild($field, $value); $response = $this->_client->request($packet); return 'ok' === (string) $response->status; } /** * @param string $field * @param int|string $value * * @return Struct\GeneralInfo */ public function get($field, $value) { $packet = $this->_client->getPacket(); $getTag = $packet->addChild('customer')->addChild('get'); $getTag->addChild('filter')->addChild($field, $value); $getTag->addChild('dataset')->addChild('gen_info'); $response = $this->_client->request($packet); return new Struct\GeneralInfo($response->data->gen_info); } }
[+]
..
[-] 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]