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

Ubiquity abstract TemplateGenerator class. More...

Public Member Functions

 openBlock (string $name)
 
 closeBlock ()
 
 asArray (array $array)
 
 insertVariable (string $name, bool $safe=false)
 
 includeFile (string $filename, bool $asVariable=false)
 
 extendsTemplate (string $templateName, bool $asVariable=false)
 
 foreach (string $arrayName, string $value, ?string $key=null)
 
 endForeach ()
 
 condition (string $condition)
 
 endCondition ()
 
 getNonce ()
 
 getNonceArray ()
 
 getSelf ()
 
 asVariable (string $var)
 
 getOpenVarTag ()
 
 getCloseVarTag ()
 
 getOpenExpressionTag ()
 
 getCloseExpressionTag ()
 
 insertJS (string $url)
 
 insertCSS (string $url)
 
 callFunction (string $funcName,... $parameters)
 

Protected Member Functions

 implodeParameters (array $parameters)
 
 insertAssets (string $funcName, string $url)
 

Protected Attributes

string $openVarTag
 
string $closeVarTag
 
string $openExpressionTag
 
string $closeExpressionTag
 
string $safeFilter
 

Private Member Functions

 parseValue ($v)
 

Detailed Description

Ubiquity abstract TemplateGenerator class.

Ubiquity\views\engine$TemplateGenerator 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.0

Definition at line 17 of file TemplateGenerator.php.

Member Function Documentation

◆ asArray()

asArray ( array  $array)
abstract

◆ asVariable()

asVariable ( string  $var)
abstract

◆ callFunction()

callFunction ( string  $funcName,
  $parameters 
)

Definition at line 116 of file TemplateGenerator.php.

◆ closeBlock()

closeBlock ( )
abstract

◆ condition()

condition ( string  $condition)
abstract

◆ endCondition()

endCondition ( )
abstract

◆ endForeach()

endForeach ( )
abstract

◆ extendsTemplate()

extendsTemplate ( string  $templateName,
bool  $asVariable = false 
)
abstract

◆ foreach()

foreach ( string  $arrayName,
string  $value,
?string  $key = null 
)
abstract

◆ getCloseExpressionTag()

getCloseExpressionTag ( )
Returns
string

Definition at line 77 of file TemplateGenerator.php.

◆ getCloseVarTag()

getCloseVarTag ( )
Returns
string

Definition at line 63 of file TemplateGenerator.php.

◆ getNonce()

getNonce ( )
abstract

◆ getNonceArray()

getNonceArray ( )
abstract

◆ getOpenExpressionTag()

getOpenExpressionTag ( )
Returns
string

Definition at line 70 of file TemplateGenerator.php.

◆ getOpenVarTag()

getOpenVarTag ( )
Returns
string

Definition at line 56 of file TemplateGenerator.php.

◆ getSelf()

getSelf ( )
abstract

◆ implodeParameters()

implodeParameters ( array  $parameters)
protected

Definition at line 96 of file TemplateGenerator.php.

◆ includeFile()

includeFile ( string  $filename,
bool  $asVariable = false 
)
abstract

◆ insertAssets()

insertAssets ( string  $funcName,
string  $url 
)
protected

Definition at line 104 of file TemplateGenerator.php.

◆ insertCSS()

insertCSS ( string  $url)

Definition at line 112 of file TemplateGenerator.php.

◆ insertJS()

insertJS ( string  $url)

Definition at line 108 of file TemplateGenerator.php.

◆ insertVariable()

insertVariable ( string  $name,
bool  $safe = false 
)
abstract

◆ openBlock()

openBlock ( string  $name)
abstract

◆ parseValue()

parseValue (   $v)
private

Definition at line 81 of file TemplateGenerator.php.

Field Documentation

◆ $closeExpressionTag

string $closeExpressionTag
protected

Definition at line 22 of file TemplateGenerator.php.

◆ $closeVarTag

string $closeVarTag
protected

Definition at line 20 of file TemplateGenerator.php.

◆ $openExpressionTag

string $openExpressionTag
protected

Definition at line 21 of file TemplateGenerator.php.

◆ $openVarTag

string $openVarTag
protected

Definition at line 19 of file TemplateGenerator.php.

◆ $safeFilter

string $safeFilter
protected

Definition at line 23 of file TemplateGenerator.php.


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