Mage_Adminhtml_Model_System_Config_Backend_Sitemap Class Reference

Inheritance diagram for Mage_Adminhtml_Model_System_Config_Backend_Sitemap:

Mage_Core_Model_Config_Data Mage_Core_Model_Abstract Varien_Object

List of all members.

Protected Member Functions

 _beforeSave ()


Detailed Description

Definition at line 28 of file Sitemap.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 31 of file Sitemap.php.

00032     {
00033         $value     = $this->getValue();
00034             if ($value < 0 || $value > 1) {
00035                 throw new Exception(Mage::helper('sitemap')->__('Priority must be between 0 and 1'));
00036             } elseif (($value == 0) && !($value === '0' || $value === '0.0')) {
00037                 throw new Exception(Mage::helper('sitemap')->__('Priority must be between 0 and 1'));
00038             }
00039         return $this;
00040     }


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