X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUpgrade%2FIncremental%2Fphp%2FFourFive.php;h=c184955ffa7cc2ee2ec49cbbddacefa13192b14f;hb=c68f8bfa6acfa6fdb3704d1fd4d9aeae004881e4;hp=b3f68e96c254c3c8df95865f4ec69a80ddbaddae;hpb=d69fa047cdc76b337124f93354abb2e1bf207a58;p=civicrm-core.git diff --git a/CRM/Upgrade/Incremental/php/FourFive.php b/CRM/Upgrade/Incremental/php/FourFive.php index b3f68e96c2..c184955ffa 100644 --- a/CRM/Upgrade/Incremental/php/FourFive.php +++ b/CRM/Upgrade/Incremental/php/FourFive.php @@ -1,7 +1,7 @@
' . ts('Default versions of the following System Workflow Message Templates have been modified to handle new functionality: If you have modified these templates, please review the new default versions and implement updates as needed to your copies (Administer > Communications > Message Templates > System Workflow Messages). (learn more...)', array(1 => 'http://wiki.civicrm.org/confluence/display/CRMDOC/Updating+System+Workflow+Message+Templates+after+Upgrades+-+method+1+-+kdiff')); $postUpgradeMessage .= '

' . ts('This release allows you to view and edit multiple-record custom field sets in a table format which will be more usable in some cases. You can try out the format by navigating to Administer > Custom Data & Screens > Custom Fields. Click Settings for a custom field set and change Display Style to "Tab with Tables".'); @@ -84,7 +87,7 @@ class CRM_Upgrade_Incremental_php_FourFive { * * @return bool */ - function upgrade_4_5_alpha1($rev) { + public function upgrade_4_5_alpha1($rev) { // task to process sql $this->addTask(ts('Migrate honoree information to module_data'), 'migrateHonoreeInfo'); $this->addTask(ts('Upgrade DB to 4.5.alpha1: SQL'), 'task_4_5_x_runSql', $rev); @@ -122,7 +125,7 @@ DROP KEY `{$dao->CONSTRAINT_NAME}`"; * * @return bool */ - function upgrade_4_5_beta9($rev) { + public function upgrade_4_5_beta9($rev) { $this->addTask(ts('Upgrade DB to 4.5.beta9: SQL'), 'task_4_5_x_runSql', $rev); $entityTable = array( @@ -150,13 +153,15 @@ DROP KEY `{$dao->CONSTRAINT_NAME}`"; * * * @param CRM_Queue_TaskContext $ctx - * @param $startId int, the first/lowest entity ID to convert - * @param $endId int, the last/highest entity ID to convert + * @param $startId + * Int, the first/lowest entity ID to convert. + * @param $endId + * Int, the last/highest entity ID to convert. * @param * * @return bool */ - static function task_4_5_0_fixLineItem(CRM_Queue_TaskContext $ctx, $startId, $endId, $entityTable) { + public static function task_4_5_0_fixLineItem(CRM_Queue_TaskContext $ctx, $startId, $endId, $entityTable) { $sqlParams = array( 1 => array($startId, 'Integer'), @@ -224,7 +229,7 @@ DROP KEY `{$dao->CONSTRAINT_NAME}`"; * * @return bool TRUE for success */ - static function addNameFieldOptions(CRM_Queue_TaskContext $ctx) { + public static function addNameFieldOptions(CRM_Queue_TaskContext $ctx) { $query = "SELECT `value` FROM `civicrm_setting` WHERE `group_name` = 'CiviCRM Preferences' AND `name` = 'contact_edit_options'"; $dao = CRM_Core_DAO::executeQuery($query); $dao->fetch(); @@ -247,7 +252,7 @@ DROP KEY `{$dao->CONSTRAINT_NAME}`"; * * @return bool TRUE for success */ - static function migrateHonoreeInfo(CRM_Queue_TaskContext $ctx) { + public static function migrateHonoreeInfo(CRM_Queue_TaskContext $ctx) { $query = "ALTER TABLE `civicrm_uf_join` ADD COLUMN `module_data` longtext COMMENT 'Json serialized array of data used by the ufjoin.module'"; CRM_Core_DAO::executeQuery($query); @@ -304,7 +309,7 @@ DROP KEY `{$dao->CONSTRAINT_NAME}`"; /** * (Queue Task Callback) */ - static function task_4_5_x_runSql(CRM_Queue_TaskContext $ctx, $rev) { + public static function task_4_5_x_runSql(CRM_Queue_TaskContext $ctx, $rev) { $upgrade = new CRM_Upgrade_Form(); $upgrade->processSQL($rev);