'true', 'autoPlay' => 'true', 'autoPlayDelay' => 3000, 'pauseOnHover' => 'true', 'stopAtAction' => 'true', ); protected function _initElements() { $this->_addBoolCheckbox('cycle', array('label' => 'Cycle', 'decoration' => 'simple')); $this->_addBoolCheckbox('autoPlay', array('label' => 'Auto Play', 'decoration' => 'simple')); $this->addElement( 'text', 'autoPlayDelay', array('label' => 'Auto Play Delay (ms)', 'required' => true, 'validators' => array('Int')) ); $this->_addBoolCheckbox('pauseOnHover', array('label' => 'Pause On Hover', 'decoration' => 'simple')); $this->_addBoolCheckbox('stopAtAction', array('label' => 'Stop At Action', 'decoration' => 'simple')); return $this; } /** * @param string $name * @param array $options * @return $this */ protected function _addBoolCheckbox($name, array $options) { $extendedOptions = array( 'checkedValue' => 'true', 'uncheckedValue' => 'false', ); $options = array_merge($options, $extendedOptions); $this->addElement('checkbox', $name, $options); return $this; } }