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

Class: Mai_Config

Source Location: /Mai/Config.php

Class Overview

Zend_Config_Ini
   |
   --Mai_Config

Mai_Config holds the config of Mai.


Author(s):

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

Copyright:

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

Variables

Methods



Class Details

[line 54]
Mai_Config holds the config of Mai.



Tags:

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


[ Top ]


Class Variables

static $_iniFile =  '/Mai/Config/Files/config.ini'

[line 64]



Tags:

var:  Location of the config file relative to the base dir.
access:  protected

Type:   string


[ Top ]

static $_instance =

[line 59]



Tags:

var:  Singleton instance
access:  protected

Type:   Mai_Config


[ Top ]



Class Methods


static method getInstance [line 86]

static Mai_Config getInstance( [ $class = null])

Retrieve singleton instance



Tags:

access:  public


Parameters:

   $class  

[ Top ]

static method getVar [line 106]

static Mai_Config getVar( )

Use to get variables form the ini file. Acts the same as getInstance()



Tags:

access:  public


[ Top ]

constructor __construct [line 70]

void __construct( $creator, $filename, $section, $options)

Mai_Config can only be created by itself. Starts up the parent constructor.



Tags:

access:  public


Parameters:

   $creator  
   $filename  
   $section  
   $options  

[ Top ]

method __clone [line 115]

void __clone( )

Cloning of a singleton class is not allowed.



Tags:

access:  public


[ Top ]

method __wakeup [line 124]

void __wakeup( )

Function to prevent deserializing



Tags:

access:  public


[ Top ]


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