[ Index ] |
|
Code source de SPIP Agora 1.4 |
1 <?php 2 /***************************************************** 3 * This file is part of Agora, web based content management system. 4 * 5 * Agora is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * 9 * Agora is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details (file "COPYING"). 13 * 14 * Copyright © Arnaud Martin, Antoine Pitrou et Philippe Rivière. 15 * List of authors detailed in "copyright_fr.html" file. 16 * E-mail : agora@sig.premier-ministre.gouv.fr 17 * Web site : http://www.agora.gouv.fr 18 *****************************************************/ 19 // Implémentation du cache HTML pour les pages supportant la personnalisation. 20 // 21 require_once dirname(__FILE__). "/../CacheHTML.php"; 22 23 /** 24 * Implémentation du cache HTML pour les pages supportant la personnalisation. 25 * @package cache_html/common 26 * @author Erwan Le Bescond <elebescond@clever-age.com> 27 * @access public 28 */ 29 30 class PersonnalisationCacheHTML_common extends CacheHTML { 31 32 // {{{ properties 33 34 /** 35 * L'identifiant du visiteur (utile à la définition du groupe d'appartenance du cache). 36 * 37 * var int 38 * @access private 39 */ 40 41 var $_personnalisationId; 42 43 // }}} 44 45 // {{{ setPersonnalisationId($personnalisationId) 46 47 /** 48 * Setter pour affecter l'identifiant du visiteur (utile à la définition du groupe d'appartenance du cache). 49 * 50 * @param String $personnalisationId l'identifiant du visiteur. 51 * @access public 52 */ 53 54 function setPersonnalisationId ($personnalisationId) { 55 $this->_personnalisationId = $personnalisationId; 56 } 57 58 // }}} 59 60 // {{{ getPersonnalisationId() 61 62 /** 63 * Setter pour affecter l'identifiant du visiteur (utile à la définition du groupe d'appartenance du cache). 64 * 65 * @return String l'identifiant du visiteur. 66 * @access public 67 */ 68 69 function getPersonnalisationId () { 70 return $this->_personnalisationId; 71 } 72 73 // }}} 74 75 // {{{ constructor 76 77 /** 78 * PersonnalisationCacheHTML_common constructor. 79 * 80 * @param Container $container représente l'object container support du cache HTML. 81 * @param string $query représente la requête du cache HTML. 82 * @param array $httpGetParams fournit les paramètres GET de la requête. 83 * @param array $httpPostParams fournit les paramètres POST de la requête. 84 * @param int $delais représente la durée de validité du cache HTML. 85 * @param int $delais représente la durée de validité du cache HTML. 86 * @param array $cacheParams stocke l'identifiant du visiteur $cacheParams['personnalisationId']. 87 * @access public 88 */ 89 function PersonnalisationCacheHTML_common ($container, $query, $httpGetParams, $httpPostParams, $delais = 0, 90 $cacheParams = null) { 91 $this->_personnalisationId = $cacheParams['personnalisationId']; 92 $this->_groupId = 'CACHE/perso/' . $cacheParams['personnalisationId']. '/' . $query; 93 $par = get_parent_class($this); 94 $res = $this->$par($container, $query, $httpGetParams, $httpPostParams, $delais, $cacheParams); 95 } 96 97 // }}} 98 99 } 100 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |