*
* @return array
*/
- function &actionLinks() {
+ public function &actionLinks() {
// check if variable _actionsLinks is populated
if (!isset(self::$_actionLinks)) {
// helper variable for nicer formatting
);
// set breadcrumb to append to 2nd layer pages
- $breadCrumb = array(array(
- 'title' => ts('Manage Contribution Pages'),
+ $breadCrumb = array(
+ array(
+ 'title' => ts('Manage Contribution Pages'),
'url' => CRM_Utils_System::url(CRM_Utils_System::currentPath(),
'reset=1'
),
- ));
+ ),
+ );
// what action to take ?
if ($action & CRM_Core_Action::ADD) {
$session = CRM_Core_Session::singleton();
$session->pushUserContext(CRM_Utils_System::url(CRM_Utils_System::currentPath(),
- 'action=browse&reset=1'
- ));
+ 'action=browse&reset=1'
+ ));
$controller = new CRM_Contribute_Controller_ContributionPage(NULL, $action);
CRM_Utils_System::setTitle(ts('Manage Contribution Page'));
$session = CRM_Core_Session::singleton();
$session->pushUserContext(CRM_Utils_System::url(CRM_Utils_System::currentPath(),
- 'reset=1&action=browse'
- ));
+ 'reset=1&action=browse'
+ ));
$id = CRM_Utils_Request::retrieve('id', 'Positive',
$this, FALSE, 0
*
* @param mixed $action
* Unused parameter.
- * @static
*/
public function browse($action = NULL) {
$this->_sortByCharacter = CRM_Utils_Request::retrieve('sortByCharacter',
*/
public function whereClause(&$params, $sortBy = TRUE) {
// @todo Unused local variable can be safely removed.
- $values = $clauses = array();
- $title = $this->get('title');
+ $values = $clauses = array();
+ $title = $this->get('title');
$createdId = $this->get('cid');
if ($createdId) {
*
* @return int[]
*/
- function getCampaignIds() {
+ public function getCampaignIds() {
// The unfiltered value from the session cannot be trusted, it needs to be
// processed to get a clean array of positive integers.
$ids = array();
* @param $whereClause
* @param array $whereParams
*/
- function pager($whereClause, $whereParams) {
+ public function pager($whereClause, $whereParams) {
$params['status'] = ts('Contribution %%StatusMessage%%');
$params['csvString'] = NULL;