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


PHP Schema::SetParam方法代码示例

本文整理汇总了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>
开发者ID:UnklePablo,项目名称:manager,代码行数:31,代码来源:standings.php

示例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);
开发者ID:UnklePablo,项目名称:manager,代码行数:30,代码来源:structure.php


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