Class Smarty_Template_Source

Description

Smarty Resource Data Object

Meta Data Container for Template Files

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

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


	
			
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, string $unique_resource)
mixed __get (string $property_name)
void __set (string $property_name, mixed $value)
Variables
string $compiler_class = null (line 597)

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

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

The Components an extended template is made of

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

Source Filepath

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

Resource Handler

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

Resource Name

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

Source must be recompiled on every occasion

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

Template Resource (Smarty_Internal_Template::$template_resource)

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

Smarty instance

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

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

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

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

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

Resource Type

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

Unique Template ID

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

Source is bypassing compiler

  • access: public
string $unique_resource = null (line 639)

Unique Resource Name

  • access: public
Methods
Constructor __construct (line 687)

create Source Object container

  • access: public
Smarty_Template_Source __construct (Smarty_Resource $handler, Smarty $smarty, string $resource, string $type, string $name, string $unique_resource)
  • 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
  • string $unique_resource: unqiue resource name

Redefined in descendants as:
getCompiled (line 710)

get a Compiled Object of this source

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

render the uncompiled source

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

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

<<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 Mon, 17 Jun 2013 21:06:51 +0000 by phpDocumentor 1.4.3