本文整理汇总了PHP中SessionUtils::getFormValue方法的典型用法代码示例。如果您正苦于以下问题:PHP SessionUtils::getFormValue方法的具体用法?PHP SessionUtils::getFormValue怎么用?PHP SessionUtils::getFormValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SessionUtils
的用法示例。
在下文中一共展示了SessionUtils::getFormValue方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
function index()
{
$view = $this->getView();
$view->getVoidForm();
// $view->uploadJS();
if (!is_null(SessionUtils::getError())) {
$view->setResponse(SessionUtils::getError());
$view->setFormData(SessionUtils::getFormValue(), FORGOT_PWD_FORM);
SessionUtils::setError(NULL);
SessionUtils::setFormValue(NULL);
}
$view->loadPage();
}
示例2: loadProfile
function loadProfile($view, $model)
{
try {
if (!is_null(SessionUtils::getAuthorId()) && !is_null(SessionUtils::getPost()) && !SessionUtils::isAdmin()) {
$postDto = $model->getPostModel(SessionUtils::getPost());
$view->setArg("notificationPost", $postDto);
$commentPostList = $model->getCommentPostList(SessionUtils::getPost());
$commentListIndex = 'notificationCommentList' . SessionUtils::getPost();
$view->setArg($commentListIndex, $commentPostList);
SessionUtils::setPost(NULL);
SessionUtils::setAuthorId(NULL);
} else {
$userAlbumListDTO = $model->getUserAlbumList(SessionUtils::getDashboardId());
$view->setArg('userAlbumList', $userAlbumListDTO);
$postList = $model->getPostsListModel(SessionUtils::getDashboardId());
$view->setArg('postList', $postList);
if (!is_null($postList)) {
for ($i = 0; $i < sizeof($postList); $i++) {
$index = 'post' . $i;
$postId = $postList[$index]->getPostId();
$commentPostList = $model->getCommentPostList($postId);
$commentListIndex = 'commentPostList' . $postId;
$view->setArg($commentListIndex, $commentPostList);
}
}
if (!is_null(SessionUtils::getError())) {
$view->setResponse(SessionUtils::getError());
if (!is_null(SessionUtils::getFormValue())) {
$view->setFormData(SessionUtils::getFormValue(), WRITE_POST_FORM);
}
SessionUtils::setError(NULL);
SessionUtils::setFormValue(NULL);
}
}
$view->loadPage();
} catch (PDOException $pdoe) {
throw $pdoe;
} catch (UserNotAuthenticatedExceptionDTO $authExp) {
throw $authExp;
} catch (Exception $e) {
throw $e;
}
}
示例3: index
public function index()
{
try {
$this->getNotifications();
$this->loadDashboardUser();
SessionUtils::setLastPageVisited(ALBUM_CONTROLLER);
$view = $this->getView();
$model = $this->getModel();
$view->uploadJS();
$view->setArg('userCanWrite', SessionUtils::userCanWrite());
$view->setArg('albumOwnerId', SessionUtils::getDashboardId());
if (!is_null(SessionUtils::getAlbumId())) {
$albumDTO = $model->getAlbumModel(SessionUtils::getAlbumId());
$view->setArg("notificationAlbum", $albumDTO);
SessionUtils::setAlbumId(NULL);
} else {
$userAlbums = $model->getUserAlbumsModel(SessionUtils::getDashboardId());
$view->setArg('userAlbumList', $userAlbums);
if (!is_null(SessionUtils::getError())) {
$view->setResponse(SessionUtils::getError());
$view->setFormData(SessionUtils::getFormValue(), ADD_ALBUM_FORM);
SessionUtils::setError(NULL);
SessionUtils::setFormValue(NULL);
}
}
$view->setArg(LAST_NAV_ITEM_SELECTED, 5);
$view->loadPage();
} catch (PDOException $pdoe) {
throw $pdoe;
} catch (UserNotAuthenticatedExceptionDTO $authExp) {
SessionUtils::logout();
header("Location:" . URL . LOGIN_CONTROLLER);
} catch (Exception $e) {
throw $e;
}
}