X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FReport%2FForm%2FContribute%2FSybunt.php;h=3dcfffb67f74c7666dcc55ff68e636e9e0d2535c;hb=5667521530926d61b370a4bb0806b7e5ad63ccbc;hp=e1831a46778b738d1d7535b9443629f74fe884c7;hpb=d69fa047cdc76b337124f93354abb2e1bf207a58;p=civicrm-core.git diff --git a/CRM/Report/Form/Contribute/Sybunt.php b/CRM/Report/Form/Contribute/Sybunt.php index e1831a4677..3dcfffb67f 100644 --- a/CRM/Report/Form/Contribute/Sybunt.php +++ b/CRM/Report/Form/Contribute/Sybunt.php @@ -1,7 +1,7 @@ _columnHeaders = array(); $current_year = $this->_params['yid_value']; @@ -236,7 +236,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form { $this->_select = "SELECT " . implode(', ', $select) . " "; } - function from() { + public function from() { $this->_from = " FROM civicrm_contribution {$this->_aliases['civicrm_contribution']} @@ -259,7 +259,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form { $this->addAddressFromClause(); } - function where() { + public function where() { $this->_statusClause = ""; $clauses = array($this->_aliases['civicrm_contribution'] . '.is_test = 0'); foreach ($this->_columns as $tableName => $table) { @@ -315,7 +315,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form { } } - function groupBy() { + public function groupBy() { $this->assign('chartSupported', TRUE); $this->_groupBy = "Group BY {$this->_aliases['civicrm_contribution']}.contact_id, " . @@ -328,7 +328,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form { * * @return array */ - function statistics(&$rows) { + public function statistics(&$rows) { $statistics = parent::statistics($rows); if (!empty($rows)) { @@ -349,7 +349,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form { return $statistics; } - function postProcess() { + public function postProcess() { // get ready with post process params $this->beginPostProcess(); @@ -435,7 +435,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form { /** * @param $rows */ - function buildChart(&$rows) { + public function buildChart(&$rows) { $graphRows = array(); $count = 0; $current_year = $this->_params['yid_value']; @@ -481,7 +481,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form { /** * @param $rows */ - function alterDisplay(&$rows) { + public function alterDisplay(&$rows) { // custom code to alter rows $entryFound = FALSE; @@ -525,7 +525,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form { * * @return array */ - function getOperationPair($type = "string", $fieldName = NULL) { + public function getOperationPair($type = "string", $fieldName = NULL) { if ($fieldName == 'yid') { return array( 'calendar' => ts('Is Calendar Year'), @@ -535,4 +535,3 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form { return parent::getOperationPair($type, $fieldName); } } -