-
-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18464 from eileenmcnaughton/urlparamms
[REF] Start the process of separating the search action from the participant form
- Loading branch information
Showing
8 changed files
with
77 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/* | ||
+--------------------------------------------------------------------+ | ||
| Copyright CiviCRM LLC. All rights reserved. | | ||
| | | ||
| This work is published under the GNU AGPLv3 license with some | | ||
| permitted exceptions and without any warranty. For full license | | ||
| and copyright information, see https://civicrm.org/licensing | | ||
+--------------------------------------------------------------------+ | ||
*/ | ||
|
||
/** | ||
* | ||
* @package CRM | ||
* @copyright CiviCRM LLC https://civicrm.org/licensing | ||
*/ | ||
|
||
/** | ||
* This class provides the register functionality from a search context. | ||
* | ||
* Originally the functionality was all munged into the main Participant form. | ||
* | ||
* Ideally it would be entirely separated but for now this overrides the main form, | ||
* just providing a better separation of the functionality for the search vs main form. | ||
*/ | ||
class CRM_Event_Form_Task_Register extends CRM_Event_Form_Participant { | ||
|
||
|
||
/** | ||
* Are we operating in "single mode", i.e. adding / editing only | ||
* one participant record, or is this a batch add operation | ||
* | ||
* ote the goal is to disentangle all the non-single stuff | ||
* into this form and discontinue this param. | ||
* | ||
* @var bool | ||
*/ | ||
public $_single = FALSE; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
/** | ||
* Test CRM_Event_Form_Registration functions. | ||
* | ||
* @package CiviCRM | ||
* @group headless | ||
*/ | ||
class CRM_Event_Form_Task_RegisterTest extends CiviUnitTestCase { | ||
|
||
/** | ||
* Initial test of form class. | ||
* | ||
* @throws \CRM_Core_Exception | ||
*/ | ||
public function testGet() { | ||
/* @var CRM_Event_Form_Task_Register $form */ | ||
$form = $this->getFormObject('CRM_Event_Form_Task_Register'); | ||
$this->assertEquals(FALSE, $form->_single); | ||
} | ||
|
||
} |