Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

ConfigIncBackend Class Reference

Inheritance diagram for ConfigIncBackend:

Inheritance graph
[legend]
Collaboration diagram for ConfigIncBackend:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ConfigIncBackend ($petition)
 GetConfig ()
 SetConfig ($keys)
 _MakeContent ($keys)
 _WriteFile ($content, $file)

Public Attributes

 $idM
 The id of the module.

 $idG
 The id of the group.

 $idU
 The id of the user.

 $fileName
 The name of the file where is the config.

 $realFileName
 The name of the file in the file system.


Detailed Description

Config backend for PHP files.

Definition at line 15 of file ConfigIncBackend.class.php.


Constructor & Destructor Documentation

ConfigIncBackend::ConfigIncBackend petition  ) 
 

Initializes de backend with a petition.

Parameters:
petition A ConfigPetition object.

Definition at line 28 of file ConfigIncBackend.class.php.

References JSystem::GetConfig(), and Modules::GetInstance().


Member Function Documentation

ConfigIncBackend::_MakeContent keys  ) 
 

Gets the file that contains all the config

Parameters:
keys Array of key, value pairs.
Returns:
string The content of the file.

Definition at line 98 of file ConfigIncBackend.class.php.

ConfigIncBackend::_WriteFile content,
file
 

Writes a string into the specified file.

Parameters:
content The content of the file.
file The name of the file.

Definition at line 132 of file ConfigIncBackend.class.php.

ConfigIncBackend::GetConfig  ) 
 

Returns the configuration keys and values for the specified petition.

Returns:
Array of (key, value) pairs.

Reimplemented from IConfigBackend.

Definition at line 74 of file ConfigIncBackend.class.php.

ConfigIncBackend::SetConfig keys  ) 
 

Stores an array of key, value pairs in the DB.

Parameters:
keys Array of key, value pairs.

Reimplemented from IConfigBackend.

Definition at line 84 of file ConfigIncBackend.class.php.


Member Data Documentation

ConfigIncBackend::$fileName
 

The name of the file where is the config.

Definition at line 21 of file ConfigIncBackend.class.php.

ConfigIncBackend::$idG
 

The id of the group.

Definition at line 18 of file ConfigIncBackend.class.php.

ConfigIncBackend::$idM
 

The id of the module.

Definition at line 17 of file ConfigIncBackend.class.php.

ConfigIncBackend::$idU
 

The id of the user.

Definition at line 19 of file ConfigIncBackend.class.php.

ConfigIncBackend::$realFileName
 

The name of the file in the file system.

Definition at line 22 of file ConfigIncBackend.class.php.


The documentation for this class was generated from the following file:
Generated on Wed Nov 19 20:29:36 2003 for James by doxygen 1.3.4