示例#1
0
 /**
  * Get the full current URI
  *
  * @todo Maybe just strip off baseUrl from the URL and that's our URI
  * @return string
  */
 protected function getCurrUrl()
 {
     return PPI_Helper::getCurrUrl();
 }
示例#2
0
 /**
  * Obtain the list of default view variables
  *
  * @todo review making var names not HNC prefixed.
  * @param array $options
  * @return array
  */
 function getDefaultRenderValues(array $options, $p_oConfig)
 {
     $authData = PPI_Helper::getSession()->getAuthData();
     $oDispatch = PPI_Helper::getDispatcher();
     $request = array('controller' => $oDispatch->getControllerName(), 'method' => $oDispatch->getMethodName());
     return array('isLoggedIn' => !empty($authData), 'config' => $p_oConfig, 'request' => $request, 'input' => PPI_Helper::getInput(), 'authData' => $authData, 'baseUrl' => $p_oConfig->system->base_url, 'fullUrl' => PPI_Helper::getFullUrl(), 'currUrl' => PPI_Helper::getCurrUrl(), 'viewDir' => $options['viewDir'], 'actionFile' => $options['actionFile'], 'responseCode' => PPI_Helper::getRegistry()->get('PPI_View::httpResponseCode', 200), 'stylesheetFiles' => PPI_View_Helper::getStylesheets(), 'javascriptFiles' => PPI_View_Helper::getJavascripts(), 'authInfo' => $authData, 'aAuthInfo' => $authData, 'bIsLoggedIn' => !empty($authData), 'oConfig' => $p_oConfig);
 }