@@ -30,13 +30,13 @@ public function generate(array $properties): Struct\Info
30
30
*/
31
31
public function getAll ($ field , $ value )
32
32
{
33
- $ packet = $ this ->_client ->getPacket ();
34
- $ getTag = $ packet ->addChild ($ this ->_wrapperTag )->addChild ('get-pool ' );
33
+ $ packet = $ this ->client ->getPacket ();
34
+ $ getTag = $ packet ->addChild ($ this ->wrapperTag )->addChild ('get-pool ' );
35
35
36
36
$ filterTag = $ getTag ->addChild ('filter ' );
37
37
$ filterTag ->addChild ($ field , $ value );
38
38
39
- $ response = $ this ->_client ->request ($ packet , \PleskX \Api \Client::RESPONSE_FULL );
39
+ $ response = $ this ->client ->request ($ packet , \PleskX \Api \Client::RESPONSE_FULL );
40
40
41
41
$ items = [];
42
42
foreach ($ response ->xpath ('//result/certificates ' ) as $ xmlResult ) {
@@ -54,8 +54,8 @@ public function getAll($field, $value )
54
54
*/
55
55
public function install ($ properties )
56
56
{
57
- $ packet = $ this ->_client ->getPacket ();
58
- $ install = $ packet ->addChild ($ this ->_wrapperTag )->addChild ('install ' );
57
+ $ packet = $ this ->client ->getPacket ();
58
+ $ install = $ packet ->addChild ($ this ->wrapperTag )->addChild ('install ' );
59
59
60
60
foreach ($ properties as $ name => $ value ) {
61
61
if ($ name == 'content ' ) {
@@ -71,7 +71,7 @@ public function install($properties)
71
71
$ install ->addChild ($ name , $ value );
72
72
}
73
73
74
- $ response = $ this ->_client ->request ($ packet );
74
+ $ response = $ this ->client ->request ($ packet );
75
75
return new Struct \InstallInfo ($ response );
76
76
}
77
77
@@ -82,8 +82,8 @@ public function install($properties)
82
82
*/
83
83
public function remove ($ properties )
84
84
{
85
- $ packet = $ this ->_client ->getPacket ();
86
- $ removeNode = $ packet ->addChild ($ this ->_wrapperTag )->addChild ('remove ' );
85
+ $ packet = $ this ->client ->getPacket ();
86
+ $ removeNode = $ packet ->addChild ($ this ->wrapperTag )->addChild ('remove ' );
87
87
88
88
foreach ($ properties as $ key => $ value ) {
89
89
if ( $ key == 'filter ' ) {
@@ -99,7 +99,7 @@ public function remove($properties)
99
99
$ removeNode ->addChild ($ key , $ value );
100
100
}
101
101
102
- $ response = $ this ->_client ->request ($ packet );
102
+ $ response = $ this ->client ->request ($ packet );
103
103
104
104
return new Struct \RemoveInfo ( $ response );
105
105
}
0 commit comments