X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FExtension.php;h=936efbea8f3358dec75b586445509eca133abf90;hb=fb1b8b9d4c10122a89f2e017497071a734496fe6;hp=81d902a627c2c55d03b388e290fcd0e88aa022f7;hpb=845bc17a66f2ef2ca7c819fbe99ec646f0d42634;p=civicrm-core.git diff --git a/CRM/Core/BAO/Extension.php b/CRM/Core/BAO/Extension.php index 81d902a627..936efbea8f 100644 --- a/CRM/Core/BAO/Extension.php +++ b/CRM/Core/BAO/Extension.php @@ -1,7 +1,7 @@ copyValues($params); if ($extension->find(TRUE)) { @@ -64,29 +61,29 @@ class CRM_Core_BAO_Extension extends CRM_Core_DAO_Extension { } /** - * Function to delete an 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(); } /** - * Change the schema version of an extension + * Change the schema version of an extension. * - * @param $fullName string, the fully-qualified name (eg "com.example.myextension") - * @param $schemaVersion string + * @param string $fullName + * the fully-qualified name (eg "com.example.myextension"). + * @param string $schemaVersion * @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'), @@ -96,12 +93,13 @@ class CRM_Core_BAO_Extension extends CRM_Core_DAO_Extension { } /** - * Determine the schema version of an extension + * Determine the schema version of an extension. * - * @param $fullName string, the fully-qualified name (eg "com.example.myextension") + * @param string $fullName + * 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'),