/** * Constructor * * @param string|array|Zend_Config $spec Element name or configuration * @param string|array|Zend_Config $options Element value or configuration */ public function __construct($spec, $options = null) { if (is_string($spec) && (null !== $options && is_string($options))) { $options = array('label' => $options); } if (!isset($options['ignore'])) { $options['ignore'] = true; } parent::__construct($spec, $options); if ($label = $this->getLabel()) { // Necessary to get the label shown on the generated HTML $this->content = $label; } }