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


PHP Content::apply方法代码示例

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


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

示例1: 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

示例2: Skin

<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
$main = new Skin("aqua");
$body = new Skinlet("homepage");
#$user = new Content($homeEntity, $usersEntity, $roleEntity);
$user = new Content($usersEntity, $facultyRoleEntity, $areaEntity, $ssdEntity, $resGroupEntity, $buildingEntity);
$user->apply($body);
// $ft = fopen("http://didattica.disim.univaq.it/didattica/content.php?docente=1&pid=87&embed", "r");
$teaching = file_get_contents("http://www-disim.disim.univaq.it/didattica/content.php?docente={$_REQUEST[users_username]}&pid=87&embed");
$body->setContent("teaching", utf8_decode($teaching));
/*
$user->setJoinRules("",$usersEntity);
$user->setOrderFields("position");
$user->setLimit(1);
$user->propagate("homepage_username");
$user->apply($body);
$user->unsetParameter("homepage_id");
$menu = new Content($homeEntity, $usersEntity);
$menu->setOrderFields("position");
$menu->setFilter("homepage.active = '*'");
$menu->apply($body,"menu");
*/
$main->setContent("body", $body->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:28,代码来源:home.php

示例3: 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");
}
$pictures = new Content($pictureEntity, $albumEntity);
$album = new Content($albumEntity);
$album->apply($pictures, "menu");
$main->setContent("body", $pictures->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:16,代码来源:album.php

示例4: shared

function shared()
{
    global $main, $pageEntity;
    $pages = new Content($pageEntity);
    $pages->setParameter("section", 2);
    $pages->setLimit(2);
    $pages->clean();
    $pages->apply($main);
}
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:9,代码来源:config.inc.php

示例5: 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

示例6: realpath

<?php

session_start();
require_once "include/beContent.inc.php";
require_once realpath(dirname(__FILE__)) . '/include/view/template/InitGraphic.php';
$main = new Skin();
InitGraphic::getInstance()->createGraphic($main);
$home = new Skinlet("home");
$frammenti = new Content($frammentiEntity, $imageEntity);
$main->setContent('frammenti', $frammenti->get());
// $main->setContent('body', $home->get());
$menu = new Content($prodottiEntity);
$main->setContent('menu', $menu->get());
$staf = new Skinlet("staf");
$frammenti_1 = new Content($frammentiEntity, $imageEntity);
$frammenti_1->apply($staf);
$main->setContent('frammenti_1', $staf->get());
$desc = new Skinlet("desc");
$frammenti_2 = new Content($frammentiEntity);
$frammenti_2->apply($desc);
$main->setContent('frammenti_2', $desc->get());
$gallery = new Skinlet("gallery");
$frammenti_3 = new Content($frammentiEntity, $imageEntity);
$frammenti_3->apply($gallery);
$main->setContent('frammenti_3', $gallery->get());
$mappa = new Skinlet("mappa");
$frammenti_4 = new Content($frammentiEntity, $imageEntity);
$frammenti_4->apply($mappa);
$main->setContent('frammenti_4', $mappa->get());
$main->close();
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:30,代码来源:index.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


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