INFRA-132 - CRM/Contribute - Misc
[civicrm-core.git] / CRM / Core / Controller / Simple.php
index 4e0ecedca7b2aa885fa7de2701b8c1eb1b3954c1..0c7a4addfbce102b9f8dd6622f2bb5e1ce2058fc 100644 (file)
@@ -43,23 +43,24 @@ class CRM_Core_Controller_Simple extends CRM_Core_Controller {
    *
    * @param null $path
    * @param bool $title
-   * @param string  path        the class Path of the form being implemented
+   * @param string path the class Path of the form being implemented
    * @param bool $imageUpload
-   * @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)
+   * @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).
    * @param bool $attachUpload
    *
    *
    * @return \CRM_Core_Controller_Simple
-   * @access public
    */
   function __construct(
     $path,
     $title,
-    $mode         = NULL,
-    $imageUpload  = FALSE,
-    $addSequence  = FALSE,
-    $ignoreKey    = FALSE,
+    $mode = NULL,
+    $imageUpload = FALSE,
+    $addSequence = FALSE,
+    $ignoreKey = FALSE,
     $attachUpload = FALSE
   ) {
     // by definition a single page is modal :). We use the form name as the scope for this controller
@@ -76,7 +77,6 @@ class CRM_Core_Controller_Simple extends CRM_Core_Controller {
       $mode = $savedAction;
     }
 
-
     $this->_stateMachine->addSequentialPages($params, $mode);
 
     $this->addPages($this->_stateMachine, $mode);
@@ -129,10 +129,9 @@ class CRM_Core_Controller_Simple extends CRM_Core_Controller {
    * A wrapper for getTemplateFileName that includes calling the hook to
    * prevent us from having to copy & paste the logic of calling the hook
    */
-  function getHookedTemplateFileName() {
+  public function getHookedTemplateFileName() {
     $pageTemplateFile = $this->getTemplateFileName();
     CRM_Utils_Hook::alterTemplateFile(get_class($this), $this, 'page', $pageTemplateFile);
     return $pageTemplateFile;
   }
 }
-