Merge pull request #4696 from colemanw/CRM-15669
[civicrm-core.git] / CRM / Pledge / Form / Task.php
index e6409af0fe4c9e21d6394613cb4c26a25d24dec4..6e342b082b82dee76634379e29e4272de9d1d3a6 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -40,7 +40,7 @@
 class CRM_Pledge_Form_Task extends CRM_Core_Form {
 
   /**
-   * the task being performed
+   * The task being performed
    *
    * @var int
    */
@@ -68,18 +68,21 @@ class CRM_Pledge_Form_Task extends CRM_Core_Form {
   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');
@@ -143,7 +146,7 @@ class CRM_Pledge_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
@@ -151,12 +154,10 @@ class CRM_Pledge_Form_Task extends CRM_Core_Form {
    * @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,
@@ -171,4 +172,3 @@ class CRM_Pledge_Form_Task extends CRM_Core_Form {
     );
   }
 }
-