Base html block
*
* @category Mage
* @package Mage_Core
* @author Magento Core Team <core@magentocommerce.com>
*/
class Mage_Core_Block_Template extends Mage_Core_Block_Abstract
1
变量:
1.1
View scripts directory
@var string
protected $_viewDir = '';
1.2
Assigned variables for view
@var array
protected $_viewVars = array();
1.3
protected $_baseUrl;
protected $_jsUrl;
protected static $_showTemplateHints;
protected static $_showTemplateHintsBlocks;
1.4
Path to template file in theme.
@var string
protected $_template;
函数:
2.1
Get relevant path to template
@return string
public function getTemplate()
2.2
Set path to template used for generating block's output.
@param string $template
@return Mage_Core_Block_Template
public function setTemplate($template)
2.3
Get absolute path to template
@return string
public function getTemplateFile()
2.4
Get design area
@return string
public function getArea()
2.5
Assign variable
@param string|array $key
@param mixed $value
@return Mage_Core_Block_Template
public function assign($key, $value=null)
2.6
Set template location dire
@param string $dir
@return Mage_Core_Block_Template
public function setScriptPath($dir)
2.7
Check if dirrect output is allowed for block
@return bool
public function getDirectOutput()
2.8
public function getShowTemplateHints()
2.9
Retrieve block view from file (template)
@param string $fileName
@return string
public function fetchView($fileName)
2.10
Render block
@return string
public function renderView()
2.11
Render block HTML
@return string
protected function _toHtml()
2.12
Get base url of the application
@return string
public function getBaseUrl()
2.13
Get url of base javascript file
To get url of skin javascript file use getSkinUrl()
@param string $fileName
@return string
public function getJsUrl($fileName='')
2.14
Get data from specified object
@param Varien_Object $object
@param string $key
@return mixed
public function getObjectData(Varien_Object $object, $key)
2.15
Get cache key informative items
@return array
public function getCacheKeyInfo()
860

被折叠的 条评论
为什么被折叠?



