本文整理汇总了PHP中Poll::moveCache方法的典型用法代码示例。如果您正苦于以下问题:PHP Poll::moveCache方法的具体用法?PHP Poll::moveCache怎么用?PHP Poll::moveCache使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Poll
的用法示例。
在下文中一共展示了Poll::moveCache方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ConsoleOption
/*
* Bluethrust Clan Scripts v4
* Copyright 2014
*
* Author: Bluethrust Web Development
* E-mail: support@bluethrust.com
* Website: http://www.bluethrust.com
*
* License: http://www.bluethrust.com/license.php
*
*/
include_once "../../../../_setup.php";
include_once "../../../../classes/member.php";
include_once "../../../../classes/poll.php";
// Start Page
$consoleObj = new ConsoleOption($mysqli);
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$createPollCID = $consoleObj->findConsoleIDByName("Create a Poll");
$consoleObj->select($createPollCID);
$blnConsoleCheck1 = $member->hasAccess($consoleObj);
$managePollsCID = $consoleObj->findConsoleIDByName("Manage Polls");
$consoleObj->select($managePollsCID);
$blnConsoleCheck2 = $member->hasAccess($consoleObj);
$blnConsoleCheck = $blnConsoleCheck1 || $blnConsoleCheck2;
$pollObj = new Poll($mysqli);
// Check Login
$LOGIN_FAIL = true;
if ($member->authorizeLogin($_SESSION['btPassword']) && $blnConsoleCheck) {
$pollObj->moveCache($_POST['direction'], $_POST['optionOrder']);
}