-
Notifications
You must be signed in to change notification settings - Fork 81
Add protected directories management operations #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. All tests passed correctly on test server.
* @param $value | ||
* @return \PleskX\Api\XmlResponse | ||
*/ | ||
private function _get($command, $field, $value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe better to move this to \PleskX\Api\Operator, looks like common method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not so common unfortunately due to a lot of minor differences in XML-RPC API itself. But as you can see I did some unification in some other operators for "get" methods and will continue working in this direction.
|
||
static::$_client->protectedDirectory()->delete('id', $protectedDirectory->id); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty line after class body is not PSR-2 compliant
@@ -3,9 +3,113 @@ | |||
|
|||
namespace PleskX\Api\Operator; | |||
|
|||
use PleskX\Api\Struct\ProtectedDirectory as Struct; | |||
|
|||
class ProtectedDirectory extends \PleskX\Api\Operator | |||
{ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty line before class body is not PSR-2 compliant
$response = $this->_client->request($packet, \PleskX\Api\Client::RESPONSE_FULL); | ||
return $response; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty line after class body is not PSR-2 compliant
No description provided.