コード例 #1
0
 /**
  * @param short $type
  * @return short
  */
 function GetFolderSyncType($type)
 {
     $result = -1;
     if (!$this->_dbConnection->Execute($this->_commandCreator->GetFolderSyncType($this->Account->Id, $type))) {
         return $result;
     }
     if ($row = $this->_dbConnection->GetNextRecord()) {
         $result = $row->sync_type;
     }
     return $result;
 }
コード例 #2
0
ファイル: class_dbstorage.php プロジェクト: JDevelopers/Mail
 /**
  * @param short $type
  * @return short
  */
 function GetFolderSyncTypeByIdAcct($idAcct, $type)
 {
     $result = -1;
     if (!$this->_dbConnection->Execute($this->_commandCreator->GetFolderSyncType($idAcct, $type))) {
         return $result;
     }
     $row = $this->_dbConnection->GetNextRecord();
     if ($row) {
         $result = $row->sync_type;
     }
     return $result;
 }