Class Smarty_Template_Source

Description

Smarty Resource Data Object

Meta Data Container for Template Files

  • property: integer $timestamp: Source Timestamp
  • property: boolean $exists: Source Existance
  • property: boolean $template: Extended Template reference
  • property: string $content: Source Content
  • author: Rodney Rehm

Located in /libs/sysplugins/smarty_resource.php (line 487)


	
			
Direct descendents
Class Description
Smarty_Config_Source Smarty Resource Data Object
Variable Summary
Method Summary
Smarty_Template_Source __construct (Smarty_Resource $handler, Smarty $smarty, string $resource, string $type, string $name)
mixed __get (string $property_name)
void __set (string $property_name, mixed $value)
Variables
string $compiler_class = null (line 493)

Name of the Class to compile this resource's contents with

  • access: public
array $components = null (line 553)

The Components an extended template is made of

  • access: public
string $filepath = null (line 535)

Source Filepath

  • access: public
Smarty_Resource $handler = null (line 559)

Resource Handler

  • access: public
string $name = null (line 529)

Resource Name

  • access: public
boolean $recompiled = null (line 547)

Source must be recompiled on every occasion

  • access: public
string $resource = null (line 517)

Template Resource (Smarty_Internal_Template::$template_resource)

  • access: public
Smarty $smarty = null (line 565)

Smarty instance

  • access: public
string $template_lexer_class = null (line 499)

Name of the Class to tokenize this resource's contents with

  • access: public
string $template_parser_class = null (line 505)

Name of the Class to parse this resource's contents with

  • access: public
string $type = null (line 523)

Resource Type

  • access: public
string $uid = null (line 511)

Unique Template ID

  • access: public
boolean $uncompiled = null (line 541)

Source is bypassing compiler

  • access: public
Methods
Constructor __construct (line 576)

create Source Object container

  • access: public
Smarty_Template_Source __construct (Smarty_Resource $handler, Smarty $smarty, string $resource, string $type, string $name)
  • Smarty_Resource $handler: Resource Handler this source object communicates with
  • Smarty $smarty: Smarty instance this source object belongs to
  • string $resource: full template_resource
  • string $type: type of resource
  • string $name: resource name

Redefined in descendants as:
getCompiled (line 598)

get a Compiled Object of this source

  • return: compiled object
  • access: public
renderUncompiled (line 626)

render the uncompiled source

  • access: public
void renderUncompiled (Smarty_Internal_Template $_template)
__get (line 662)

magic>> Generic getter.

  • throws: SmartyException if $property_name is not valid
  • access: public
mixed __get (string $property_name)
  • string $property_name: valid: timestamp, exists, content

Redefined in descendants as:
__set (line 638)

magic>> Generic Setter.

  • throws: SmartyException if $property_name is not valid
  • access: public
void __set (string $property_name, mixed $value)
  • string $property_name: valid: timestamp, exists, content, template
  • mixed $value: new value (is not checked)

Redefined in descendants as:

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