Merge pull request #5232 from rohankatkar/batch9
[civicrm-core.git] / CRM / Contribute / Controller / Contribution.php
index e2eb836d2f598aaef1e04b19522a0212c9329dce..079e0af1bf78c81c24556829aa5e31b0036dd2b4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  *
  * Typically the first form will display the search criteria and it's results
  *
- * The second form is used to process search results with the asscociated actions
+ * The second form is used to process search results with the associated actions
  *
  */
 class CRM_Contribute_Controller_Contribution extends CRM_Core_Controller {
 
   /**
-   * class constructor
+   * Class constructor.
+   *
+   * @param string $title
+   * @param bool|int $action
+   * @param bool $modal
    */
-  function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
+  public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
     parent::__construct($title, $modal);
 
     $this->_stateMachine = new CRM_Contribute_StateMachine_Contribution($this, $action);
@@ -68,9 +72,8 @@ class CRM_Contribute_Controller_Contribution extends CRM_Core_Controller {
     }
   }
 
-  function invalidKey() {
+  public function invalidKey() {
     $this->invalidKeyRedirect();
   }
 
 }
-