Class Smarty_Internal_Compile_Block

Description

Smarty Internal Plugin Compile Block Class

Located in /libs/sysplugins/smarty_internal_compile_block.php (line 18)

Smarty_Internal_CompileBase
   |
   --Smarty_Internal_Compile_Block
Variable Summary
Method Summary
static string compileChildBlock (object $compiler, [string $_name = null])
static void saveBlockData (string $block_content, string $block_tag, object $template, string $filepath)
boolean compile (array $args, object $compiler)
Variables
array $optional_attributes = array('hide') (line 40)

Attribute definition: Overwrites base class.


Redefinition of:
Smarty_Internal_CompileBase::$optional_attributes
Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names
array $required_attributes = array('name') (line 26)

Attribute definition: Overwrites base class.


Redefinition of:
Smarty_Internal_CompileBase::$required_attributes
Array of names of required attribute required by tag
array $shorttag_order = array('name', 'hide') (line 33)

Attribute definition: Overwrites base class.


Redefinition of:
Smarty_Internal_CompileBase::$shorttag_order
Shorttag attribute order defined by its names

Inherited Variables

Inherited from Smarty_Internal_CompileBase

Smarty_Internal_CompileBase::$option_flags
Methods
static method compileChildBlock (line 128)

Compile saved child block source

  • return: compiled code of schild block
  • access: public
static string compileChildBlock (object $compiler, [string $_name = null])
  • object $compiler: compiler object
  • string $_name: optional name of child block
static method saveBlockData (line 76)

Save or replace child block source by block name during parsing

  • access: public
static void saveBlockData (string $block_content, string $block_tag, object $template, string $filepath)
  • string $block_content: block source content
  • string $block_tag: opening block tag
  • object $template: template object
  • string $filepath: filepath of template source
compile (line 49)

Compiles code for the {block} tag

  • return: true
  • access: public
boolean compile (array $args, object $compiler)
  • array $args: array with attributes from parser
  • object $compiler: compiler object

Inherited Methods

Inherited From Smarty_Internal_CompileBase

Smarty_Internal_CompileBase::closeTag()
Smarty_Internal_CompileBase::getAttributes()
Smarty_Internal_CompileBase::openTag()

Documentation generated on Sat, 24 Sep 2011 20:23:39 +0200 by phpDocumentor 1.4.1