Protected Member Functions | |
_getInstaller () | |
_checkSessionSave ($value) | |
_checkAdminFrontname ($value) | |
Protected Attributes | |
$_installer |
Definition at line 35 of file Abstract.php.
_checkAdminFrontname | ( | $ | value | ) | [protected] |
Validate admin frontname value. If empty, "admin" will be returned
string | $value |
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'
string | $value |
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
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 }
$_installer [protected] |
Definition at line 42 of file Abstract.php.