X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FWrapper.php;h=956215b234f73622f0036687b1ae31ffb822e899;hb=353ffa53c335f7b94ebaddc701e46f2bb30c7048;hp=3aa2f7372e52d8aae30cbe72b8890325e8b91f74;hpb=a6c01b45f0cdaee8677de72b8bf3e784d8b6b62a;p=civicrm-core.git diff --git a/CRM/Utils/Wrapper.php b/CRM/Utils/Wrapper.php index 3aa2f7372e..956215b234 100644 --- a/CRM/Utils/Wrapper.php +++ b/CRM/Utils/Wrapper.php @@ -43,7 +43,6 @@ class CRM_Utils_Wrapper { * Simple Controller * * The controller which will handle the display and processing of this page. - * */ protected $_controller; @@ -60,19 +59,18 @@ class CRM_Utils_Wrapper { * @param bool ignoreKey should we not set a qfKey for this controller (for standalone forms) * * @return void - * */ 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); - $addSequence = (bool) CRM_Utils_Array::value('addSequence', $arguments, FALSE); + $mode = CRM_Utils_Array::value('mode', $arguments); + $imageUpload = (bool) CRM_Utils_Array::value('imageUpload', $arguments, FALSE); + $addSequence = (bool) CRM_Utils_Array::value('addSequence', $arguments, FALSE); $attachUpload = (bool) CRM_Utils_Array::value('attachUpload', $arguments, FALSE); - $ignoreKey = (bool) CRM_Utils_Array::value('ignoreKey', $arguments, FALSE); + $ignoreKey = (bool) CRM_Utils_Array::value('ignoreKey', $arguments, FALSE); } else { - $arguments = array(); - $mode = NULL; + $arguments = array(); + $mode = NULL; $addSequence = $ignoreKey = $imageUpload = $attachUpload = FALSE; } @@ -89,11 +87,11 @@ class CRM_Utils_Wrapper { if (array_key_exists('urlToSession', $arguments)) { if (is_array($arguments['urlToSession'])) { foreach ($arguments['urlToSession'] as $params) { - $urlVar = CRM_Utils_Array::value('urlVar', $params); + $urlVar = CRM_Utils_Array::value('urlVar', $params); $sessionVar = CRM_Utils_Array::value('sessionVar', $params); - $type = CRM_Utils_Array::value('type', $params); - $default = CRM_Utils_Array::value('default', $params); - $abort = CRM_Utils_Array::value('abort', $params, FALSE); + $type = CRM_Utils_Array::value('type', $params); + $default = CRM_Utils_Array::value('default', $params); + $abort = CRM_Utils_Array::value('abort', $params, FALSE); $value = NULL; $value = CRM_Utils_Request::retrieve(