mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 12:32:14 +09:00
Change some internal methods to protected in ModuleHandler
This commit is contained in:
parent
99f36f56a6
commit
9372ee4cce
1 changed files with 20 additions and 18 deletions
|
|
@ -784,10 +784,26 @@ class ModuleHandler extends Handler
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set error message to Session.
|
* Save input values to session so that they can be recovered after returning to the previous form.
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
* */
|
*/
|
||||||
public static function _setInputErrorToContext()
|
protected static function _setInputValueToSession()
|
||||||
|
{
|
||||||
|
$requestVars = getDestroyXeVars(Context::getRequestVars());
|
||||||
|
unset($requestVars->act, $requestVars->mid, $requestVars->vid);
|
||||||
|
foreach($requestVars as $key => $value)
|
||||||
|
{
|
||||||
|
$_SESSION['INPUT_ERROR'][$key] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get previous error information and restore it to Context so that it is available to templates.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
protected static function _setInputErrorToContext()
|
||||||
{
|
{
|
||||||
if($_SESSION['XE_VALIDATOR_ERROR'] && !Context::get('XE_VALIDATOR_ERROR'))
|
if($_SESSION['XE_VALIDATOR_ERROR'] && !Context::get('XE_VALIDATOR_ERROR'))
|
||||||
{
|
{
|
||||||
|
|
@ -821,7 +837,7 @@ class ModuleHandler extends Handler
|
||||||
* clear error message to Session.
|
* clear error message to Session.
|
||||||
* @return void
|
* @return void
|
||||||
* */
|
* */
|
||||||
public static function _clearErrorSession()
|
protected static function _clearErrorSession()
|
||||||
{
|
{
|
||||||
unset($_SESSION['XE_VALIDATOR_ERROR']);
|
unset($_SESSION['XE_VALIDATOR_ERROR']);
|
||||||
unset($_SESSION['XE_VALIDATOR_MESSAGE']);
|
unset($_SESSION['XE_VALIDATOR_MESSAGE']);
|
||||||
|
|
@ -831,20 +847,6 @@ class ModuleHandler extends Handler
|
||||||
unset($_SESSION['INPUT_ERROR']);
|
unset($_SESSION['INPUT_ERROR']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* occured error when, set input values to session.
|
|
||||||
* @return void
|
|
||||||
* */
|
|
||||||
public static function _setInputValueToSession()
|
|
||||||
{
|
|
||||||
$requestVars = Context::getRequestVars();
|
|
||||||
unset($requestVars->act, $requestVars->mid, $requestVars->vid, $requestVars->success_return_url, $requestVars->error_return_url, $requestVars->xe_validator_id);
|
|
||||||
foreach($requestVars AS $key => $value)
|
|
||||||
{
|
|
||||||
$_SESSION['INPUT_ERROR'][$key] = $value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a message module instance with an error message.
|
* Create a message module instance with an error message.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue