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

Class: WURFL_Storage_File

Source Location: /Storage/File.php

Class Overview

WURFL_Storage_Base
   |
   --WURFL_Storage_File

WURFL Storage


Author(s):

  • Fantayeneh Asres Gizaw

Version:

  • $id$

Copyright:

  • ScientiaMobile, Inc.

Variables

Constants

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: WURFL_Storage_Base

WURFL_Storage_Base::__construct()
Creates a new WURFL_Storage_Base
WURFL_Storage_Base::cacheClear()
WURFL_Storage_Base::cacheLoad()
WURFL_Storage_Base::cacheRemove()
WURFL_Storage_Base::cacheSave()
WURFL_Storage_Base::clear()
Removes all entries from the Persistence Provider
WURFL_Storage_Base::decode()
Decode the Object Id
WURFL_Storage_Base::encode()
Encode the Object Id using the Persistence Identifier
WURFL_Storage_Base::isVolatile()
Returns true if the cache is an in-memory volatile cache, like Memcache or APC, or false if
WURFL_Storage_Base::isWURFLLoaded()
Checks if WURFL is Loaded
WURFL_Storage_Base::load()
Returns the object identified by $objectId
WURFL_Storage_Base::remove()
Removes the object identified by $objectId from the persistence provider
WURFL_Storage_Base::save()
Saves the object
WURFL_Storage_Base::setCacheStorage()
Sets the cache provider for the persistence provider; this is used to cache data in a volatile storage system like APC in front of a slow persistence provider like the filesystem.
WURFL_Storage_Base::setWURFLLoaded()
Sets the WURFL Loaded flag
WURFL_Storage_Base::supportsSecondaryCaching()
This storage provider supports a caching layer in front of it, for example, the File provider supports a volatile cache like Memcache in front of it, whereas APC does not.
WURFL_Storage_Base::validSecondaryCache()
This storage provider can be used as a secondary cache

Class Details

[line 23]
WURFL Storage



Tags:

author:  Fantayeneh Asres Gizaw
version:  $id$
copyright:  ScientiaMobile, Inc.


[ Top ]


Class Variables

$supports_secondary_caching =  true

[line 37]



Tags:

access:  protected

Type:   mixed
Overrides:   Array


[ Top ]



Class Methods


constructor __construct [line 39]

WURFL_Storage_File __construct( $params)



Tags:

access:  public


Overrides WURFL_Storage_Base::__construct() (Creates a new WURFL_Storage_Base)

Parameters:

   $params  

[ Top ]

method clear [line 91]

void clear( )



Tags:

access:  public


Overrides WURFL_Storage_Base::clear() (Removes all entries from the Persistence Provider)

[ Top ]

method initialize [line 44]

void initialize( $params)



Tags:

access:  public


Parameters:

   $params  

[ Top ]

method load [line 63]

void load( $key)



Tags:

access:  public


Overrides WURFL_Storage_Base::load() (Returns the object identified by $objectId)

Parameters:

   $key  

[ Top ]

method save [line 85]

void save( $key, $value, [ $expiration = null])



Tags:

access:  public


Overrides WURFL_Storage_Base::save() (Saves the object)

Parameters:

   $key  
   $value  
   $expiration  

[ Top ]

method spread [line 101]

void spread( $md5, [ $n = 2])



Parameters:

   $md5  
   $n  

[ Top ]


Class Constants

DIR =  "dir"

[line 35]


[ Top ]



Documentation generated on Thu, 03 Oct 2013 19:11:49 +0000 by phpDocumentor 1.4.4