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' |
Definition at line 35 of file Config.php.
__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 }
getExtensionsForCheck | ( | ) |
Retrieve required PHP extensions
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'] ) ) )
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 )
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 }
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.