コード例 #1
0
ファイル: User.php プロジェクト: omines/directadmin
 /**
  * Modifies the configuration of the user. For available keys in the array check the documentation on
  * CMD_API_MODIFY_USER in the linked document.
  *
  * @param array $newConfig Associative array of values to be modified
  * @url http://www.directadmin.com/api.html#modify
  */
 public function modifyConfig(array $newConfig)
 {
     $this->getContext()->invokePost('MODIFY_USER', array_merge($this->loadConfig(), Conversion::processUnlimitedOptions($newConfig), ['action' => 'customize', 'user' => $this->getUsername()]));
     $this->clearCache();
 }