1 | <?php |
||
7 | class Site extends \PleskX\Api\Operator |
||
8 | { |
||
9 | const PROPERTIES_HOSTING = 'hosting'; |
||
10 | |||
11 | /** |
||
12 | * @param array $properties |
||
13 | * @return Struct\Info |
||
14 | */ |
||
15 | public function create(array $properties) |
||
41 | |||
42 | /** |
||
43 | * @param string $field |
||
44 | * @param integer|string $value |
||
45 | * @return bool |
||
46 | */ |
||
47 | public function delete($field, $value) |
||
51 | |||
52 | /** |
||
53 | * @param string $field |
||
54 | * @param integer|string $value |
||
55 | * @return Struct\GeneralInfo |
||
56 | */ |
||
57 | public function get($field, $value) |
||
62 | |||
63 | /** |
||
64 | * @param string $field |
||
65 | * @param integer|string $value |
||
66 | * @return Struct\HostingInfo|null |
||
67 | */ |
||
68 | public function getHosting($field, $value) |
||
75 | |||
76 | /** |
||
77 | * @return Struct\GeneralInfo[] |
||
78 | */ |
||
79 | public function getAll() |
||
83 | |||
84 | } |
||
85 |