<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
*
* @return string Classname of BAO.
*/
- function getBAOName() {
+ public function getBAOName() {
return 'CRM_PCP_BAO_PCP';
}
*
* @return array (reference) of action links
*/
- function &links() {
+ public function &links() {
if (!(self::$_links)) {
// helper variable for nicer formatting
$deleteExtra = ts('Are you sure you want to delete this Campaign Page ?');
* @param
*
* @return void
- * @access public
*/
- function run() {
+ public function run() {
// get the requested action
$action = CRM_Utils_Request::retrieve('action', 'String',
$this, FALSE,
* Browse all custom data groups.
*
*
+ * @param null $action
+ *
* @return void
- * @access public
* @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 ($this->_action & CRM_Core_Action::DELETE) {
return;
*
* @return string Classname of edit form.
*/
- function editForm() {
+ public function editForm() {
return 'CRM_PCP_Form_PCP';
}
*
* @return string name of this page.
*/
- function editName() {
+ public function editName() {
return ts('Personal Campaign Page');
}
*
* @return string user context.
*/
- function userContext($mode = NULL) {
+ public function userContext($mode = NULL) {
return 'civicrm/admin/pcp';
}
//@TODO this function changed, debug this at runtime
- function pagerAtoZ($whereClause, $whereParams) {
+ /**
+ * @param $whereClause
+ * @param array $whereParams
+ */
+ public function pagerAtoZ($whereClause, $whereParams) {
$where = '';
if ($whereClause) {
if (strpos($whereClause, ' AND') == 0) {
$this->assign('aToZ', $aToZBar);
}
}
-