Minahito
minah****@users*****
2006年 7月 13日 (木) 19:54:03 JST
Index: xoops2jp/html/modules/user/class/ActionFrame.class.php diff -u xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.7 xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.8 --- xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.7 Fri Jun 23 10:30:14 2006 +++ xoops2jp/html/modules/user/class/ActionFrame.class.php Thu Jul 13 19:54:03 2006 @@ -13,6 +13,8 @@ define ("USER_FRAME_VIEW_ERROR", 3); define ("USER_FRAME_VIEW_INDEX", 4); define ("USER_FRAME_VIEW_INPUT", 5); +define ("USER_FRAME_VIEW_PREVIEW", 6); +define ("USER_FRAME_VIEW_CANCEL", 7); class User_ActionFrame extends XCube_ActionStrategy { @@ -72,7 +74,7 @@ $this->mAction->prepare($controller, $controller->getXoopsUser(), $controller->mModuleController->mConfig); - if (!$this->mAction->hasPerm($controller, $controller->getXoopsUser(), $controller->mModuleController->mConfig)) { + if (!$this->mAction->hasPermission($controller, $controller->getXoopsUser(), $controller->mModuleController->mConfig)) { // // error // @@ -103,6 +105,14 @@ case USER_FRAME_VIEW_INPUT: $this->mAction->executeViewInput($controller, $controller->getXoopsUser(), $controller->mRenderSystem); break; + + case USER_FRAME_VIEW_PREVIEW: + $this->mAction->executeViewPreview($controller, $controller->getXoopsUser(), $controller->mRenderSystem); + break; + + case USER_FRAME_VIEW_CANCEL: + $this->mAction->executeViewCancel($controller, $controller->getXoopsUser(), $controller->mRenderSystem); + break; } } } @@ -118,7 +128,7 @@ return false; } - function hasPerm(&$controller, &$xoopsUser) + function hasPermission(&$controller, &$xoopsUser, $moduleConfig) { return true; } @@ -152,6 +162,14 @@ function executeViewInput(&$controller, &$xoopsUser, &$render) { } + + function executeViewPreview(&$controller, &$xoopsUser, &$render) + { + } + + function executeViewCancel(&$controller, &$xoopsUser, &$render) + { + } } ?>