示例#1
0
 /**
  * Change account package on server
  * @param Server_Account $a
  * @param Server_Package $p 
  */
 public function changeAccountPackage(Server_Account $a, Server_Package $p)
 {
     if ($a->getReseller()) {
         $this->getLog()->info('Updating reseller hosting account');
     } else {
         $this->getLog()->info('Updating shared hosting account');
     }
     $p->getName();
     $p->getQuota();
     $p->getBandwidth();
     $p->getMaxSubdomains();
     $p->getMaxParkedDomains();
     $p->getMaxDomains();
     $p->getMaxFtp();
     $p->getMaxSql();
     $p->getMaxPop();
     $p->getCustomValue('param_name');
 }
示例#2
0
 public function changeAccountPackage(Server_Account $a, Server_Package $p)
 {
     $client = $a->getClient();
     $ci = $this->getClient($a);
     $params = array('reseller_id' => 1, 'client_id' => $ci['client_id'], 'server_id' => $this->getServerId(), 'company_name' => $client->getCompany(), 'contact_name' => $client->getFullName(), 'username' => $a->getUsername(), 'password' => $a->getPassword(), 'language' => $p->getCustomValue('languge'), 'usertheme' => $p->getCustomValue('theme'), 'street' => $client->getStreet(), 'zip' => $client->getZip(), 'city' => $client->getCity(), 'state' => $client->getState(), 'country' => $client->getCountry(), 'telephone' => $client->getTelephone(), 'mobile' => $client->getTelephone(), 'fax' => $client->getTelephone(), 'email' => $client->getEmail(), 'internet' => $client->getWww(), 'icq' => '', 'notes' => $a->getNote());
     $result = $this->_request('client_update', $params);
     return (bool) $result;
 }