Mage_Install_Model_Installer_Abstract Class Reference

Inheritance diagram for Mage_Install_Model_Installer_Abstract:

Mage_Install_Model_Installer_Config Mage_Install_Model_Installer_Console Mage_Install_Model_Installer_Db Mage_Install_Model_Installer_Env Mage_Install_Model_Installer_Filesystem Mage_Install_Model_Installer_Pear

List of all members.

Protected Member Functions

 _getInstaller ()
 _checkSessionSave ($value)
 _checkAdminFrontname ($value)

Protected Attributes

 $_installer


Detailed Description

Definition at line 35 of file Abstract.php.


Member Function Documentation

_checkAdminFrontname ( value  )  [protected]

Validate admin frontname value. If empty, "admin" will be returned

Parameters:
string $value
Returns:
string
Exceptions:
Exception 

Definition at line 84 of file Abstract.php.

00085     {
00086         if (empty($value)) {
00087             return 'admin';
00088         }
00089         if (!preg_match('/^[a-z]+[a-z0-9_]+$/i', $value)) {
00090             throw new Exception('admin_frontname value must contain only letters (a-z or A-Z), numbers (0-9) or underscore(_), first character should be a letter.');
00091         }
00092         return $value;
00093     }

_checkSessionSave ( value  )  [protected]

Validate session storage value (files or db) If empty, will return 'files'

Parameters:
string $value
Returns:
string
Exceptions:
Exception 

Definition at line 65 of file Abstract.php.

00066     {
00067         if (empty($value)) {
00068             return 'files';
00069         }
00070         if (!in_array($value, array('files', 'db'), true)) {
00071             throw new Exception('session_save value must be "files" or "db".');
00072         }
00073         return $value;
00074     }

_getInstaller (  )  [protected]

Get installer singleton

Returns:
Mage_Install_Model_Installer

Definition at line 49 of file Abstract.php.

00050     {
00051         if (is_null($this->_installer)) {
00052             $this->_installer = Mage::getSingleton('install/installer');
00053         }
00054         return $this->_installer;
00055     }


Member Data Documentation

$_installer [protected]

Definition at line 42 of file Abstract.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