X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FExtension.php;h=bc785846a90d297ce7f60bc747dead9b6cc6f6b6;hb=af321125666c7444accea956adaad22395fcd4c9;hp=a4620d547b81b6d5a9f0b5baaf91d748f386ab0c;hpb=11df99209d13885aaf45a5c94612bdc65eb490ff;p=civicrm-core.git diff --git a/CRM/Core/BAO/Extension.php b/CRM/Core/BAO/Extension.php index a4620d547b..bc785846a9 100644 --- a/CRM/Core/BAO/Extension.php +++ b/CRM/Core/BAO/Extension.php @@ -42,14 +42,15 @@ class CRM_Core_BAO_Extension extends CRM_Core_DAO_Extension { /** * Fetch object based on array of properties * - * @param array $params (reference ) an assoc array of name/value pairs - * @param array $defaults (reference ) an assoc array to hold the flattened values + * @param array $params + * (reference ) an assoc array of name/value pairs. + * @param array $defaults + * (reference ) an assoc array to hold the flattened values. * * @return CRM_Core_BAO_LocationType object on success, null otherwise - * @access public * @static */ - static function retrieve(&$params, &$defaults) { + public static function retrieve(&$params, &$defaults) { $extension = new CRM_Core_DAO_Extension(); $extension->copyValues($params); if ($extension->find(TRUE)) { @@ -62,14 +63,14 @@ class CRM_Core_BAO_Extension extends CRM_Core_DAO_Extension { /** * Delete an extension * - * @param int $id Id of the extension to be deleted. + * @param int $id + * Id of the extension to be deleted. * * @return void * - * @access public * @static */ - static function del($id) { + public static function del($id) { $extension = new CRM_Core_DAO_Extension(); $extension->id = $id; return $extension->delete(); @@ -78,11 +79,13 @@ class CRM_Core_BAO_Extension extends CRM_Core_DAO_Extension { /** * Change the schema version of an extension * - * @param $fullName string, the fully-qualified name (eg "com.example.myextension") - * @param $schemaVersion string + * @param $fullName + * String, the fully-qualified name (eg "com.example.myextension"). + * @param $schemaVersion + * String. * @return void */ - static function setSchemaVersion($fullName, $schemaVersion) { + public static function setSchemaVersion($fullName, $schemaVersion) { $sql = 'UPDATE civicrm_extension SET schema_version = %1 WHERE full_name = %2'; $params = array( 1 => array($schemaVersion, 'String'), @@ -94,10 +97,11 @@ class CRM_Core_BAO_Extension extends CRM_Core_DAO_Extension { /** * Determine the schema version of an extension * - * @param $fullName string, the fully-qualified name (eg "com.example.myextension") + * @param $fullName + * String, the fully-qualified name (eg "com.example.myextension"). * @return string */ - static function getSchemaVersion($fullName) { + public static function getSchemaVersion($fullName) { $sql = 'SELECT schema_version FROM civicrm_extension WHERE full_name = %1'; $params = array( 1 => array($fullName, 'String'),