|
|
@@ -181,7 +181,7 @@ class KerioWhmcs extends KerioConnectApi {
|
|
|
'fields' => $fields,
|
|
|
'orderBy' => array(array(
|
|
|
'columnName' => 'name',
|
|
|
- 'direction' => $this->constants['kerio_web_Asc']
|
|
|
+ 'direction' => 'Asc'
|
|
|
))
|
|
|
),
|
|
|
'domainId' => $domainId
|
|
|
@@ -246,7 +246,7 @@ class KerioWhmcs extends KerioConnectApi {
|
|
|
'fields' => $fields,
|
|
|
'orderBy' => array(array(
|
|
|
'columnName' => 'name',
|
|
|
- 'direction' => $this->constants['kerio_web_Asc']
|
|
|
+ 'direction' => 'Asc'
|
|
|
))
|
|
|
),
|
|
|
'domainId' => $domainId
|
|
|
@@ -301,7 +301,7 @@ class KerioWhmcs extends KerioConnectApi {
|
|
|
'fields' => $fields,
|
|
|
'orderBy' => array(array(
|
|
|
'columnName' => 'name',
|
|
|
- 'direction' => $this->constants['kerio_web_Asc']
|
|
|
+ 'direction' => 'Asc'
|
|
|
))
|
|
|
),
|
|
|
'domainId' => $domainId
|
|
|
@@ -333,7 +333,7 @@ class KerioWhmcs extends KerioConnectApi {
|
|
|
'fields' => $fields,
|
|
|
'orderBy' => array(array(
|
|
|
'columnName' => 'name',
|
|
|
- 'direction' => $this->constants['kerio_web_Asc']
|
|
|
+ 'direction' => 'Asc'
|
|
|
)),
|
|
|
'combining' => 'Or'
|
|
|
),
|
|
|
@@ -438,6 +438,22 @@ class KerioWhmcs extends KerioConnectApi {
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Modify user.
|
|
|
+ *
|
|
|
+ * @param string User ID
|
|
|
+ * @param array Attributes
|
|
|
+ * @return array Result
|
|
|
+ */
|
|
|
+ function modifyUser($userId, $attr) {
|
|
|
+ $params = array(
|
|
|
+ 'userIds' => $userId,
|
|
|
+ 'pattern' => $attr
|
|
|
+ );
|
|
|
+ $result = $this->sendRequest('Users.set', $params);
|
|
|
+ return $result;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Create domain.
|
|
|
*
|