Skip to content

Commit

Permalink
Update stubs with 18.0.58 SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
xgin committed Jan 8, 2024
1 parent d151019 commit 3362a63
Show file tree
Hide file tree
Showing 121 changed files with 182 additions and 122 deletions.
2 changes: 1 addition & 1 deletion SDK/Certificate.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK;
/**
* Certificate wrapper
Expand Down
2 changes: 1 addition & 1 deletion SDK/Hook/Dns/Dnssec.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Hook\Dns;

abstract class Dnssec implements \Plesk\SDK\Hook\HookInterface
Expand Down
2 changes: 1 addition & 1 deletion SDK/Hook/ExternalDns.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Hook;

abstract class ExternalDns implements \Plesk\SDK\Hook\HookInterface
Expand Down
2 changes: 1 addition & 1 deletion SDK/Hook/HookInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Hook;

interface HookInterface extends \pm_Hook_Interface
Expand Down
2 changes: 1 addition & 1 deletion SDK/Hook/Repair/Mail.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Hook\Repair;

abstract class Mail implements \Plesk\SDK\Hook\HookInterface
Expand Down
2 changes: 1 addition & 1 deletion SDK/Hook/Webmail.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Hook;

abstract class Webmail implements \Plesk\SDK\Hook\HookInterface
Expand Down
2 changes: 1 addition & 1 deletion SDK/Mailname.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK;
/**
* Mailname wrapper
Expand Down
2 changes: 1 addition & 1 deletion SDK/Middleware/Access/Client.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Middleware\Access;
/**
* Validates that access was performed by specified user or any user that can impersonate as this user.
Expand Down
2 changes: 1 addition & 1 deletion SDK/Middleware/Access/Cors.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Middleware\Access;
/**
* Adds cross-origin resource sharing headers as configured server-wide.
Expand Down
2 changes: 1 addition & 1 deletion SDK/Middleware/Access/Csrf.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Middleware\Access;
/**
* Validates that request has proper forgery protection token.
Expand Down
2 changes: 1 addition & 1 deletion SDK/Middleware/Access/Domain.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Middleware\Access;
/**
* Validates that access was performed by user that has access to the specified domain.
Expand Down
2 changes: 1 addition & 1 deletion SDK/Middleware/Access/Session.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Middleware\Access;
/**
* Returns HTTP 401 if no session is defined by other means like BasicAuth, or KeyHeaderAuth.
Expand Down
2 changes: 1 addition & 1 deletion SDK/Middleware/Access/UserRole.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Middleware\Access;
/**
* Validates that access was performed by user with the specified role.
Expand Down
2 changes: 1 addition & 1 deletion SDK/Middleware/Auth/ApiKey.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Middleware\Auth;
/**
* Initializes Plesk session from the "X-API-Key" header.
Expand Down
2 changes: 1 addition & 1 deletion SDK/Middleware/Auth/Basic.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Middleware\Auth;
/**
* Initializes Plesk session from the "Authorization: Basic" header.
Expand Down
2 changes: 1 addition & 1 deletion SDK/Middleware/ErrorHandler.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Middleware;
/**
* Wraps uncaught exceptions into a JSON response.
Expand Down
2 changes: 1 addition & 1 deletion SDK/Middleware/HttpsRedirect.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Middleware;
/**
* Returns 301/308 in case the request was made to plain HTTP.
Expand Down
2 changes: 1 addition & 1 deletion SDK/Middleware/Server/ApiAllowed.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Middleware\Server;
/**
* Validates that remote API access is allowed for the remote IP.
Expand Down
2 changes: 1 addition & 1 deletion SDK/Middleware/Server/ApiEnabled.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Middleware\Server;
/**
* Validates that remote API is allowed on the server.
Expand Down
2 changes: 1 addition & 1 deletion SDK/Middleware/Server/Initialized.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Middleware\Server;
/**
* Validates that Plesk is initialized.
Expand Down
2 changes: 1 addition & 1 deletion SDK/Repair/Context.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Repair;

class Context
Expand Down
2 changes: 1 addition & 1 deletion SDK/Server/Components.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK\Server;
/**
* @since 18.0.52
Expand Down
2 changes: 1 addition & 1 deletion SDK/Webmail.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
namespace Plesk\SDK;

final class Webmail
Expand Down
2 changes: 1 addition & 1 deletion pm/ActionLog.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Wrapper for ActionLog.
*
Expand Down
2 changes: 1 addition & 1 deletion pm/ApiCli.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Gateway for execution of CLI utilities
*
Expand Down
2 changes: 1 addition & 1 deletion pm/ApiRpc.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Wrapper to simplify execution of API-RPC calls inside modules
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Application.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Class for initialization Plesk renderers
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Auth.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Authentication helper methods
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Backup/Manager.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Manager of backups for extension.
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Class for initialization Plesk objects
*
Expand Down
10 changes: 9 additions & 1 deletion pm/Client.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Panel client wrapper
*
Expand Down Expand Up @@ -27,6 +27,14 @@ public static function getByClientId($clientId) { }
*/
public static function getByLogin($login) { }

/**
* Retrieve admin client.
*
* @return pm_Client
* @since 18.0.56
*/
public static function getAdmin() { }

/**
* Retrieve all clients
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Configuration settings reader (panel.ini settings)
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Context.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Define module constants and setup context
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Controller/Action.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Abstract class for all extensions controllers
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Crypt.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Class for data encryption/decryption using AES-128 CBC (symmetric encryption algorithm)
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Dns/Record.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Panel dns wrapper
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Dns/SoaRecord.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Panel dns wrapper
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Dns/Template.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Panel dns wrapper
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Dns/Template/Record.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Panel dns wrapper
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Dns/Template/SoaRecord.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Panel dns wrapper
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Dns/Zone.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Panel dns wrapper
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Domain.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Domain wrapper
*
Expand Down
2 changes: 1 addition & 1 deletion pm/DomainAlias.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Domain alias wrapper
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Exception.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Exception raised in case of modules API problems
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Exception raised in case of invalid arguments passed in SDK methods
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Exception/ResultException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Exception raised in case of non-zero exit code of utilities
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Extension.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Extension wrapper
*
Expand Down
2 changes: 1 addition & 1 deletion pm/FileManager.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Manager of hosted files for module (webspace level).
*
Expand Down
2 changes: 1 addition & 1 deletion pm/FileManager/Action.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Content action for FileManager
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Form/Simple.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Base form
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Form/SubForm.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Sub Form
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Hook/ActionLog.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Hook for registering events
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Hook/ActiveList.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Abstract class for injection into active lists
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Hook/ApiCli.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Hook for processing remote API-CLI requests
*
Expand Down
2 changes: 1 addition & 1 deletion pm/Hook/ApiRest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
/**
* Hook for getting REST API metadata
*
Expand Down
Loading

0 comments on commit 3362a63

Please sign in to comment.