Mage_Install_Block_Config Class Reference

Inheritance diagram for Mage_Install_Block_Config:

Mage_Install_Block_Abstract Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getPostUrl ()
 getFormData ()
 getSkipUrlValidation ()
 getSkipBaseUrlValidation ()
 getSessionSaveOptions ()
 getSessionSaveSelect ()


Detailed Description

Config installation block

Author:
Magento Core Team <core@magentocommerce.com>

Definition at line 32 of file Config.php.


Constructor & Destructor Documentation

__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     }


Member Function Documentation

getFormData (  ) 

Retrieve configuration form data object

Returns:
Varien_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

Returns:
string

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     }


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