import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -25,7 +25,7 @@
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -33,17 +33,17 @@
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Content_Engine_Phtml
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var Zend_Tool_Framework_Client_Storage
|
||||
*/
|
||||
protected $_storage = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_contentPrefix = null;
|
||||
|
||||
|
||||
/**
|
||||
* __construct()
|
||||
*
|
||||
@ -55,7 +55,7 @@ class Zend_Tool_Project_Context_Content_Engine_Phtml
|
||||
$this->_storage = $storage;
|
||||
$this->_contentPrefix = $contentPrefix;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* hasContext()
|
||||
*
|
||||
@ -67,7 +67,7 @@ class Zend_Tool_Project_Context_Content_Engine_Phtml
|
||||
{
|
||||
return $this->_storage->has($this->_contentPrefix . '/' . $context . '/' . $method . '.phtml');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getContent()
|
||||
*
|
||||
@ -78,12 +78,12 @@ class Zend_Tool_Project_Context_Content_Engine_Phtml
|
||||
public function getContent(Zend_Tool_Project_Context_Interface $context, $method, $parameters)
|
||||
{
|
||||
$streamUri = $this->_storage->getStreamUri($this->_contentPrefix . '/' . $context->getName() . '/' . $method . '.phtml');
|
||||
|
||||
|
||||
ob_start();
|
||||
include $streamUri;
|
||||
$content = ob_get_clean();
|
||||
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user