/** * Get value * * If element type is one of the button types, returns the label. * * @param IfwPsn_Vendor_Zend_Form_Element $element * @return string|null */ public function getValue($element) { if (!$element instanceof IfwPsn_Vendor_Zend_Form_Element) { return null; } foreach ($this->_buttonTypes as $type) { if ($element instanceof $type) { if (stristr($type, 'button')) { $element->content = $element->getLabel(); return $element->getValue(); } return $element->getLabel(); } } return $element->getValue(); }