XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Swift_Preferences Class Reference

Public Member Functions

 setCacheType ($type)
 
 setCharset ($charset)
 
 setTempDir ($dir)
 

Static Public Member Functions

static getInstance ()
 

Private Member Functions

 __construct ()
 

Static Private Attributes

static $_instance = null
 

Detailed Description

Definition at line 18 of file Preferences.php.

Constructor & Destructor Documentation

Swift_Preferences::__construct ( )
private

Constructor not to be used

Definition at line 25 of file Preferences.php.

Member Function Documentation

static Swift_Preferences::getInstance ( )
static

Get a new instance of Preferences.

Returns
Swift_Preferences

Definition at line 31 of file Preferences.php.

Swift_Preferences::setCacheType (   $type)

Set the type of cache to use (i.e. "disk" or "array").

Parameters
string$type
Returns
Swift_Preferences

Definition at line 69 of file Preferences.php.

References $type, and Swift_DependencyContainer\getInstance().

Here is the call graph for this function:

Swift_Preferences::setCharset (   $charset)

Set the default charset used.

Parameters
string
Returns
Swift_Preferences

Definition at line 45 of file Preferences.php.

References Swift_DependencyContainer\getInstance().

Here is the call graph for this function:

Swift_Preferences::setTempDir (   $dir)

Set the directory where temporary files can be saved.

Parameters
string$dir
Returns
Swift_Preferences

Definition at line 57 of file Preferences.php.

References $dir, and Swift_DependencyContainer\getInstance().

Here is the call graph for this function:

Member Data Documentation

Swift_Preferences::$_instance = null
staticprivate

Singleton instance

Definition at line 22 of file Preferences.php.


The documentation for this class was generated from the following file: