X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FTask.php;h=1deb17da0dcd552c2741e9106057196d56946865;hb=1f7e60e955c062eed1e9e72d5c8ee94d9368c7ad;hp=26d33809fc9adf5b17ab220950c4002425e34208;hpb=39de6fd54b9843705d13cb9f70fbcc6296103670;p=civicrm-core.git diff --git a/CRM/Event/Form/Task.php b/CRM/Event/Form/Task.php index 26d33809fc..1deb17da0d 100644 --- a/CRM/Event/Form/Task.php +++ b/CRM/Event/Form/Task.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -40,42 +40,41 @@ class CRM_Event_Form_Task extends CRM_Core_Form { /** - * The task being performed + * The task being performed. * * @var int */ protected $_task; /** - * The additional clause that we restrict the search with + * The additional clause that we restrict the search with. * * @var string */ protected $_componentClause = NULL; /** - * The array that holds all the component ids + * The array that holds all the component ids. * * @var array */ protected $_componentIds; /** - * The array that holds all the participant ids + * The array that holds all the participant ids. * * @var array */ protected $_participantIds; /** - * Build all the data structures needed to build the form + * Build all the data structures needed to build the form. * * @param * * @return void - * @access public */ - function preProcess() { + public function preProcess() { self::preProcessCommon($this); } @@ -83,7 +82,7 @@ class CRM_Event_Form_Task extends CRM_Core_Form { * @param CRM_Core_Form $form * @param bool $useTable */ - static function preProcessCommon(&$form, $useTable = FALSE) { + public static function preProcessCommon(&$form, $useTable = FALSE) { $form->_participantIds = array(); $values = $form->controller->exportValues($form->get('searchFormName')); @@ -140,8 +139,8 @@ class CRM_Event_Form_Task extends CRM_Core_Form { } else { $session->replaceUserContext(CRM_Utils_System::url("civicrm/contact/search/$searchFormName", - $urlParams - )); + $urlParams + )); } } @@ -156,18 +155,18 @@ class CRM_Event_Form_Task extends CRM_Core_Form { } /** - * Simple shell that derived classes can call to add buttons to + * Simple shell that derived classes can call to add buttons to. * the form with a customized title for the main Submit * - * @param string $title title of the main button + * @param string $title + * Title of the main button. * @param string $nextType * @param string $backType * @param bool $submitOnce * * @return void - * @access public */ - function addDefaultButtons($title, $nextType = 'next', $backType = 'back', $submitOnce = FALSE) { + public function addDefaultButtons($title, $nextType = 'next', $backType = 'back', $submitOnce = FALSE) { $this->addButtons(array( array( 'type' => $nextType, @@ -181,5 +180,5 @@ class CRM_Event_Form_Task extends CRM_Core_Form { ) ); } -} +}