Mage_Core_Block_Template

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()

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值