*/
require_once 'CRM/Wci/DAO/ProgressBar.php';
-class CRM_WCI_BAO_ProgressBar extends CRM_WCI_DAO_ProgressBar {
+class CRM_Wci_BAO_ProgressBar extends CRM_Wci_DAO_ProgressBar {
/**
* class constructor
*
* @param array $params (reference ) an assoc array of name/value pairs
*
- * @return object CRM_WCI_BAO_ProgressBar object
+ * @return object CRM_Wci_BAO_ProgressBar object
* @access public
* @static
*/
CRM_Core_Error::fatal('Not enough data to create a progress bar.');
}
- $progress_bar = new CRM_WCI_BAO_ProgressBar();
+ $progress_bar = new CRM_Wci_BAO_ProgressBar();
$progress_bar->copyValues($params);
$progress_bar->save();
* names of civicrm_wci_widget.
*
* @param array $params
- * @return array of CRM_WCI_BAO_ProgressBar objects
+ * @return array of CRM_Wci_BAO_ProgressBar objects
*/
static function retrieve(array $params) {
$result = array();
- $progress_bar = new CRM_WCI_BAO_ProgressBar();
+ $progress_bar = new CRM_Wci_BAO_ProgressBar();
$progress_bar->copyValues($params);
$progress_bar->find();
* Wrapper method for retrieve
*
* @param mixed $id Int or int-like string representing widget ID
- * @return CRM_WCI_BAO_ProgressBar
+ * @return CRM_Wci_BAO_ProgressBar
*/
static function retrieveByID($id) {
if (!is_int($id) && !ctype_digit($id)) {
$params = array();
$pbList = array();
- $dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_WCI_DAO_ProgressBar');
+ $dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_Wci_DAO_ProgressBar');
while ($dao->fetch()) {
$pbList[$dao->id] = array();
$bp = 0;
$query = "SELECT * FROM civicrm_wci_progress_bar where id=" . $idPB;
$params = array();
- $dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_WCI_DAO_ProgressBar');
+ $dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_Wci_DAO_ProgressBar');
while ($dao->fetch()) {
$con_page[$dao->id] = array();
$query = "SELECT * FROM civicrm_wci_progress_bar_formula WHERE progress_bar_id =" . $idPB;
$params = array();
- $daoPbf = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_WCI_DAO_ProgressBarFormula');
+ $daoPbf = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_Wci_DAO_ProgressBarFormula');
while ($daoPbf->fetch()) {
$for_page[$daoPbf->id] = array();
CRM_Core_DAO::storeValues($daoPbf, $for_page[$daoPbf->id]);
*
*/
-class CRM_WCI_BAO_ProgressBarFormula extends CRM_WCI_DAO_ProgressBarFormula {
+class CRM_Wci_BAO_ProgressBarFormula extends CRM_Wci_DAO_ProgressBarFormula {
/**
* class constructor
*
* @param array $params (reference ) an assoc array of name/value pairs
*
- * @return object CRM_WCI_BAO_ProgressBarFormula object
+ * @return object CRM_Wci_BAO_ProgressBarFormula object
* @access public
* @static
*/
CRM_Core_Error::fatal('Not enough data to create a progress bar formula entry.');
}
- $progress_bar_formula = new CRM_WCI_BAO_ProgressBarFormula();
+ $progress_bar_formula = new CRM_Wci_BAO_ProgressBarFormula();
$progress_bar_formula->copyValues($params);
$progress_bar_formula->save();
* names of civicrm_wci_widget.
*
* @param array $params
- * @return array of CRM_WCI_BAO_ProgressBarFormula objects
+ * @return array of CRM_Wci_BAO_ProgressBarFormula objects
*/
static function retrieve(array $params) {
$result = array();
- $progress_bar_formula = new CRM_WCI_BAO_ProgressBarFormula();
+ $progress_bar_formula = new CRM_Wci_BAO_ProgressBarFormula();
$progress_bar_formula->copyValues($params);
$progress_bar_formula->find();
* Wrapper method for retrieve
*
* @param mixed $id Int or int-like string representing widget ID
- * @return CRM_WCI_BAO_ProgressBarFormula
+ * @return CRM_Wci_BAO_ProgressBarFormula
*/
static function retrieveByID($id) {
if (!is_int($id) && !ctype_digit($id)) {
*
*/
-class CRM_WCI_BAO_Widget extends CRM_WCI_DAO_Widget {
+class CRM_Wci_BAO_Widget extends CRM_Wci_DAO_Widget {
/**
* class constructor
*
* @param array $params (reference ) an assoc array of name/value pairs
*
- * @return object CRM_WCI_BAO_Widget object
+ * @return object CRM_Wci_BAO_Widget object
* @access public
* @static
*/
CRM_Core_Error::fatal('Not enough data to create a widget.');
}
- $widget = new CRM_WCI_BAO_Widget();
+ $widget = new CRM_Wci_BAO_Widget();
$widget->copyValues($params);
$widget->save();
* names of civicrm_wci_widget.
*
* @param array $params
- * @return array of CRM_WCI_BAO_Widget objects
+ * @return array of CRM_Wci_BAO_Widget objects
*/
static function retrieve(array $params) {
$result = array();
- $widget = new CRM_WCI_BAO_Widget();
+ $widget = new CRM_Wci_BAO_Widget();
$widget->copyValues($params);
$widget->find();
* Wrapper method for retrieve
*
* @param mixed $id Int or int-like string representing widget ID
- * @return CRM_WCI_BAO_Widget
+ * @return CRM_Wci_BAO_Widget
*/
static function retrieveByID($id) {
if (!is_int($id) && !ctype_digit($id)) {
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2013
*/
-require_once 'CRM/Core/DAO.php';
-require_once 'CRM/Utils/Type.php';
-class CRM_WCI_DAO_ProgressBar extends CRM_Core_DAO
+class CRM_Wci_DAO_ProgressBar extends CRM_Core_DAO
{
/**
* static instance to hold the table name
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2013
*/
-require_once 'CRM/Core/DAO.php';
-require_once 'CRM/Utils/Type.php';
-class CRM_WCI_DAO_ProgressBarFormula extends CRM_Core_DAO
+class CRM_Wci_DAO_ProgressBarFormula extends CRM_Core_DAO
{
/**
* static instance to hold the table name
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2013
*/
-require_once 'CRM/Core/DAO.php';
-require_once 'CRM/Utils/Type.php';
-class CRM_WCI_DAO_Widget extends CRM_Core_DAO
+class CRM_Wci_DAO_Widget extends CRM_Core_DAO
{
/**
* static instance to hold the table name
where w.id=" . $this->_id;
$params = array();
- $dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_WCI_DAO_Widget');
+ $dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_Wci_DAO_Widget');
while ($dao->fetch()) {
$wid_page[$dao->id] = array();
$options = array(
'' => ts('- select -'),
);
- $pbList = CRM_WCI_BAO_ProgressBar::getProgressbarList();
+ $pbList = CRM_Wci_BAO_ProgressBar::getProgressbarList();
foreach ($pbList as $pb) {
$options[$pb['id']] = $pb['name'];
}
$query = "SELECT * FROM civicrm_wci_progress_bar where id=" . $this->_id;
$params = array();
- $dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_WCI_DAO_ProgressBar');
+ $dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_Wci_DAO_ProgressBar');
while ($dao->fetch()) {
$con_page[$dao->id] = array();
$query = "SELECT * FROM civicrm_wci_progress_bar_formula WHERE progress_bar_id =" . $this->_id;
$params = array();
- $dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_WCI_DAO_ProgressBarFormula');
+ $dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_Wci_DAO_ProgressBarFormula');
while ($dao->fetch()) {
$for_page[$dao->id] = array();
$query = "SELECT * FROM civicrm_wci_progress_bar";
$params = array();
- $dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_WCI_DAO_ProgressBar');
+ $dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_Wci_DAO_ProgressBar');
while ($dao->fetch()) {
$con_page[$dao->id] = array();
$query = "SELECT * FROM civicrm_wci_widget";
$params = array();
- $dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_WCI_DAO_Widget');
+ $dao = CRM_Core_DAO::executeQuery($query, $params, TRUE, 'CRM_Wci_DAO_Widget');
while ($dao->fetch()) {
$wid_page[$dao->id] = array();