/** * @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; }
/** * @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; }