private static $_links = NULL;
+ /**
+ * @var CRM_Utils_Pager
+ */
protected $_pager = NULL;
+ /**
+ * @var string
+ */
protected $_sortByCharacter;
/**
* Get the action links for this page.
*
- * @return array $_actionLinks
- *
- */ function &actionLinks() {
+ * @return array
+ */
+ function &actionLinks() {
// check if variable _actionsLinks is populated
if (!isset(self::$_actionLinks)) {
// helper variable for nicer formatting
/**
* Get the configure action links for this page.
*
- * @return array $_configureActionLinks
- *
+ * @return array
*/
- function &configureActionLinks() {
+ public function &configureActionLinks() {
// check if variable _actionsLinks is populated
if (!isset(self::$_configureActionLinks)) {
$urlString = 'civicrm/admin/contribute/';
/**
* Get the online contribution links.
*
- * @return array $_onlineContributionLinks.
- *
+ * @return array
*/
- function &onlineContributionLinks() {
+ public function &onlineContributionLinks() {
if (!isset(self::$_onlineContributionLinks)) {
$urlString = 'civicrm/contribute/transact';
$urlParams = 'reset=1&id=%%id%%';
/**
* Get the contributions links.
*
- * @return array $_contributionLinks
- *
+ * @return array
*/
- function &contributionLinks() {
+ public function &contributionLinks() {
if (!isset(self::$_contributionLinks)) {
//get contribution dates.
$dates = CRM_Contribute_BAO_Contribution::getContributionDates();
* type of action and executes that action.
* Finally it calls the parent's run method.
*
- * @return void
- * @access public
- *
+ * @return mixed
*/
- function run() {
+ public function run() {
// get the requested action
$action = CRM_Utils_Request::retrieve('action', 'String',
// default to 'browse'
* all the fields in the page
*
* @return void
- * @access public
*/
- function copy() {
+ public function copy() {
$gid = CRM_Utils_Request::retrieve('gid', 'Positive',
$this, TRUE, 0, 'GET'
);
/**
* Browse all contribution pages
*
- * @param null $action
- *
- * @return void
- * @access public
+ * @param mixed $action
+ * Unused parameter.
* @static
*/
- function browse($action = NULL) {
+ public function browse($action = NULL) {
$this->_sortByCharacter = CRM_Utils_Request::retrieve('sortByCharacter',
'String',
$this
}
}
- function search() {
+ public function search() {
if (isset($this->_action) &
(CRM_Core_Action::ADD |
CRM_Core_Action::UPDATE |
*
* @return int|string
*/
- function whereClause(&$params, $sortBy = TRUE) {
+ public function whereClause(&$params, $sortBy = TRUE) {
$values = $clauses = array();
$title = $this->get('title');
$createdId = $this->get('cid');
* @param $whereClause
* @param array $whereParams
*/
- function pager($whereClause, $whereParams) {
+ public function pager($whereClause, $whereParams) {
$params['status'] = ts('Contribution %%StatusMessage%%');
$params['csvString'] = NULL;
* @param $whereClause
* @param array $whereParams
*/
- function pagerAtoZ($whereClause, $whereParams) {
+ public function pagerAtoZ($whereClause, $whereParams) {
$query = "
SELECT DISTINCT UPPER(LEFT(title, 1)) as sort_name
*
* @return array
*/
- function formatConfigureLinks($sectionsInfo) {
+ public function formatConfigureLinks($sectionsInfo) {
//build the formatted configure links.
$formattedConfLinks = self::configureActionLinks();
foreach ($formattedConfLinks as $act => & $link) {
return $formattedConfLinks;
}
}
-