Garson
[ class tree: Garson ] [ index: Garson ] [ all elements ]

Class: View

Source Location: /core/View.php

Class Overview


View Class, all custom classes are made from this one


Variables

Methods



Class Details

[line 10]
View Class, all custom classes are made from this one



[ Top ]


Class Variables

$_layout =  ''

[line 27]

Fullpath of the layout to be shown



Tags:

access:  protected

Type:   unknown_type


[ Top ]

$_template =  ''

[line 21]

Fullpath of the template to be shown.



Tags:

access:  protected

Type:   string


[ Top ]

$_variables = array()

[line 15]

Holds variables to be passed to the templates



Tags:

access:  protected

Type:   Array


[ Top ]



Class Methods


constructor __construct [line 34]

View __construct( $templateName, [ $layoutName = 'default'], string $template_name)

Constructor for class View



Tags:

access:  public


Parameters:

string   $template_name  
   $templateName  
   $layoutName  

[ Top ]

method assign [line 78]

null assign( string $field, var $value)

Assigns a variable to be visible in the Template



Tags:

access:  public


Parameters:

string   $field  
var   $value  

[ Top ]

method display [line 86]

null display( )

Displays the Template



Tags:

access:  public


[ Top ]

method setLayout [line 63]

null setLayout( $layoutName, string $template_name)

Sets the template to be shown



Tags:

throws:  InvalidArgumentException
access:  public


Parameters:

string   $template_name   the template name, it'll be completed with a path and extension.
   $layoutName  

[ Top ]

method setTemplate [line 47]

null setTemplate( $templateName, string $template_name)

Sets the template to be shown



Tags:

throws:  InvalidArgumentException
access:  public


Parameters:

string   $template_name   the template name, it'll be completed with a path and extension.
   $templateName  

[ Top ]


Documentation generated on Mon, 05 Sep 2011 20:34:51 -0500 by phpDocumentor 1.4.3