/**
* @param $version
- *
+ * @deprecated
* @return bool
*/
public function checkVersion($version) {
- $query = "
-SELECT version
-FROM civicrm_domain
-";
- $dbVersion = CRM_Core_DAO::singleValueQuery($query);
+ CRM_Core_Error::deprecatedFunctionWarning('CRM_Core_BAO_Domain::version');
+ $dbVersion = CRM_Core_BAO_Domain::version();
return trim($version) == trim($dbVersion);
}
return FALSE;
}
- /**
- * @param $version
- *
- * @return bool
- */
- public function checkVersion($version) {
- $domainID = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_Domain',
- $version, 'id',
- 'version'
- );
- return (bool) $domainID;
- }
-
/**
* @return array
* @throws Exception