Class Pxxo_Buffer

Description

Classe permet de gérer l'accès à des flux de données Un flux est par exemple une chaine de caractère, un fichier, mais cela pourait être une base de données, une zone mémoire, peu importe...

Located in /Pxxo/Buffer.php (line 48)

Pxxo
   |
   --Pxxo_Buffer
Direct descendents
Class Description
Pxxo_Buffer_Resource Classe permet de gérer l'accès à des flux de données comme des ressources WEB
Pxxo_Buffer_HTML Classe permet de gérer l'accès à des flux de données comme du HTML
Pxxo_Buffer_PHP Classe permet de gérer l'accès à des flux de données comme du code PHP
Pxxo_Buffer_Header Classe permettant de sotcker des informations destinées à l'entête d'une page
Variable Summary
string $content
string $id
string $scheme
string $type
string $uri
integer $weight
array $_func
Method Summary
static object factory (string $type,  $uri)
Pxxo_Buffer __construct ([string $a = null])
boolean addFilter (string $s)
void filter ()
string get ()
string getExtendedType ()
string getID ()
string getType ()
integer getWeight ()
boolean isType ( $type)
void set (mixed $p)
void setID (string $s)
void setWeight (integer $w)
Variables
string $content = '' (line 61)
  • access: protected
string $id = '' (line 53)
  • var: identifiant unique du Buffer
  • access: protected
string $scheme = 'buffer' (line 73)
  • var: support pour le flux (url/file/buffer/...)
  • access: public
string $uri = '' (line 57)
  • var: localisation du flux
  • access: public
integer $weight = 0 (line 78)
  • var: importance du Buffer
  • access: protected

Redefined in descendants as:
array $_func = array() (line 65)
  • var: list de callback à appliquer en sortie du flux
  • access: protected

Inherited Variables

Inherited from Pxxo

Pxxo::$_bench
Pxxo::$_cache
Pxxo::$_cache_options
Pxxo::$_cache_options_default
Pxxo::$_caching
Pxxo::$_debugging
Pxxo::$_debug_options
Pxxo::$_debug_options_default
Pxxo::$_idcache
Pxxo::$_ids
Pxxo::$_levelcache
Methods
static method factory (line 96)

Création d'un objet pour un type de flux spécifique

  • access: public
static object factory (string $type,  $uri)
  • string $type: type du fichier
  • $uri
Constructor __construct (line 84)

Constructeur PHP5

Pxxo_Buffer __construct ([string $a = null])
  • string $a: localisation du flux

Redefinition of:
Pxxo::__construct()
Constructeur

Redefined in descendants as:
addFilter (line 197)

Ajoute une fonction callback en sortie du flux

  • return: le filtre est-il actif
  • access: public
boolean addFilter (string $s)
  • string $s: nom d'une function ou d'une méthode de l'objet Buffer (protected)
filter (line 213)

Application des Filtres

  • access: public
void filter ()
get (line 149)

On récupère le contenu du flux

  • return: le contenu du flux
  • access: public
string get ()

Redefined in descendants as:
getExtendedType (line 258)

Renvoi le type étendu du Buffer

  • access: public
string getExtendedType ()

Redefined in descendants as:
getID (line 240)

Renvoit un identifiant unique du Buffer

  • access: public
string getID ()
getType (line 249)

Renvoi le type du Buffer

  • access: public
string getType ()
getWeight (line 288)

returne le poid duBuffer

  • access: public
integer getWeight ()
isType (line 268)

Teste le type du Buffer

  • access: public
boolean isType ( $type)
  • $type
merge (line 186)

Merge un buffer avec le buffer courant

  • access: public
Pxxo_Buffer merge (Pxxo_Buffer $o)

Redefined in descendants as:
set (line 162)

On rempli soit même le flux

  • access: public
void set (mixed $p)
  • mixed $p
setID (line 229)

Fixe l'identifiant unique du Buffer

  • access: public
void setID (string $s)
  • string $s
setWeight (line 278)

Donne un poid au Buffer

  • access: public
void setWeight (integer $w)
  • integer $w

Inherited Methods

Inherited From Pxxo

Pxxo::__construct()
Pxxo::addCacheID()
Pxxo::addCacheLevel()
Pxxo::cleanCache()
Pxxo::copyto()
Pxxo::delinCache()
Pxxo::disableCache()
Pxxo::disableDebug()
Pxxo::enableCache()
Pxxo::enableDebug()
Pxxo::getCacheID()
Pxxo::getCacheLevel()
Pxxo::getCacheObject()
Pxxo::getCacheOption()
Pxxo::getDebugOption()
Pxxo::getinCache()
Pxxo::initCache()
Pxxo::isCaching()
Pxxo::isDebugging()
Pxxo::resetCache()
Pxxo::resetCacheID()
Pxxo::setBenchmarkProfiler()
Pxxo::setBenchmarkTimer()
Pxxo::setCacheID()
Pxxo::setCacheLevel()
Pxxo::setCacheObject()
Pxxo::setCacheOption()
Pxxo::setCacheOptions()
Pxxo::setDebugOption()
Pxxo::setinCache()
Pxxo::testCacheLevel()
Pxxo::testinCache()
Pxxo::traceDebug()

Documentation generated on Thu, 13 Mar 2008 22:03:10 +0100 by phpDocumentor 1.4.1