/** * Validate object * * @param Varien_Object $object * @throws Mage_Eav_Exception * @return boolean */ public function validate($object) { $pattern = '#^(\\d+)?\\-\\d+;(\\d+\\-\\d+;)*\\d+\\-(\\d+)?$#'; $value = $object->getFilterPriceRanges(); if ('' != $value && !preg_match($pattern, $value)) { $message = "Provided Layered Navigation Price Ranges are incorrect."; $message = Mage::helper('aurmil_customizepricefilter')->__($message); Mage::throwException($message); } return parent::validate($object); }