芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/cloud.pulsehost.co.uk/vendor/plesk/api-php-lib/src/Api/Operator/Ui.php
request('get-navigation'); /** @psalm-suppress ImplicitToStringCast, PossiblyNullArgument */ return unserialize(base64_decode($response->navigation)); } public function createCustomButton(string $owner, array $properties): int { $packet = $this->client->getPacket(); $buttonNode = $packet->addChild($this->wrapperTag)->addChild('create-custombutton'); $buttonNode->addChild('owner')->addChild($owner); $propertiesNode = $buttonNode->addChild('properties'); foreach ($properties as $name => $value) { $propertiesNode->{$name} = $value; } $response = $this->client->request($packet); return (int) $response->id; } public function getCustomButton(int $id): Struct\CustomButton { $response = $this->request("get-custombutton.filter.custombutton-id=$id"); return new Struct\CustomButton($response); } public function deleteCustomButton(int $id): bool { return $this->deleteBy('custombutton-id', $id, 'delete-custombutton'); } }