_captureLock)) { require_once 'ZendX/JQuery/View/Exception.php'; throw new ZendX_JQuery_View_Exception(sprintf('Lock already exists for id "%s"', $id)); } $this->_captureLock[$id] = true; $this->_captureInfo[$id] = array( 'name' => $name, 'options' => $options, ); return ob_start(); } /** * Finish capturing content for layout container * * @param string $id * @return string */ public function captureEnd($id) { if (!array_key_exists($id, $this->_captureLock)) { require_once 'ZendX/JQuery/View/Exception.php'; throw new ZendX_JQuery_View_Exception(sprintf('No capture lock exists for id "%s"; nothing to capture', $id)); } $content = ob_get_clean(); extract($this->_captureInfo[$id]); unset($this->_captureLock[$id], $this->_captureInfo[$id]); return $this->_addPane($id, $name, $content, $options); } /** * Add an additional pane to the current Widget Container * * @param string $id * @param string $name * @param string $content * @param array $options */ abstract protected function _addPane($id, $name, $content, array $options=array()); }