callZfConstructor($this->handleOptions($options)) ->initializePrefixPaths(); } protected function callZfConstructor($options = null) { parent::__construct($options); return $this; } protected function initializePrefixPaths() { $this->addPrefixPathsForBusinessprocess(); if ($this->icingaModule && $this->icingaModuleName !== 'businessprocess') { $this->addPrefixPathsForModule($this->icingaModule); } } protected function addPrefixPathsForBusinessprocess() { $module = Icinga::app() ->getModuleManager() ->loadModule('businessprocess') ->getModule('businessprocess'); $this->addPrefixPathsForModule($module); } public function addPrefixPathsForModule(Module $module) { $basedir = sprintf( '%s/%s/Web/Form', $module->getLibDir(), ucfirst($module->getName()) ); $this->addPrefixPaths(array( array( 'prefix' => __NAMESPACE__ . '\\Element\\', 'path' => $basedir . '/Element', 'type' => static::ELEMENT ) )); return $this; } public function addHidden($name, $value = null) { $this->addElement('hidden', $name); $el = $this->getElement($name); $el->setDecorators(array('ViewHelper')); if ($value !== null) { $this->setDefault($name, $value); $el->setValue($value); } return $this; } // TODO: Should be an element public function addHtmlHint($html, $options = array()) { return $this->addHtml('