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


PHP Content::setOrderFields方法代码示例

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


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

示例1: doIt

 /**
  * @access public
  * @param aExtrinsicState
  * @ParamType aExtrinsicState 
  */
 public function doIt($tagRoute, $parameters)
 {
     $menuEntity = $GLOBALS['sys_menu'];
     $menuTemplate = new Content($menuEntity, $menuEntity);
     $menuTemplate->setFilter("sys_menu_parent_id", $parameters["parent_id"]);
     $menuTemplate->setOrderFields("sys_menu_position", 'sys_menu_parent', "sys_menu0_position");
     return $menuTemplate->get();
 }
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:13,代码来源:front.php

示例2: doIt

 /**
  * @access public
  * @param aExtrinsicState
  * @ParamType aExtrinsicState 
  */
 public function doIt($parameters)
 {
     $servicecategoryEntity = $GLOBALS['sys_servicecategory'];
     $servicesEntity = $GLOBALS['sys_service'];
     $servicesGroupsRelation = $GLOBALS['sys_service_sys_group'];
     $groupsEntity = $GLOBALS['sys_group'];
     $usersGroupsRelation = $GLOBALS['sys_user_sys_group'];
     $menuTemplate = new Skinlet("menu_admin");
     $menu = new Content($servicecategoryEntity, $servicesEntity, $servicesGroupsRelation, $groupsEntity, $usersGroupsRelation);
     $menu->setOrderFields("position");
     $menu->setFilter("username_sys_user", $_SESSION['user']['username']);
     $menu->apply($menuTemplate);
     return $menuTemplate->get();
 }
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:19,代码来源:back.php

示例3: Skin

<?php

