From dcd2221de6359f2e55f074c4ec37d41ac9e846d7 Mon Sep 17 00:00:00 2001 From: Jagadedes Date: Tue, 25 Nov 2014 16:40:58 +0530 Subject: [PATCH] 31452 change module name --- CRM/Wci/DAO/NewEmbedCode.php | 4 +- CRM/Wci/DAO/ProgressBar.php | 4 +- CRM/Wci/DAO/ProgressBarFormula.php | 8 ++-- CRM/Wci/DAO/Widget.php | 60 +++++++++++++++--------------- CRM/Wci/DAO/WidgetCache.php | 4 +- CRM/Wci/Form/CreateWidget.php | 2 +- CRM/Wci/Form/ProgressBar.php | 2 +- CRM/Wci/Upgrader/Base.php | 2 +- info.xml | 13 ++++--- sql/uninstall.sql | 2 +- wci.civix.php | 4 +- 11 files changed, 54 insertions(+), 51 deletions(-) diff --git a/CRM/Wci/DAO/NewEmbedCode.php b/CRM/Wci/DAO/NewEmbedCode.php index 0528dc6..820a4e7 100644 --- a/CRM/Wci/DAO/NewEmbedCode.php +++ b/CRM/Wci/DAO/NewEmbedCode.php @@ -129,13 +129,13 @@ class CRM_Wci_DAO_EmbedCode extends CRM_Core_DAO 'embed_code_id' => array( 'name' => 'id', 'type' => CRM_Utils_Type::T_INT, - 'title' => ts('WCI embed code Id', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('WCI embed code Id', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, ) , 'name' => array( 'name' => 'name', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('embed cide Name', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('embed cide Name', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 64, ) , diff --git a/CRM/Wci/DAO/ProgressBar.php b/CRM/Wci/DAO/ProgressBar.php index 9d126af..ef8b7ee 100644 --- a/CRM/Wci/DAO/ProgressBar.php +++ b/CRM/Wci/DAO/ProgressBar.php @@ -128,13 +128,13 @@ class CRM_Wci_DAO_ProgressBar extends CRM_Core_DAO 'progress_bar_id' => array( 'name' => 'id', 'type' => CRM_Utils_Type::T_INT, - 'title' => ts('WCI Progress Bar Id', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('WCI Progress Bar Id', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, ) , 'name' => array( 'name' => 'name', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Progress Bar Name', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Progress Bar Name', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 64, ) , diff --git a/CRM/Wci/DAO/ProgressBarFormula.php b/CRM/Wci/DAO/ProgressBarFormula.php index 77a7ba9..a6982f7 100644 --- a/CRM/Wci/DAO/ProgressBarFormula.php +++ b/CRM/Wci/DAO/ProgressBarFormula.php @@ -139,25 +139,25 @@ class CRM_Wci_DAO_ProgressBarFormula extends CRM_Core_DAO 'progress_bar_formula_id' => array( 'name' => 'id', 'type' => CRM_Utils_Type::T_INT, - 'title' => ts('WCI Progress Bar Formula Entry Id', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('WCI Progress Bar Formula Entry Id', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, ) , 'contribution_page_id' => array( 'name' => 'contribution_page_id', 'type' => CRM_Utils_Type::T_INT, - 'title' => ts('Contribution Page Reference Id', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Contribution Page Reference Id', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, ) , 'progress_bar_id' => array( 'name' => 'progress_bar_id', 'type' => CRM_Utils_Type::T_INT, - 'title' => ts('Progress Bar Reference Id', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Progress Bar Reference Id', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, ) , 'percentage' => array( 'name' => 'percentage', 'type' => CRM_Utils_Type::T_FLOAT, - 'title' => ts('Percentage Amount', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Percentage Amount', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, ) , ); diff --git a/CRM/Wci/DAO/Widget.php b/CRM/Wci/DAO/Widget.php index 834c33c..60e8aba 100644 --- a/CRM/Wci/DAO/Widget.php +++ b/CRM/Wci/DAO/Widget.php @@ -303,199 +303,199 @@ class CRM_Wci_DAO_Widget extends CRM_Core_DAO 'widget_id' => array( 'name' => 'id', 'type' => CRM_Utils_Type::T_INT, - 'title' => ts('WCI Widget Id', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('WCI Widget Id', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, ) , 'title' => array( 'name' => 'title', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Widget title', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Widget title', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 64, ) , 'logo_image' => array( 'name' => 'logo_image', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Image url of widget logo image', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Image url of widget logo image', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, 'maxlength' => 255, ) , 'image' => array( 'name' => 'image', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Url of widget image', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Url of widget image', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, 'maxlength' => 255, ) , 'button_title' => array( 'name' => 'button_title', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Contribute/Donate button title', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Contribute/Donate button title', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, 'maxlength' => 64, ) , 'button_link_to' => array( 'name' => 'button_link_to', 'type' => CRM_Utils_Type::T_INT, - 'title' => ts('Contribution/Donation page reference', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Contribution/Donation page reference', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, ) , 'progress_bar_id' => array( 'name' => 'id', 'type' => CRM_Utils_Type::T_INT, - 'title' => ts('WCI Progress Bar Reference Id', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('WCI Progress Bar Reference Id', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, ) , 'description' => array( 'name' => 'description', 'type' => CRM_Utils_Type::T_TEXT, - 'title' => ts('Widget description', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Widget description', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, ) , 'email_signup_group_id' => array( 'name' => 'email_signup_group_id', 'type' => CRM_Utils_Type::T_INT, - 'title' => ts('Group reference for email newsletter signup', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Group reference for email newsletter signup', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, ) , 'size_variant' => array( 'name' => 'id', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Widget size variant', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Widget size variant', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 10, ) , 'color_title' => array( 'name' => 'color_title', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Widget title color', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Widget title color', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 10, ) , 'color_title_bg' => array( 'name' => 'color_title_bg', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Widget title background color', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Widget title background color', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 10, ) , 'color_progress_bar' => array( 'name' => 'color_progress_bar', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Progress bar color', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Progress bar color', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 10, ) , 'color_progress_bar_bg' => array( 'name' => 'color_progress_bar_bg', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Progress bar background color', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Progress bar background color', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 10, ) , 'color_widget_bg' => array( 'name' => 'color_widget_bg', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Widget background color', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Widget background color', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 10, ) , 'color_description' => array( 'name' => 'color_description', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Widget description color', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Widget description color', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 10, ) , 'color_border' => array( 'name' => 'color_border', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Widget border color', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Widget border color', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 10, ) , 'color_button' => array( 'name' => 'color_button', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Widget button text color', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Widget button text color', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 10, ) , 'color_button_bg' => array( 'name' => 'color_button_bg', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Widget button background color', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Widget button background color', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 10, ) , 'style_rules' => array( 'name' => 'style_rules', 'type' => CRM_Utils_Type::T_TEXT, - 'title' => ts('Additional style rules', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Additional style rules', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, ) , 'override' => array( 'name' => 'override', 'type' => CRM_Utils_Type::T_BOOLEAN, - 'title' => ts('Override default template', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Override default template', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, ) , 'hide_title' => array( 'name' => 'hide_title', 'type' => CRM_Utils_Type::T_BOOLEAN, - 'title' => ts('Hide title, if 1.', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Hide title, if 1.', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, ) , 'hide_border' => array( 'name' => 'hide_border', 'type' => CRM_Utils_Type::T_BOOLEAN, - 'title' => ts('Hide widget border, if 1.', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Hide widget border, if 1.', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, ) , 'hide_pbcap' => array( 'name' => 'hide_pbcap', 'type' => CRM_Utils_Type::T_BOOLEAN, - 'title' => ts('Hide pb caption, if 1.', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Hide pb caption, if 1.', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, ) , 'show_pb_perc' => array( 'name' => 'show_pb_perc', 'type' => CRM_Utils_Type::T_BOOLEAN, - 'title' => ts('pb in %(1) or amount(0).', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('pb in %(1) or amount(0).', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, ) , 'custom_template' => array( 'name' => 'custom_template', 'type' => CRM_Utils_Type::T_TEXT, - 'title' => ts('Widget custom template', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Widget custom template', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, ) , 'color_btn_newsletter' => array( 'name' => 'color_btn_newsletter', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Newsletter Button text color', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Newsletter Button text color', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 10, ) , 'color_btn_newsletter_bg' => array( 'name' => 'color_btn_newsletter_bg', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Newsletter Button color', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Newsletter Button color', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 10, ) , 'newsletter_text' => array( 'name' => 'newsletter_text', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Newsletter text', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Newsletter text', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 64, ) , 'color_newsletter_text' => array( 'name' => 'color_newsletter_text', 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Newsletter text color', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('Newsletter text color', array('domain' => 'com.zyxware.civiwci')) , 'required' => true, 'maxlength' => 10, ) , diff --git a/CRM/Wci/DAO/WidgetCache.php b/CRM/Wci/DAO/WidgetCache.php index fce4f1a..3e7bd39 100644 --- a/CRM/Wci/DAO/WidgetCache.php +++ b/CRM/Wci/DAO/WidgetCache.php @@ -139,13 +139,13 @@ class CRM_Wci_DAO_WidgetCache extends CRM_Core_DAO 'widget_code' => array( 'name' => 'widget_code', 'type' => CRM_Utils_Type::T_TEXT, - 'title' => ts('widget code', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('widget code', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, ) , 'expire' => array( 'name' => 'ts', 'type' => CRM_Utils_Type::T_INT, - 'title' => ts('timestamp', array('domain' => 'org.civicrm.wci')) , + 'title' => ts('timestamp', array('domain' => 'com.zyxware.civiwci')) , 'required' => false, ) , diff --git a/CRM/Wci/Form/CreateWidget.php b/CRM/Wci/Form/CreateWidget.php index 47044be..7440b8a 100644 --- a/CRM/Wci/Form/CreateWidget.php +++ b/CRM/Wci/Form/CreateWidget.php @@ -41,7 +41,7 @@ class CRM_Wci_Form_CreateWidget extends CRM_Core_Form { protected $_id; function preProcess() { - CRM_Core_Resources::singleton()->addScriptFile('org.civicrm.wci', 'js/createwidget.js'); + CRM_Core_Resources::singleton()->addScriptFile('com.zyxware.civiwci', 'js/createwidget.js'); parent::preProcess(); $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this, FALSE, NULL, 'REQUEST' ); diff --git a/CRM/Wci/Form/ProgressBar.php b/CRM/Wci/Form/ProgressBar.php index 650345b..9e55d40 100644 --- a/CRM/Wci/Form/ProgressBar.php +++ b/CRM/Wci/Form/ProgressBar.php @@ -36,7 +36,7 @@ class CRM_Wci_Form_ProgressBar extends CRM_Core_Form { function preProcess() { $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this, FALSE, NULL, 'REQUEST'); - CRM_Core_Resources::singleton()->addScriptFile('org.civicrm.wci', 'js/addmore.js'); + CRM_Core_Resources::singleton()->addScriptFile('com.zyxware.civiwci', 'js/addmore.js'); parent::preProcess(); } diff --git a/CRM/Wci/Upgrader/Base.php b/CRM/Wci/Upgrader/Base.php index d37b6ca..64f2fc2 100644 --- a/CRM/Wci/Upgrader/Base.php +++ b/CRM/Wci/Upgrader/Base.php @@ -61,7 +61,7 @@ class CRM_Wci_Upgrader_Base { if (! self::$instance) { // FIXME auto-generate self::$instance = new CRM_Wci_Upgrader( - 'org.civicrm.wci', + 'com.zyxware.civiwci', realpath(__DIR__ .'/../../../') ); } diff --git a/info.xml b/info.xml index 8058414..fd13514 100644 --- a/info.xml +++ b/info.xml @@ -1,15 +1,15 @@ - + wci - Widget Creation Interface - CiviCRM CMS independent Widget Creation Interface. + CiviWCI + Widget Creation Interface, CiviCRM CMS independent Widget Creation Interface. AGPL-3.0 Manoj K, Jagadees Pillai manoj.k@zyxware.com, jagadees.pillai@zyxware.com - 2014-11-21 - 1.0-rc2 + 2014-11-25 + 1.0-rc3 beta 4.4 @@ -18,4 +18,7 @@ CRM/Wci + + https://github.com/zyxware/civiwci/wiki + diff --git a/sql/uninstall.sql b/sql/uninstall.sql index 432207f..f33a59f 100644 --- a/sql/uninstall.sql +++ b/sql/uninstall.sql @@ -2,4 +2,4 @@ DROP TABLE IF EXISTS civicrm_wci_widget; DROP TABLE IF EXISTS civicrm_wci_progress_bar_formula; DROP TABLE IF EXISTS civicrm_wci_progress_bar; DROP TABLE IF EXISTS civicrm_wci_embed_code; - +DROP TABLE IF EXISTS civicrm_wci_widget_cache; diff --git a/wci.civix.php b/wci.civix.php index 4dd1640..c9c2609 100644 --- a/wci.civix.php +++ b/wci.civix.php @@ -191,7 +191,7 @@ function _wci_civix_civicrm_managed(&$entities) { $es = include $file; foreach ($es as $e) { if (empty($e['module'])) { - $e['module'] = 'org.civicrm.wci'; + $e['module'] = 'com.zyxware.civiwci'; } $entities[] = $e; } @@ -220,7 +220,7 @@ function _wci_civix_civicrm_caseTypes(&$caseTypes) { // throw new CRM_Core_Exception($errorMessage); } $caseTypes[$name] = array( - 'module' => 'org.civicrm.wci', + 'module' => 'com.zyxware.civiwci', 'name' => $name, 'file' => $file, ); -- 2.25.1