AWF
Filename
Parents
None
Dependencies
The core classes of AWF (AWF_Sites, AWF_Designs, AWF_Languages, AWF_ContentManager and AWF_Database) must be defined or should at least be located in inc/classes/ (they will be included on demand using PHP's autoloading feature then). PEAR::DB and PHP >= 5.0.3 must also be installed. A current Smarty version is shipped with AWF.
Properties
public $config = array()
This is for the stuff in inc/config.ini.
public $database
Reference to the database object (class AWF_Database).
public $sites
Reference to the sites object (class AWF_Sites).
public $designs
Reference to the designs object (class AWF_Designs) which holds a list of available designs and the config of the current design.
public $languages
Reference to the languages object (class AWF_Languages).
public $cms
Reference to the content manager object (class AWF_ContentManager).
Constructor
__construct ($config_file = 'inc/config.ini')
The constructor reads the config file from $config_file and starts the database connection by creating an instance of AWF_Database (which calls PEAR::DB).
Methods
public init()
This method creates instances of AWF_Sites, AWF_Designs, AWF_Languages and AWF_ContentManager (aka CMS). Then, it tells the CMS to handle the current request (that's why the admin backend is not supposed to call this method).
Created: 09.01.2006 04:12 CET, Last Change: 09.01.2006 11:13 CET by admin





