diff -r 000000000000 -r 4eba9c11703f web/Zend/Tool/Project/Context/Zf/LayoutScriptFile.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/Tool/Project/Context/Zf/LayoutScriptFile.php Mon Dec 13 18:29:26 2010 +0100 @@ -0,0 +1,109 @@ +_resource->getAttribute('layoutName')) { + $this->_layoutName = $layoutName; + } else { + throw new Exception('Either a forActionName or scriptName is required.'); + } + + parent::init(); + return $this; + } + + /** + * getPersistentAttributes() + * + * @return unknown + */ + public function getPersistentAttributes() + { + $attributes = array(); + + if ($this->_layoutName) { + $attributes['layoutName'] = $this->_layoutName; + } + + return $attributes; + } + + /** + * getContents() + * + * @return string + */ + public function getContents() + { + $contents = <<layout()->content; ?> +EOS; + + return $contents; + } + +}