示例#1
0
 /**
  * @param int $_id
  * @return CWebMailDomain
  */
 function &SelectDomainById($_id)
 {
     $_domain = null;
     if (!$this->_dbConnection->Execute($this->_commandCreator->SelectDomainById($_id))) {
         return $_domain;
     }
     $row = $this->_dbConnection->GetNextRecord();
     if ($row) {
         $_domain = new CWebMailDomain();
         $_domain->SetId($row->id_domain);
         $_domain->Init($row->name, $row->mail_protocol, $row->mail_inc_host, $row->mail_inc_port, $row->mail_out_host, $row->mail_out_port, $row->mail_out_auth, $row->is_internal, $row->global_addr_book, $row->save_mail);
         $this->_dbConnection->FreeResult();
     }
     return $_domain;
 }