Topics

Class View

MVC View class

Namespace: Ip

Methods:

mixed setVariables( mixed $variables )

Set view variables

Parameters:

mixed $variables

Return values:

mixed $this
array getVariables( )

Get view variables

Return values:

array
mixed setVariable( string $name , mixed $value )

Set a single view variable

Parameters:

string $name
mixed $value

Return values:

mixed $this
mixed unsetVariable( mixed $name )

Unset a view variable

Parameters:

mixed $name

Return values:

mixed $this
null getVariable( mixed $name )

Get view variable value

Parameters:

mixed $name

Return values:

null
string render( )

Render a view and return HTML, XML, or any other string.

Return values:

string
mixed setDoctype( mixed $doctype )

Set DOCTYPE declaration.

Parameters:

mixed $doctype

Return values:

mixed $this
mixed getDoctype( )

Return DOCTYPE declaration.

Return values:

mixed
string getThemeOption( mixed $name , [ null $default = null ] )

Get theme option. Options can be viewed or set using UI via Theme options dialog box.

Parameters:

mixed $name
null $default

Return values:

string
comments powered by Disqus