<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
if (!isset(self::$_contributionLinks)) {
//get contribution dates.
$dates = CRM_Contribute_BAO_Contribution::getContributionDates();
- foreach (array(
- 'now', 'yearDate', 'monthDate') as $date) {
- $$date = $dates[$date];
- }
+ $now = $dates['now'];
+ $yearDate = $dates['yearDate'];
+ $monthDate = $dates['monthDate'];
$yearNow = $yearDate + 10000;
$urlString = 'civicrm/contribute/search';
/**
* Browse all contribution pages
*
+ * @param null $action
+ *
* @return void
* @access public
* @static
$form->run();
}
+ /**
+ * @param $params
+ * @param bool $sortBy
+ *
+ * @return int|string
+ */
function whereClause(&$params, $sortBy = TRUE) {
$values = $clauses = array();
$title = $this->get('title');
return implode(' AND ', $clauses);
}
+ /**
+ * @param $whereClause
+ * @param $whereParams
+ */
function pager($whereClause, $whereParams) {
$params['status'] = ts('Contribution %%StatusMessage%%');
$this->assign_by_ref('pager', $this->_pager);
}
+ /**
+ * @param $whereClause
+ * @param $whereParams
+ */
function pagerAtoZ($whereClause, $whereParams) {
$query = "
$this->assign('aToZ', $aToZBar);
}
+ /**
+ * @param $sectionsInfo
+ *
+ * @return array
+ */
function formatConfigureLinks($sectionsInfo) {
//build the formatted configure links.
$formattedConfLinks = self::configureActionLinks();
$classes = $link['class'];
}
- if (!CRM_Utils_Array::value($sectionName, $sectionsInfo)) {
+ if (empty($sectionsInfo[$sectionName])) {
$classes = array();
if (isset($link['class'])) {
$classes = $link['class'];