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

Class: Mai_Cache_Words

Source Location: /Mai/Cache/Words.php

Class Overview


Mai_Cache_Words is a way to cache words.


Author(s):

  • Wouter Bulten (wouterbulten@mai-ai.org)

Copyright:

  • Copyright (C) 2009 Mai (Me Artificial Intelligence)

Implements interfaces:

Variables

Methods



Class Details

[line 52]
Mai_Cache_Words is a way to cache words.



Tags:

author:  Wouter Bulten (wouterbulten@mai-ai.org)
copyright:  Copyright (C) 2009 Mai (Me Artificial Intelligence)
link:  http://www.launchpad.net/mai
uses:  Zend_CodeGenerator_Php_File
license:  GNU General Public License version 3 (GPLv3)


[ Top ]


Class Variables

$_cacheFilename =

[line 64]

Name of the cache file.



Tags:

access:  protected

Type:   string


[ Top ]

$_cacheLocation =

[line 58]

Location of the cache file.



Tags:

access:  protected

Type:   string


[ Top ]

$_cacheVariableName =

[line 70]

Name of the cache variable.



Tags:

access:  protected

Type:   string


[ Top ]



Class Methods


constructor __construct [line 80]

void __construct( [$location $location = null], $filename $filename, $varName $varName, [$creator $creator = null])

Constructor sets the path and filename for saving and loading the cache.



Parameters:

$location   $location   Location of the file. Use null to use the value in the ini file.
$filename   $filename   Name of the file.
$varName   $varName   Name of the variable.
$creator   $creator   Creator of this class.

[ Top ]

method convertArrayToSourceCode [line 126]

string convertArrayToSourceCode( $data)

Converts an double array to an php array.



Tags:

access:  protected


Parameters:

$data   $data  

[ Top ]

method createCache [line 114]

void createCache( $words)

Creates an cache file with date from the base database.



Tags:

access:  public



Implementation of:
Mai_Cache_Interface::createCache()

Parameters:

$words   $words   The words to cache.

[ Top ]

method createCacheFile [line 160]

void createCacheFile( string $body)

Creates the cache file.



Tags:

access:  protected


Parameters:

string   $body  

[ Top ]

method returnCacheFromFile [line 192]

boolean|array returnCacheFromFile( )

Loads the class array from a defined php file.



Tags:

access:  public



Implementation of:
Mai_Cache_Interface::returnCacheFromFile()
[ Top ]


Documentation generated on Mon, 27 Jul 2009 19:55:14 +0200 by phpDocumentor 1.4.1