<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
class CRM_Pledge_Form_Task extends CRM_Core_Form {
/**
- * the task being performed
+ * The task being performed
*
* @var int
*/
protected $_pledgeIds;
/**
- * 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);
}
- static function preProcessCommon(&$form, $useTable = FALSE) {
+ /**
+ * @param CRM_Core_Form $form
+ * @param bool $useTable
+ */
+ public static function preProcessCommon(&$form, $useTable = FALSE) {
$form->_pledgeIds = array();
$values = $form->controller->exportValues('Search');
}
else {
$queryParams = $form->get('queryParams');
- $sortOrder = null;
+ $sortOrder = NULL;
if ( $form->get( CRM_Utils_Sort::SORT_ORDER ) ) {
$sortOrder = $form->get( CRM_Utils_Sort::SORT_ORDER );
}
}
/**
- * 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
*
- * @internal param string $type button type for the form after processing
*
* @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,
);
}
}
-