本文整理汇总了PHP中Schema::SetParam方法的典型用法代码示例。如果您正苦于以下问题:PHP Schema::SetParam方法的具体用法?PHP Schema::SetParam怎么用?PHP Schema::SetParam使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Schema
的用法示例。
在下文中一共展示了Schema::SetParam方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
include 'comuns/schema/schema.php';
Schema::SetParam('module', 'home');
Schema::SchemaStart();
Schema::SetParam('title_head', 'index');
Schema::SetParam('title_pag', 'Titol de la pàgina: lorem ipsum');
Schema::SetParam('submodule', 'noticies');
// paràmetre opcional
Schema::SetParam('return', array('Home', 'Library', 'Data'));
// paràmetre opcional
Schema::SetParam('loadbd', true);
// paràmetre opcional - carregar bbdd => TRUE | FALSE
Schema::SetParam('loadmodalpanel', true);
// paràmetre opcional - carregar panel modal bootstrap => TRUE | FALSE
Schema::SetParam('permission', array('modul_admin', 'admin_noticies'));
// paràmetre opcional
Schema::SetFileJS('comuns/js/elements.js');
Schema::SetFileJS('comuns/js/elements2.js');
Schema::SetFileJS('comuns/js/elements3.js');
Schema::SchemaInit();
?>
<style>
.bold { font-weight: bold; }
</style>
<!-- <h2 class="sub-header">Standings <small>Group B</small></h2> -->
<div class="table-responsive panel">
<div class="panel-body">
<table class="table table-striped">
<thead>
<tr>
示例2: array
<?php
// Barra Superior ---------------------------------
$topbar = array();
$topbar[0] = array('name' => 'Home', 'url' => 'sumari/index.php', 'icon' => 'glyphicon-home');
$topbar[1] = array('name' => 'Treball compartit', 'url' => 'calendari/index.php', 'icon' => 'glyphicon-user');
$topbar[2] = array('name' => 'Messaging', 'url' => BASE_DIR . 'messaging/do-index/', 'icon' => 'glyphicon-envelope');
$topbar[3] = array('name' => 'Manual', 'url' => 'professor/index.php', 'icon' => 'glyphicon-question-sign');
$subactions = array();
$subactions[0] = array('name' => 'Change Password', 'url' => BASE_DIR . 'login.php?do=changepwd', 'icon' => 'glyphicon-cog');
$subactions[1] = array('name' => 'Generate Password File', 'url' => 'files/index.php', 'icon' => 'glyphicon-cog');
$subactions[2] = array('name' => 'Config Links', 'url' => 'files/index.php', 'icon' => 'glyphicon-cog');
$subactions[2] = array('name' => 'Logout', 'url' => 'files/index.php', 'icon' => 'glyphicon-off');
$topbar[4] = array('name' => 'Settings', 'url' => 'files/index.php', 'icon' => 'glyphicon-cog', 'subactions' => $subactions);
// Barra Lateral ---------------------------------
$sidebar = array();
$sidebar[0] = array('name' => 'Home', 'url' => BASE_DIR . 'home/do-index/', 'module' => 'home', 'icon' => 'glyphicon-home');
$sidebar[1] = array('name' => 'Calendar', 'url' => BASE_DIR . 'calendar/do-index/', 'module' => 'calendar', 'icon' => 'glyphicon-calendar');
$sidebar[2] = array('name' => 'Comunication', 'url' => BASE_DIR . 'comunication/do-index/', 'module' => 'comunication', 'icon' => 'glyphicon-send');
$sidebar[3] = array('name' => 'Professor', 'url' => BASE_DIR . 'professor/do-index/', 'module' => 'professor', 'icon' => 'glyphicon-tint');
$sidebar[4] = array('name' => 'Files', 'url' => BASE_DIR . 'files/do-index/', 'module' => 'files', 'icon' => 'glyphicon-file');
$sidebar[5] = array('name' => 'Management', 'url' => BASE_DIR . 'management/do-index/', 'module' => 'management', 'icon' => 'glyphicon-tags');
$sidebar[6] = array('name' => 'Administration', 'url' => BASE_DIR . 'administration/do-index/', 'module' => 'admin', 'icon' => 'glyphicon-wrench');
// Assignem variables a la class SCHEMA!
Schema::SetParam('sidebar', $sidebar);
Schema::SetParam('topbar', $topbar);
// Alliberem memòria:
unset($sidebar);
unset($topbar);
unset($subactions);