prependId(); return $form; } /** * Overloaded callAction method for side blocks. * * @return mixed */ protected function _getActionResult() { $actionMethod = $this->_actionMethod . 'Block'; if (method_exists($this, $actionMethod)) { if (Qs_Version::compareVersion('2.2.0') <= 0) { $this->_setHeader(); } return $this->{$actionMethod}(); } else if (Qs_Request::isXmlHttpRequest()) { Qs_Debug::log('Action method not found: ' . get_class($this) . '->' . $actionMethod); return false; } else { throw new Zend_Exception('Action method not found: ' . get_class($this) . '->' . $actionMethod); } } /** * Return form object for site blocks * * @return Qs_Form */ public function getSideBlockItem() { $this->_initAction(); return $this->_getActionResult(); } }