当前位置: 首页>>代码示例>>PHP>>正文


PHP ConsoleOption::get_info方法代码示例

本文整理汇总了PHP中ConsoleOption::get_info方法的典型用法代码示例。如果您正苦于以下问题:PHP ConsoleOption::get_info方法的具体用法?PHP ConsoleOption::get_info怎么用?PHP ConsoleOption::get_info使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ConsoleOption的用法示例。


在下文中一共展示了ConsoleOption::get_info方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ProfileCategory

    }
}
$cID = $_GET['cID'];
$profileCategoryObj = new ProfileCategory($mysqli);
$profileOptionObj = new ProfileOption($mysqli);
$gameObj = new Game($mysqli);
$arrGames = $gameObj->getGameList();
$consoleCatSettingObj = new Basic($mysqli, "consolecategory", "consolecategory_id");
$arrSocialMediaInfo = $member->objSocial->get_entries(array(), "ordernum DESC");
// Setup Default Console Category Select Options
$arrPrivileges = $memberRank->get_privileges();
$arrConsoleCats = array();
$consoleSettingObj = new ConsoleOption($mysqli);
foreach ($arrPrivileges as $consoleOptionID) {
    $consoleSettingObj->select($consoleOptionID);
    $consoleCatID = $consoleSettingObj->get_info("consolecategory_id");
    if (!in_array($consoleCatID, $arrConsoleCats)) {
        $consoleCatSettingObj->select($consoleCatID);
        $consoleCatOrder = $consoleCatSettingObj->get_info("ordernum");
        $arrConsoleCats[$consoleCatOrder] = $consoleCatID;
    }
}
krsort($arrConsoleCats);
foreach ($arrConsoleCats as $value) {
    $consoleCatSettingObj->select($value);
    $defaultConsoleOptions[$value] = $consoleCatSettingObj->get_info_filtered("name");
}
// Setup Notification Settings Options
$notificationOptions = array("Show notification with sound", "Show notification without sound", "Don't show notifications");
// Setup Forum Settings Options
$forumPostsPerPage = array(10 => 10, 25 => 25, 50 => 50, 75 => 75, 100 => 100);
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:editprofile.php

示例2: while

 while ($arrConsoleOptions = $consoleOptions->fetch_assoc()) {
     $tempCat = $arrConsoleOptions['consolecategory_id'];
     $arrFormatOptions[$tempCat][] = $arrConsoleOptions['console_id'];
 }
 $countConsoleCats = 0;
 $consoleJSCode = "";
 $consoleCatObj = new Basic($mysqli, "consolecategory", "consolecategory_id");
 foreach ($arrFormatOptions as $key => $arrOptions) {
     $consoleCatObj->select($key);
     $consoleCatInfo = $consoleCatObj->get_info();
     if (count($arrOptions) > 0) {
         $countConsoleCats++;
         echo "<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<u><b>" . $consoleCatInfo['name'] . "</b></u> - <a href='javascript:void(0)' onclick=\"selectAllCheckboxes('category" . $countConsoleCats . "', 1)\">Check All</a> - <a href='javascript:void(0)' onclick=\"selectAllCheckboxes('category" . $countConsoleCats . "', 0)\">Uncheck All</a><br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div id='category" . $countConsoleCats . "'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
         foreach ($arrOptions as $consoleOption) {
             $consoleObj->select($consoleOption);
             $consoleOptionInfo = $consoleObj->get_info();
             $consoleJSCode .= "arrConsoleIDs[" . $consoleOptionInfo['console_id'] . "] = \$('#consoleid_" . $consoleOptionInfo['console_id'] . "').attr('checked'); \n\t\t\t\t\t\t\t\t\t";
             if ($consoleOptionInfo['pagetitle'] != "-separator-") {
                 if ($consoleObj->hasAccess($rankInfo['rank_id'])) {
                     $dispSelected = " checked";
                 } else {
                     $dispSelected = "";
                 }
                 echo "&nbsp;&nbsp;<input type='checkbox' name='consoleid_" . $consoleOptionInfo['console_id'] . "' value='1'" . $dispSelected . "> " . $consoleOptionInfo['pagetitle'] . "<br>";
             } elseif ($consoleOptionInfo['pagetitle'] == "-separator-") {
                 if ($consoleObj->hasAccess($rankInfo['rank_id'])) {
                     $dispSelected = " checked";
                 } else {
                     $dispSelected = "";
                 }
                 $dispSeparator = "<div class='dashedLine' style='width: 250px; margin: 6px 1px; padding: 0px; float: left'></div>";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:edit.php

示例3: Rank

 $memberRankID = $memberInfo['rank_id'];
 $memberRank = new Rank($mysqli);
 $memberRank->select($memberRankID);
 $rankPrivileges = $member->get_privileges();
 $clickCategory = "";
 $strPrivileges = implode(",", $rankPrivileges);
 $result = $mysqli->query("SELECT * FROM " . $mysqli->get_tablePrefix() . "consolecategory ORDER BY ordernum DESC");
 while ($row = $result->fetch_assoc()) {
     $arrConsoleCats[] = $row['consolecategory_id'];
 }
 $result->free();
 $arrFullySortedConsole = array();
 $consoleObj = new ConsoleOption($mysqli);
 foreach ($rankPrivileges as $consoleoption) {
     $consoleObj->select($consoleoption);
     $consoleInfo = $consoleObj->get_info();
     if ($member->hasAccess($consoleObj) && $consoleInfo['hide'] == 0) {
         $sortNum = array_search($consoleInfo['consolecategory_id'], $arrConsoleCats);
         $arrFullySortedConsole[$sortNum][] = $consoleoption;
     }
 }
 $consoleCatObj = new ConsoleCategory($mysqli);
 $dispConsoleOptions = "";
 $dispConsoleCategories = "";
 $counter = 0;
 $totalConsoleCats = count($arrConsoleCats);
 foreach ($arrConsoleCats as $key => $categoryID) {
     $consoleCatObj->select($categoryID);
     $consoleCatInfo = $consoleCatObj->get_info_filtered();
     $arrConsoleOptions = $arrFullySortedConsole[$key];
     $categoryCSS = "consoleCategory_clicked";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:index.php


注:本文中的ConsoleOption::get_info方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。