fxl_template
[ class tree: fxl_template ] [ index: fxl_template ] [ all elements ]

Class: fxl_memcached_template

Source Location: /fxl_template.inc.php

Class Overview

fxl_template
   |
   --fxl_memcached_template

FXL Template - Memcache Extension (alpha, 0.5)


Author(s):

Version:

  • 2.1.1

Variables

Methods


Inherited Methods

Class: fxl_template

fxl_template::__construct()
fxl_template constructor
fxl_template::assign()
new assignment
fxl_template::assign_block()
assigns a whole block in place
fxl_template::block_exists()
checks a block exists or not
fxl_template::clear()
refresh block for new assignments
fxl_template::display()
displays the output
fxl_template::get_block()
fetching a block for assignments
fxl_template::get_content()
finish rendering process

Class Details

[line 385]
FXL Template - Memcache Extension (alpha, 0.5)

for use with FXL Template v2.1+

php memcache documentation: http://www.php.net/manual/en/book.memcache.php




Tags:

version:  2.1.1


[ Top ]


Class Variables

$cached =  false

[line 392]



Tags:

access:  public

Type:   mixed


[ Top ]

$cache_date =

[line 394]



Tags:

access:  protected

Type:   mixed


[ Top ]

$cache_md5 =

[line 393]



Tags:

access:  protected

Type:   mixed


[ Top ]

$check =  'always'

[line 387]



Tags:

access:  protected

Type:   mixed


[ Top ]

$memcache_expire =  null

[line 391]



Tags:

access:  protected

Type:   mixed


[ Top ]

$memcache_flag =  null

[line 390]



Tags:

access:  protected

Type:   mixed


[ Top ]

$memcache_prefix =  'fxlt'

[line 389]



Tags:

access:  protected

Type:   mixed


[ Top ]

$validate =  'date'

[line 388]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 414]

fxl_memcached_template __construct( string $filename, Memcache $memcache, [string $check = null], [string $validate = null], [array $mc_option = null])

Constructor

possible options:

  • check
value: 'never' never check for a new version of the template (fastest) value: 'always' always check for a newer version of the template (default, recommended)
  • validate
value: 'date' (fastest) value: 'md5' (default, recommended)




Overrides fxl_template::__construct() (fxl_template constructor)

Parameters:

string   $filename   template filename
Memcache   $memcache   Memcache object
string   $check   (never|always) optional
string   $validate   (date|md5) optional
array   $mc_option   (0=>key, 1=>flag, 2=>expire) optional

[ Top ]


Documentation generated on Sat, 04 Sep 2010 13:57:09 +0200 by phpDocumentor 1.4.3