/** * The constructor */ function __construct() { $this->_input = PPI_Helper::getInput(); $this->_view = new PPI_View(); $this->oInput = $this->_input; // Legacy Code }
/** * The constructor */ function __construct() { $this->_config = PPI_Helper::getConfig(); $this->_input = PPI_Helper::getInput(); $this->_fullUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http') . '://' . str_replace('www.', '', $_SERVER['HTTP_HOST']) . $_SERVER['REQUEST_URI']; }
/** * 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); }