session_start();
$luog = $_GET['luoghi_id'];
$_SESSION['var'] = $luog;
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$body = new Skinlet("home");
$rece = new Skinlet("recluogo");
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("luogo-i");
$main->setContent("body", $luoghi->get());
$recensioni = new Content($recensioniEntity);
$recensioni->setTemplate("recluogo");
$recensioni->setParameter("id_luoghi", $luog);
$recensioni->setOrderFields("id DESC");
$recensioni->setLimit(3);
$recensioni->applyIndexed($recensioni);
$recensioni->apply($rece);
$main->setContent('recensioni', $rece->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:27,代码来源:luogo-i.php

示例4: Skin

<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
$main = new Skin("aqua");
$news = new Content($newsEntity, $usersEntity, $newsCatEntity);
$news->setOrderFields("date DESC");
$main->setContent("body", $news->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:11,代码来源:news2.php

示例5: Skin

<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
$main = new Skin("aqua");
$content = new Content($usersEntity, $facultyRoleEntity, $ssdEntity, $areaEntity);
$content->setFilter("users.active_home = '*'");
$content->setStyle(HIERARCHICAL);
$content->setOrderFields("facultyrole.position", "surname", "name");
$content->setPresentation("facultyrole_name_plural", "users_username", "users_name", "users_surname", "users_email", "area_id", "area_title", "ssd_id", "ssd_name");
$main->setContent("body", $content->get());
$main->close();
?>

开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:15,代码来源:people.php

示例6: createSystemGraphic

 /**
  *
  * @param Skin $skin
  * @param boolean $login
  * Costruisce la struttura del back-end.
  * Utilizza:
  * frame-private-head: tag html <head>
  * header e footer: header e footer del tema
  *
  */
 public function createSystemGraphic($skin, $login = false)
 {
     /*
      * entity necessarie per il funzionamento del back-end
      */
     $actualUser = $_SESSION['user']['username'];
     $servicecategoryEntity = $GLOBALS['sys_servicecategory'];
     $servicesEntity = $GLOBALS['sys_service'];
     $servicesGroupsRelation = $GLOBALS['sys_service_sys_group'];
     $groupsEntity = $GLOBALS['sys_group'];
     $userEntity = $GLOBALS['sys_user'];
     $usersGroupsRelation = $GLOBALS['sys_user_sys_group'];
     /*
      * skinlet frame-private-head: skins/system/frame-private-head.html
      */
     $head = new Skinlet("frame-private-head");
     /*
      * skinlet header: skins/system/header.html
      */
     $header = new Skinlet("header");
     $loggedUser = new Content($userEntity);
     $loggedUser->setFilter('username', $actualUser);
     $loggedUser->forceSingle();
     $loggedUser->apply($header);
     $config = Config::getInstance()->getConfigurations();
     $header->setContent('webApp', $config["defaultuser"]["webApp"]);
     /*
      * skinlet menu_admin: skins/system/menu_admin.html
      */
     $menuTemplate = new Skinlet("menu_admin");
     $menu = new Content($servicecategoryEntity, $servicesEntity, $servicesGroupsRelation, $groupsEntity, $usersGroupsRelation);
     $menu->setOrderFields("position");
     $menu->setFilter("username_sys_user", $actualUser);
     $menu->apply($menuTemplate);
     /*
      * skinlet footer: skins/system/footer.html
      */
     $footer = new Skinlet("footer");
     $menuTemplate->setContent("footer", $footer->get());
     /*
      * funzionalità breadcrump
      */
     /*
         $breadcrump = new Skinlet("sitemap");
         $breadcrumpContent = new Content($pageEntity, $pageEntity, $pageEntity);
         $breadcrumpContent->forceMultiple();
         $breadcrumpContent->apply($breadcrump);
     
         $actual_script=str_replace("/", "", $_SERVER['SCRIPT_NAME']);
     
         if($actual_script!="page.php")
             $breadcrump->setContent('actual_script', $actual_script);
         else
             $breadcrump->setContent('actual_script',str_replace("/", "", $_SERVER['REQUEST_URI']) );
     
         $skin->setContent("sitemap", $breadcrump->get());
     */
     /*
      * creazione della struttura
      */
     $skin->setContent("head", $head->get());
     $skin->setContent("header", $header->get());
     $skin->setContent("menu", $menuTemplate->get());
 }
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:74,代码来源:InitGraphic.php

示例7: Skin

<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$best = new Skinlet("best");
$rece = new Skinlet("rec");
$slides = new Skinlet("slide-multiple");
$last = new Skinlet("lastminute");
$recensioni = new Content($recensioniEntity);
$recensioni->setOrderFields("id DESC");
$recensioni->setLimit(3);
$recensioni->apply($rece);
$recensioni->applyIndexed($rece);
$main->setContent('recensioni', $rece->get());
$slide = new Content($slideEntity);
$slide->apply($slides);
$main->setContent("slide", $slides->get());
$lastminute = new Content($eventiEntity);
$lastminute->setOrderFields("id DESC");
$lastminute->setLimit(3);
$lastminute->apply($last);
$main->setContent("lastminute", $last->get());
$main->setContent("best", $best->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:31,代码来源:index.php

示例8: realpath

<?php

session_start();
require "include/beContent.inc.php";
require_once 'include/content.inc.php';
require "include/auth.inc.php";
require_once realpath(dirname(__FILE__)) . '/include/view/template/InitGraphic.php';
$main = new Skin("system");
InitGraphic::getInstance()->createSystemGraphic($main);
$form = new Form("dataEntry", $menuEntity);
$form->addSection("Menu Management");
$form->addText("entry", "Entry", 40, MANDATORY, 60, true);
$form->addText("link", "Link", 60);
$form->addSelectFromReference($pageEntity, "linked_page", "Page");
$form->addHierarchicalPosition("parent", "Menu padre");
$content = new Content($menuEntity, $menuEntity);
$content->setOrderFields("sys_menu_entry", "sys_menu0_entry");
$form->setReportContent($content);
if (!isset($_REQUEST['action'])) {
    $_REQUEST['action'] = "report";
}
$main->setContent("body", $form->requestAction());
$main->close();
?>
 
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:24,代码来源:admin-menu-manager.php

示例9: Skin

<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$foto = new Content($fotoEntity, $galleryEntity);
$foto->setOrderFields("position");
$main->setContent("body", $foto->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:15,代码来源:gallery.php

示例10: Skin

<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
require "include/auth.inc.php";
$main = new Skin();
$body = new Skinlet("login");
$log = new Content($logEntity);
$log->setFilter("username = '{$_SESSION['user']['username']}' AND operation = 'LOGIN'");
$log->setOrderFields("date DESC");
$log->setLimit(2);
$log->applyIndexed($body);
$_REQUEST['value'] = $_SESSION["user"]["username"];
if (!isset($_REQUEST['page'])) {
    $_REQUEST['page'] = 1;
}
$main->setContent("body", $body->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:20,代码来源:login.php

示例11: Skin

<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
$main = new Skin("aqua");
$content = new Content($resGroupEntity, $areaEntity);
$content->setOrderFields("name");
$content->setStyle(HIERARCHICAL);
if (!isset($_REQUEST['researchgroup_id'])) {
    $content->setPresentation("area_title", "researchgroup_id", "researchgroup_name", "researchgroup_description");
} else {
    $people = new Content($usersEntity);
    $people->setParameter("id_resgroup", $_REQUEST['researchgroup_id']);
    $people->setTemplate("people_group");
    $people->setOrderFields("surname", "name");
    $content->setContent("people", $people->get());
}
#$content->setFilter("users.active = '*'");
$main->setContent("body", $content->get());
$main->close();
?>

开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:23,代码来源:groups.php


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