
Public Member Functions | |
| __construct () | |
| getPostUrl () | |
| getFormData () | |
| getSkipUrlValidation () | |
| getSkipBaseUrlValidation () | |
| getSessionSaveOptions () | |
| getSessionSaveSelect () | |
Definition at line 32 of file Config.php.
| __construct | ( | ) |
Constructor
By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes
Reimplemented from Varien_Object.
Definition at line 34 of file Config.php.
00035 { 00036 parent::__construct(); 00037 $this->setTemplate('install/config.phtml'); 00038 }
| getFormData | ( | ) |
Retrieve configuration form data object
Definition at line 55 of file Config.php.
00056 { 00057 $data = $this->getData('form_data'); 00058 if (is_null($data)) { 00059 $data = Mage::getSingleton('install/session')->getConfigData(true); 00060 if (empty($data)) { 00061 $data = Mage::getModel('install/installer_config')->getFormData(); 00062 } 00063 else { 00064 $data = new Varien_Object($data); 00065 } 00066 $this->setFormData($data); 00067 } 00068 return $data; 00069 }
| getPostUrl | ( | ) |
Retrieve form data post url
Definition at line 45 of file Config.php.
00046 { 00047 return $this->getUrl('*/*/configPost'); 00048 }
| getSessionSaveOptions | ( | ) |
Definition at line 81 of file Config.php.
00082 { 00083 return array( 00084 'files' => Mage::helper('install')->__('File system'), 00085 'db' => Mage::helper('install')->__('Database'), 00086 ); 00087 }
| getSessionSaveSelect | ( | ) |
Definition at line 89 of file Config.php.
00090 { 00091 $html = $this->getLayout()->createBlock('core/html_select') 00092 ->setName('config[session_save]') 00093 ->setId('session_save') 00094 ->setTitle(Mage::helper('install')->__('Save session files in')) 00095 ->setClass('required-entry') 00096 ->setOptions($this->getSessionSaveOptions()) 00097 ->getHtml(); 00098 return $html; 00099 }
| getSkipBaseUrlValidation | ( | ) |
Definition at line 76 of file Config.php.
00077 { 00078 return Mage::getSingleton('install/session')->getSkipBaseUrlValidation(); 00079 }
| getSkipUrlValidation | ( | ) |
Definition at line 71 of file Config.php.
00072 { 00073 return Mage::getSingleton('install/session')->getSkipUrlValidation(); 00074 }
1.5.8