Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
View Class Reference

Represents a view. More...

Public Member Functions

 __construct ()
 
 setVar ($name, $value)
 
 setVars ($vars)
 
 getVar ($name)
 
 render ($viewName, $asString=false)
 Renders the view $viewName.
 
 getBlockNames ($templateName)
 
 getCode ($templateName)
 

Protected Member Functions

 includeFileAsString ($filename)
 

Private Attributes

 $vars
 

Detailed Description

Represents a view.

Ubiquity\views$View This class is part of Ubiquity

Author
jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
Version
1.0.6

Definition at line 17 of file View.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Definition at line 20 of file View.php.

Member Function Documentation

◆ getBlockNames()

getBlockNames (   $templateName)

Definition at line 82 of file View.php.

◆ getCode()

getCode (   $templateName)

Definition at line 86 of file View.php.

◆ getVar()

getVar (   $name)

Definition at line 44 of file View.php.

◆ includeFileAsString()

includeFileAsString (   $filename)
protected

Definition at line 24 of file View.php.

◆ render()

render (   $viewName,
  $asString = false 
)

Renders the view $viewName.

Parameters
string$viewNameThe view name
boolean$asStringIf true, the view is not displayed but returned as a string (usable in a variable)
Exceptions

Exception

Returns
string

Definition at line 56 of file View.php.

◆ setVar()

setVar (   $name,
  $value 
)

Definition at line 30 of file View.php.

◆ setVars()

setVars (   $vars)

Definition at line 35 of file View.php.

Field Documentation

◆ $vars

$vars
private

Definition at line 18 of file View.php.


The documentation for this class was generated from the following file: