Mage_Adminhtml_Model_System_Config_Backend_Design_Package Class Reference

Inheritance diagram for Mage_Adminhtml_Model_System_Config_Backend_Design_Package:

Mage_Core_Model_Config_Data Mage_Core_Model_Abstract Varien_Object

List of all members.

Protected Member Functions

 _beforeSave ()


Detailed Description

Definition at line 27 of file Package.php.


Member Function Documentation

_beforeSave (  )  [protected]

Processing object before save data

Returns:
Mage_Core_Model_Abstract

Reimplemented from Mage_Core_Model_Abstract.

Definition at line 29 of file Package.php.

00030     {
00031         $value = $this->getValue();
00032         if (empty($value)) {
00033             throw new Exception('package name is empty.');
00034         }
00035         if (!Mage::getDesign()->designPackageExists($value)) {
00036             throw new Exception('package with this name does not exist and cannot be set.');
00037         }
00038     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:13 2009 for Magento by  doxygen 1.5.8