__get()
__isset()
__set()
__toString()
__unset()
after()
auto_filter()
before()
bind()
forge()
get()
get_view()
render()
set()
set_safe()
set_view()
view()
__construct()
request()
$_active_request
$_auto_filter
$_method
$_view
$ns_prefix
Presenter
| package | Fuel |
|---|---|
| subpackage | Core |
| category | Core * @author Jelmer Schreuder |
__get(mixed $name) : mixed
mixed
mixed__isset(string $key) : boolean
isset($view->foo);
stringvariable name
boolean__set(string $key, mixed $value) : \Fuel\Core\Presenter
__toString()
__unset(string $key) : void
unset($view->foo);
stringvariable name
after()
auto_filter(null | bool $setting) : void | bool
nullboolchange setting (bool) or get the current setting (null)
voidboolreturns current setting or nothing when it is changedbefore()
bind(string $key, mixed $value, bool $filter) : \Fuel\Core\Presenter
The benefit of binding is that values can be altered without re-setting them. It is also possible to bind variables before they have values. Assigned values will be available as a variable within the view file:
$this->bind('ref', $bar);
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
stringvariable name
mixedreferenced variable
boolWhether to filter the var on output
forge(string $presenter, string $method, bool $auto_filter, string $view) : \Fuel\Core\Presenter
stringPresenter classname without View_ prefix or full classname
stringMethod to execute
boolAuto filter the view data
stringView to associate with this presenter
get(null $key, null $default) : string
null
null
stringrender()
set(string $key, mixed $value, bool | null $filter) : \Fuel\Core\Presenter
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
string
mixed
boolnull
set_safe(string $key, mixed $value) : \Fuel\Core\Presenter
$view->set_safe('foo', 'bar');
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
stringvariable name or an array of variables
mixedvalue
set_view($view)
view()
__construct($method, $auto_filter, $view)
$_active_request : \Fuel\Core\Request
$_auto_filter : bool
$_method : string
$ns_prefix