コード例 #1
0
ファイル: class_dbstorage.php プロジェクト: JDevelopers/Mail
 /**
  * @param string $_name
  * @return CWebMailDomain
  */
 function &SelectDomainByName($_name)
 {
     $_domain = null;
     if (!$this->_dbConnection->Execute($this->_commandCreator->SelectDomainByName($_name))) {
         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;
 }