當前位置: 首頁>>代碼示例>>PHP>>正文


PHP menu::initArray方法代碼示例

本文整理匯總了PHP中menu::initArray方法的典型用法代碼示例。如果您正苦於以下問題:PHP menu::initArray方法的具體用法?PHP menu::initArray怎麽用?PHP menu::initArray使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在menu的用法示例。


在下文中一共展示了menu::initArray方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: menu

$IBLang->pushtoArray("IBEnglisha2", "ids");
$IBLang->pushtoArray("English A2 HL/SL", "items");
$IBLang->pushtoArray("English.png", "urlList");
$IBLang->pushtoArray("./ibcalculator/englisha2.php", "url");
$IBLang->createMenuCat("IBLang", 3);
$IBIndividual = new menu();
$IBIndividual->initArray();
$IBIndividual->pushtoArray("IBEcon|IBGeograp|IBHistor|IBPsych", "ids");
$IBIndividual->pushtoArray("Economics HL/SL|Geography HL/SL|History HL/SL|Psychology HL/SL", "items");
$IBIndividual->pushtoArray("Money.png|Globe.png|History.png|Brain.png", "urlList");
$IBIndividual->pushtoArray("./ibcalculator/economics.php|./ibcalculator/geography.php|./ibcalculator/history.php|./ibcalculator/psychology.php", "url");
$IBIndividual->createMenuCat("IBIndividual", 3);
$IBSciences = new menu();
$IBSciences->initArray();
$IBSciences->pushtoArray("IBBio|IBChem|IBPhysics", "ids");
$IBSciences->pushtoArray("Biology HL|Chemistry HL|Physics HL", "items");
$IBSciences->pushtoArray("DNA.jpg|Science.png|Mechanics.png", "urlList");
$IBSciences->pushtoArray("./ibcalculator/biology.php|./ibcalculator/chemistry.php|./ibcalculator/physics.php", "url");
$IBSciences->createMenuCat("IBSciences", 3);
$IBMath2 = new menu();
$IBMath2->initArray();
$IBMath2->pushtoArray("IBComp|IBMath2", "ids");
$IBMath2->pushtoArray("Computer Science HL/SL|Mathematics HL/SL", "items");
$IBMath2->pushtoArray("Computer.png|Math.png", "urlList");
$IBMath2->pushtoArray("./ibcalculator/computers.php|./ibcalculator/mathematics.php", "url");
$IBMath2->createMenuCat("IBMath2", 3);
echo '</div>';
echo '<div id="content" style="display: none"><p>Find out how prepared you are for the your AP, IB, SAT, ACT or subject test exams using AP Calculator\'s scoring calculators and tools. Tags: Advanced Placement Calculator, IB diploma Calculator, SAT/ACT Calculator, SAT subject tests Calculator</p></div>';
include './Template/Ffooter.php';
echo '</body>';
echo '</html>';
開發者ID:kevinqi34,項目名稱:AP-Calculator,代碼行數:31,代碼來源:index.php

示例2: menu

<?php

include './Template/Fpages.php';
set_boolTrue();
$menu = new menu();
$menu->initArray();
$menu->pushtoArray("AP|IB|ACT|SATS", "ids");
$menu->pushtoArray("./APcourses.php|./IBcourses.php|./StdTests.php|./SubjectTests.php", "url");
$menu->pushtoArray("Advanced Placement|International Baccalaureate|Standardized Tests|SAT Subject Tests ", "items");
$menu->pushtoArray("AP.jpg|IB.jpg|test.png|sats.png", "urlList");
$title = 'Course Info and Resources';
$keywords = 'Advanced Placement info, IB diploma info, SAT/ACT info, SAT subject tests info';
$menu->menuinit($title, $keywords);
$menu->createMenuPage();
?>

開發者ID:kevinqi34,項目名稱:AP-Calculator,代碼行數:15,代碼來源:course.php


注:本文中的menu::initArray方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。