<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
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);
}
* @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'));
}
else {
$session->replaceUserContext(CRM_Utils_System::url("civicrm/contact/search/$searchFormName",
- $urlParams
- ));
+ $urlParams
+ ));
}
}
}
/**
- * 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,
)
);
}
-}
+}