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 #4917 from eileenmcnaughton/minor-tidies
[civicrm-core.git]
/
CRM
/
Event
/
Page
/
Tab.php
diff --git
a/CRM/Event/Page/Tab.php
b/CRM/Event/Page/Tab.php
index 0aae4d128f98005615f56f1d7365fa5cde5d9abd..1cc1f3f996248fffe6b3550efc5362f24ebb78e5 100644
(file)
--- a/
CRM/Event/Page/Tab.php
+++ b/
CRM/Event/Page/Tab.php
@@
-38,9
+38,9
@@
class CRM_Event_Page_Tab extends CRM_Core_Page {
public $_contactId = NULL;
/**
public $_contactId = NULL;
/**
- *
This function is
called when action is browse
+ * called when action is browse
*
*
- * return null
+ *
@
return null
*/
public function browse() {
$controller = new CRM_Core_Controller_Simple(
*/
public function browse() {
$controller = new CRM_Core_Controller_Simple(
@@
-70,9
+70,9
@@
class CRM_Event_Page_Tab extends CRM_Core_Page {
}
/**
}
/**
- *
This function is
called when action is view
+ * called when action is view
*
*
- * return null
+ *
@
return null
*/
public function view() {
// build associated contributions
*/
public function view() {
// build associated contributions
@@
-91,9
+91,9
@@
class CRM_Event_Page_Tab extends CRM_Core_Page {
}
/**
}
/**
- *
This function is
called when action is update or new
+ * called when action is update or new
*
*
- * return null
+ *
@
return null
*/
public function edit() {
// set https for offline cc transaction
*/
public function edit() {
// set https for offline cc transaction
@@
-121,9
+121,9
@@
class CRM_Event_Page_Tab extends CRM_Core_Page {
}
public function preProcess() {
}
public function preProcess() {
- $context
= CRM_Utils_Request::retrieve('context', 'String', $this);
+ $context = CRM_Utils_Request::retrieve('context', 'String', $this);
$this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse');
$this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse');
- $this->_id
= CRM_Utils_Request::retrieve('id', 'Positive', $this);
+ $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);
if ($context == 'standalone') {
$this->_action = CRM_Core_Action::ADD;
if ($context == 'standalone') {
$this->_action = CRM_Core_Action::ADD;
@@
-146,9
+146,9
@@
class CRM_Event_Page_Tab extends CRM_Core_Page {
}
/**
}
/**
- *
This function is
the main function that is called when the page loads, it decides the which action has to be taken for the page.
+ * the main function that is called when the page loads, it decides the which action has to be taken for the page.
*
*
- * return null
+ *
@
return null
*/
public function run() {
$this->preProcess();
*/
public function run() {
$this->preProcess();
@@
-172,7
+172,8
@@
class CRM_Event_Page_Tab extends CRM_Core_Page {
elseif ($this->_action & (CRM_Core_Action::UPDATE |
CRM_Core_Action::ADD |
CRM_Core_Action::DELETE
elseif ($this->_action & (CRM_Core_Action::UPDATE |
CRM_Core_Action::ADD |
CRM_Core_Action::DELETE
- )) {
+ )
+ ) {
$this->edit();
}
else {
$this->edit();
}
else {
@@
-214,7
+215,7
@@
class CRM_Event_Page_Tab extends CRM_Core_Page {
if ($compContext == 'advanced') {
$url = CRM_Utils_System::url('civicrm/contact/search/advanced', $urlParams);
}
if ($compContext == 'advanced') {
$url = CRM_Utils_System::url('civicrm/contact/search/advanced', $urlParams);
}
- else
if ($searchContext) {
+ elseif ($searchContext) {
$url = CRM_Utils_System::url("civicrm/$searchContext/search", $urlParams);
}
else {
$url = CRM_Utils_System::url("civicrm/$searchContext/search", $urlParams);
}
else {
@@
-247,7
+248,7
@@
class CRM_Event_Page_Tab extends CRM_Core_Page {
break;
case 'fulltext':
break;
case 'fulltext':
- $keyName
= '&qfKey';
+ $keyName = '&qfKey';
$urlParams = 'force=1';
$urlString = 'civicrm/contact/search/custom';
if ($this->_action == CRM_Core_Action::UPDATE) {
$urlParams = 'force=1';
$urlString = 'civicrm/contact/search/custom';
if ($this->_action == CRM_Core_Action::UPDATE) {
@@
-280,10
+281,10
@@
class CRM_Event_Page_Tab extends CRM_Core_Page {
}
/**
}
/**
- *
This function is
used for the to show the associated
+ * used for the to show the associated
* contribution for the participant
*
* contribution for the participant
*
- * return null
+ *
@
return null
*/
public function associatedContribution() {
if (CRM_Core_Permission::access('CiviContribute')) {
*/
public function associatedContribution() {
if (CRM_Core_Permission::access('CiviContribute')) {