/**
* Maximum event participations that should be allowed to update
- *
*/
protected $_maxParticipations = 100;
/**
* Variable to store redirect path
- *
*/
protected $_userContext;
* Build all the data structures needed to build the form
*
* @return void
- * @access public
*/
- function preProcess() {
+ public function preProcess() {
// initialize the task and row fields
parent::preProcess();
/**
* Build the form object
*
- * @access public
*
* @return void
*/
- function buildQuickForm() {
+ public function buildQuickForm() {
$types = array('Participant');
$profiles = CRM_Core_BAO_UFGroup::getProfiles($types, TRUE);
array(
'' => ts('- select profile -')) + $profiles, TRUE
);
- $this->addDefaultButtons(ts('Continue >>'));
+ $this->addDefaultButtons(ts('Continue'));
}
/**
* Add local and global form rules
*
- * @access protected
*
* @return void
*/
- function addRules() {
+ public function addRules() {
$this->addFormRule(array('CRM_Event_Form_Task_PickProfile', 'formRule'));
}
/**
* Global validation rules for the form
*
- * @param array $fields posted values of the form
+ * @param array $fields
+ * Posted values of the form.
*
- * @return array list of errors to be posted back to the form
+ * @return array
+ * list of errors to be posted back to the form
* @static
- * @access public
*/
- static function formRule($fields) {
+ public static function formRule($fields) {
return TRUE;
}
/**
* Process the form after the input has been submitted and validated
*
- * @access public
*
* @return void
*/
$this->controller->resetPage('Batch');
}
}
-