INFRA-132 - Change "else if" to "elseif"
[civicrm-core.git] / CRM / Utils / Wrapper.php
index 60d6e3eef19452e036a4e9b7e19f691d66a355b8..a5b1ac963e3d3f1b0befc0071a113798a630a9da 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -33,7 +33,7 @@
  * run method as explained below.
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * $Id: $
  *
  */
@@ -44,7 +44,6 @@ class CRM_Utils_Wrapper {
    *
    * The controller which will handle the display and processing of this page.
    *
-   * @access protected
    */
   protected $_controller;
 
@@ -54,16 +53,15 @@ class CRM_Utils_Wrapper {
    * The heart of the callback processing is done by this method.
    * forms are of different type and have different operations.
    *
-   * @param string  formName    name of the form processing this action
-   * @param string  formLabel   label for the above form
-   * @param int     mode        mode of operation.
-   * @param boolean addSequence should we add a unique sequence number to the end of the key
-   * @param boolean ignoreKey   should we not set a qfKey for this controller (for standalone forms)
+   * @param string formName name of the form processing this action
+   * @param string formLabel label for the above form
+   * @param int mode mode of operation.
+   * @param bool addSequence should we add a unique sequence number to the end of the key
+   * @param bool ignoreKey should we not set a qfKey for this controller (for standalone forms)
    *
    * @return void.
-   * @access public
    */
-  function run($formName, $formLabel = NULL, $arguments = NULL) {
+  public function run($formName, $formLabel = NULL, $arguments = NULL) {
     if (is_array($arguments)) {
       $mode         = CRM_Utils_Array::value('mode', $arguments);
       $imageUpload  = (bool) CRM_Utils_Array::value('imageUpload', $arguments, FALSE);
@@ -117,4 +115,3 @@ class CRM_Utils_Wrapper {
     return $this->_controller->run();
   }
 }
-