projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4696 from colemanw/CRM-15669
[civicrm-core.git]
/
CRM
/
Event
/
Page
/
ManageEvent.php
diff --git
a/CRM/Event/Page/ManageEvent.php
b/CRM/Event/Page/ManageEvent.php
index 99efc7c7f8fe11d11e81acc1b1590a69ff0a35b5..6273688e5670a29f4c58c63c1cd287b0525eadce 100644
(file)
--- a/
CRM/Event/Page/ManageEvent.php
+++ b/
CRM/Event/Page/ManageEvent.php
@@
-61,7
+61,7
@@
class CRM_Event_Page_ManageEvent extends CRM_Core_Page {
*
* @return array (reference) of action links
*/
*
* @return array (reference) of action links
*/
- function &links() {
+
public
function &links() {
if (!(self::$_actionLinks)) {
// helper variable for nicer formatting
$copyExtra = ts('Are you sure you want to make a copy of this Event?');
if (!(self::$_actionLinks)) {
// helper variable for nicer formatting
$copyExtra = ts('Are you sure you want to make a copy of this Event?');
@@
-104,7
+104,7
@@
class CRM_Event_Page_ManageEvent extends CRM_Core_Page {
*
* @return array (reference) of tab links
*/
*
* @return array (reference) of tab links
*/
- static function &tabs($enableCart) {
+
public
static function &tabs($enableCart) {
$cacheKey = $enableCart ? 1 : 0;
if (!(self::$_tabLinks)) {
self::$_tabLinks = array();
$cacheKey = $enableCart ? 1 : 0;
if (!(self::$_tabLinks)) {
self::$_tabLinks = array();
@@
-186,10
+186,9
@@
class CRM_Event_Page_ManageEvent extends CRM_Core_Page {
* Finally it calls the parent's run method.
*
* @return void
* Finally it calls the parent's run method.
*
* @return void
- * @access public
*
*/
*
*/
- function run() {
+
public
function run() {
// get the requested action
$action = CRM_Utils_Request::retrieve('action', 'String',
// default to 'browse'
// get the requested action
$action = CRM_Utils_Request::retrieve('action', 'String',
// default to 'browse'
@@
-245,7
+244,7
@@
class CRM_Event_Page_ManageEvent extends CRM_Core_Page {
*
* @return void
*/
*
* @return void
*/
- function browse() {
+
public
function browse() {
$this->assign('includeWysiwygEditor', TRUE);
$this->_sortByCharacter = CRM_Utils_Request::retrieve('sortByCharacter',
'String',
$this->assign('includeWysiwygEditor', TRUE);
$this->_sortByCharacter = CRM_Utils_Request::retrieve('sortByCharacter',
'String',
@@
-399,9
+398,8
@@
ORDER BY start_date desc
* all the fields in the event wizard
*
* @return void
* all the fields in the event wizard
*
* @return void
- * @access public
*/
*/
- function copy() {
+
public
function copy() {
$id = CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE, 0, 'GET');
$urlString = 'civicrm/event/manage';
$id = CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE, 0, 'GET');
$urlString = 'civicrm/event/manage';
@@
-416,7
+414,7
@@
ORDER BY start_date desc
return CRM_Utils_System::redirect(CRM_Utils_System::url($urlString, $urlParams));
}
return CRM_Utils_System::redirect(CRM_Utils_System::url($urlString, $urlParams));
}
- function search() {
+
public
function search() {
if (isset($this->_action) &
(CRM_Core_Action::ADD |
CRM_Core_Action::UPDATE |
if (isset($this->_action) &
(CRM_Core_Action::ADD |
CRM_Core_Action::UPDATE |
@@
-440,7
+438,7
@@
ORDER BY start_date desc
*
* @return string
*/
*
* @return string
*/
- function whereClause(&$params, $sortBy = TRUE, $force) {
+
public
function whereClause(&$params, $sortBy = TRUE, $force) {
$values = array();
$clauses = array();
$title = $this->get('title');
$values = array();
$clauses = array();
$title = $this->get('title');
@@
-532,7
+530,7
@@
ORDER BY start_date desc
* @param $whereClause
* @param array $whereParams
*/
* @param $whereClause
* @param array $whereParams
*/
- function pager($whereClause, $whereParams) {
+
public
function pager($whereClause, $whereParams) {
$params['status'] = ts('Event %%StatusMessage%%');
$params['csvString'] = NULL;
$params['status'] = ts('Event %%StatusMessage%%');
$params['csvString'] = NULL;
@@
-558,7
+556,7
@@
SELECT count(id)
* @param $whereClause
* @param array $whereParams
*/
* @param $whereClause
* @param array $whereParams
*/
- function pagerAtoZ($whereClause, $whereParams) {
+
public
function pagerAtoZ($whereClause, $whereParams) {
$query = "
SELECT DISTINCT UPPER(LEFT(title, 1)) as sort_name
$query = "
SELECT DISTINCT UPPER(LEFT(title, 1)) as sort_name
@@
-572,4
+570,3
@@
SELECT count(id)
$this->assign('aToZ', $aToZBar);
}
}
$this->assign('aToZ', $aToZBar);
}
}
-