/** * PPI_Input::clearFlashMessage() * Wipe the flash message from the session * @return void */ static function clearFlashMessage() { PPI_Helper::getSession()->remove('ppi_flash_message'); }
/** * Returns the session object * * @return object PPI_Model_Session */ protected function getSession($p_mOptions = null) { return PPI_Helper::getSession($p_mOptions); }
/** * 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); }
/** * Get the CSRF token from the session * @return string */ static function getCSRF() { return PPI_Helper::getSession()->get('PPI_Security::csrfToken'); }
/** * Get the session object * * @return object */ function getSession() { return PPI_Helper::getSession(); }