-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from plesk/18.0.60
Update stubs with 18.0.60 SDK
- Loading branch information
Showing
123 changed files
with
348 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
// Copyright 1999-2024. WebPros International GmbH. All rights reserved. | ||
namespace Plesk\SDK\Hook; | ||
/** | ||
* Hook for embedding custom blocks into administrator's Home page in SPV | ||
* | ||
* @since 18.0.60 | ||
*/ | ||
abstract class Home implements \Plesk\SDK\Hook\HookInterface | ||
{ | ||
|
||
/** | ||
* Retrieve blocks for Home page in SPV | ||
* | ||
* @return Home\Block[] | ||
*/ | ||
abstract public function getBlocks(): array; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
<?php | ||
// Copyright 1999-2024. WebPros International GmbH. All rights reserved. | ||
namespace Plesk\SDK\Hook\Home; | ||
/** | ||
* Custom block to be embedded into administrator's Home page in SPV | ||
* | ||
* @since 18.0.60 | ||
*/ | ||
abstract class Block | ||
{ | ||
|
||
public const SECTION_PLESK = 'plesk'; | ||
|
||
public const SECTION_SERVER = 'server'; | ||
|
||
public const SECTION_SECURITY = 'security'; | ||
|
||
/** | ||
* Define block unique ID | ||
* | ||
* Classname by default. | ||
* | ||
* @return string | ||
*/ | ||
public function getId(): string { } | ||
|
||
/** | ||
* Define block title | ||
* | ||
* Attention: unescaped HTML. Extension title by default. | ||
* | ||
* @return string | ||
*/ | ||
public function getTitle(): string { } | ||
|
||
/** | ||
* Define block content | ||
* | ||
* Attention: unescaped HTML. Extension description by default. | ||
* | ||
* @return string | ||
*/ | ||
public function getContent(): string { } | ||
|
||
/** | ||
* Define column the block should be placed to | ||
* | ||
* Possible values: 0, 1, 2. Last column by default. | ||
* | ||
* @return int | ||
*/ | ||
public function getColumn(): int { } | ||
|
||
/** | ||
* Define order within the column the block should be placed to | ||
* | ||
* Last block in column by default. | ||
* | ||
* @return int | ||
*/ | ||
public function getOrder(): int { } | ||
|
||
/** | ||
* Define if the block content should be loaded asynchronously | ||
* | ||
* True by default. | ||
* | ||
* @return bool | ||
*/ | ||
public function isAsyncLoaded(): bool { } | ||
|
||
/** | ||
* Define size of the skeleton (content placeholder) to be shown while content is loaded | ||
* | ||
* Applied only to asynchronously loaded blocks. | ||
* 2 by default. | ||
* | ||
* @return int | ||
*/ | ||
public function getSkeletonSize(): int { } | ||
|
||
/** | ||
* Define if the block is enabled by default | ||
* | ||
* true by default. | ||
* | ||
* @return bool | ||
*/ | ||
public function isEnabled(): bool { } | ||
|
||
/** | ||
* Define section the block belongs to | ||
* | ||
* To be shown when customizing Home page. | ||
* SECTION_PLESK by default. | ||
* | ||
* @return string | ||
*/ | ||
public function getSection(): string { } | ||
|
||
/** | ||
* Define order within the section the block should be placed to | ||
* | ||
* To be shown when customizing Home page. | ||
* Last block in section by default. | ||
* | ||
* @return int | ||
*/ | ||
public function getSectionOrder(): int { } | ||
|
||
/** | ||
* Define block name | ||
* | ||
* To be shown when customizing Home page. | ||
* Extension title by default. | ||
* | ||
* @return string | ||
*/ | ||
public function getName(): string { } | ||
|
||
/** | ||
* Define block icon | ||
* | ||
* To be shown when customizing Home page. | ||
* | ||
* @return string | ||
*/ | ||
public function getIcon(): string { } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
// Copyright 1999-2024. Plesk International GmbH. All rights reserved. | ||
// Copyright 1999-2024. WebPros International GmbH. All rights reserved. | ||
/** | ||
* Wrapper for ActionLog. | ||
* | ||
|
@@ -18,14 +18,14 @@ class pm_ActionLog | |
* | ||
* @param int|null $objectId ID of the object mentioned in the event. 0 if not applicable (singleton object like 'admin'). | ||
* | ||
* @param array|null $oldValues | ||
* @param string[] $oldValues | ||
* @example array('contact_name' => 'John Smith', 'email' => '[email protected]', 'login_name' => 'user1') | ||
* @param array|null $newValues | ||
* @param string[] $newValues | ||
* @example array('contact_name' => 'John Smith', 'email' => '[email protected]', 'login_name' => 'user1') | ||
* @return void | ||
* | ||
* @throws Exception | ||
*/ | ||
public static function submit($actionId, $objectId = null, $oldValues = null, $newValues = null) { } | ||
public static function submit($actionId, $objectId = null, $oldValues = [], $newValues = []) { } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.