diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Tool/Project/Context/Zf/LayoutScriptFile.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Tool/Project/Context/Zf/LayoutScriptFile.php Fri Mar 11 15:05:35 2011 +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; + } + +}