SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class View

Loads and displays Kohana view files.

Variables

NameVisibilityDescription
$EXTENSION (static) 
$kohana_filename 
$kohana_global_data (static) 
$kohana_local_data 

Functions

NameVisibilityDescription
__constructpublicAttempts to load a view and pre-load view data.
__getpublicMagically gets a view variable.
__issetpublicMagic method access to test for view property
__setpublicMagically sets a view variable.
__toStringpublicMagically converts view object to string.
bindpublicSets a bound variable by reference.
createpublic (static)Create a view as appropriate for the 'sprout.skin_view_types' config.
isPropertySetpublicChecks for a property existence in the view locally or globally. Unlike the built in __isset(),
renderpublicRenders a view.
setpublicSets a view variable.
setFilenamepublicSets the view filename.
setGlobalpublic (static)Sets a view global variable.
stringpublic (static)Shorthand load and render a view.

public __construct

void $View->__construct ( string $name , array $data );

Attempts to load a view and pre-load view data.

public __get

mixed|void $View->__get ( string &$key );

Magically gets a view variable.

public __isset

boolean $View->__isset ( [ string $key ] );

Magic method access to test for view property

public __set

void $View->__set ( string $key , string $value );

Magically sets a view variable.

public __toString

string $View->__toString ( );

Magically converts view object to string.

public bind

object $View->bind ( string $name , mixed &$var );

Sets a bound variable by reference.

public create

View View::create ( string $name , array $data );

Create a view as appropriate for the 'sprout.skin_view_types' config.

public isPropertySet

array|boolean $View->isPropertySet ( [ string $key ] );

Checks for a property existence in the view locally or globally. Unlike the built in __isset(),
this method can take an array of properties to test simultaneously.

public render

void|string $View->render ( [ boolean $print [, callback $renderer ]] );

Renders a view.

public set

object $View->set ( string|array $name [, mixed $value ] );

Sets a view variable.

public setFilename

object $View->setFilename ( string $name );

Sets the view filename.

public setGlobal

void View::setGlobal ( string|array $name [, mixed $value ] );

Sets a view global variable.

public string

string View::string ( string $name , array $data );

Shorthand load and render a view.