Mage_Install_Model_Config Class Reference

Inheritance diagram for Mage_Install_Model_Config:

Varien_Simplexml_Config

List of all members.

Public Member Functions

 __construct ()
 getWizardSteps ()
 getPathForCheck ()
 getExtensionsForCheck ()

Public Attributes

const XML_PATH_WIZARD_STEPS = 'wizard/steps'
const XML_PATH_CHECK_WRITEABLE = 'check/filesystem/writeable'
const XML_PATH_CHECK_EXTENSIONS = 'check/php/extensions'


Detailed Description

Definition at line 35 of file Config.php.


Constructor & Destructor Documentation

__construct (  ) 

Definition at line 42 of file Config.php.

00043     {
00044         parent::__construct();
00045         $this->loadString('<?xml version="1.0"?><config></config>');
00046         Mage::getConfig()->loadModulesConfiguration('install.xml', $this);
00047     }


Member Function Documentation

getExtensionsForCheck (  ) 

Retrieve required PHP extensions

Returns:
array

Definition at line 99 of file Config.php.

00100     {
00101         $res = array();
00102         $items = (array) $this->getNode(self::XML_PATH_CHECK_EXTENSIONS);
00103 
00104         foreach ($items as $name=>$value) {
00105             if (!empty($value)) {
00106                 $res[$name] = array();
00107                 foreach ($value as $subname=>$subvalue) {
00108                     $res[$name][] = $subname;
00109                 }
00110             }
00111             else {
00112                 $res[$name] = (array) $value;
00113             }
00114         }
00115 
00116         return $res;
00117     }

getPathForCheck (  ) 

Retrieve writable path for checking

array( ['writeable'] => array( [$index] => array( ['path'] ['recursive'] ) ) )

Returns:
array

Definition at line 81 of file Config.php.

00082     {
00083         $res = array();
00084 
00085         $items = (array) $this->getNode(self::XML_PATH_CHECK_WRITEABLE);
00086 
00087         foreach ($items as $item) {
00088             $res['writeable'][] = (array) $item;
00089         }
00090 
00091         return $res;
00092     }

getWizardSteps (  ) 

Get array of wizard steps

array($inndex => Varien_Object )

Returns:
array

Definition at line 56 of file Config.php.

00057     {
00058         $steps = array();
00059         foreach ((array)$this->getNode(self::XML_PATH_WIZARD_STEPS) as $stepName=>$step) {
00060             $stepObject = new Varien_Object((array)$step);
00061             $stepObject->setName($stepName);
00062             $steps[] = $stepObject;
00063         }
00064         return $steps;
00065     }


Member Data Documentation

const XML_PATH_CHECK_EXTENSIONS = 'check/php/extensions'

Definition at line 40 of file Config.php.

const XML_PATH_CHECK_WRITEABLE = 'check/filesystem/writeable'

Definition at line 39 of file Config.php.

const XML_PATH_WIZARD_STEPS = 'wizard/steps'

Definition at line 38 of file Config.php.


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

Generated on Sat Jul 4 17:24:27 2009 for Magento by  doxygen 1.5.8