X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FExtension.php;h=936efbea8f3358dec75b586445509eca133abf90;hb=fb1b8b9d4c10122a89f2e017497071a734496fe6;hp=2e3ddc0203d7dd601419478fa1b61ab2c3c7e98c;hpb=aa0b568b0563900aa6ddc792014cc17af2c3fc90;p=civicrm-core.git diff --git a/CRM/Core/BAO/Extension.php b/CRM/Core/BAO/Extension.php index 2e3ddc0203..936efbea8f 100644 --- a/CRM/Core/BAO/Extension.php +++ b/CRM/Core/BAO/Extension.php @@ -1,7 +1,7 @@ copyValues($params); if ($extension->find(TRUE)) { @@ -60,29 +61,29 @@ class CRM_Core_BAO_Extension extends CRM_Core_DAO_Extension { } /** - * 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'), @@ -92,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'),