__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);
string
variable name
boolean
__set(string $key, mixed $value) : \Fuel\Core\Presenter
__toString()
__unset(string $key) : void
unset($view->foo);
string
variable name
after()
auto_filter(null | bool $setting) : void | bool
null
bool
change setting (bool) or get the current setting (null)
void
bool
returns 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 |
---|
string
variable name
mixed
referenced variable
bool
Whether to filter the var on output
forge(string $presenter, string $method, bool $auto_filter, string $view) : \Fuel\Core\Presenter
string
Presenter classname without View_ prefix or full classname
string
Method to execute
bool
Auto filter the view data
string
View to associate with this presenter
get(null $key, null $default) : string
null
null
string
render()
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
bool
null
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 |
---|
string
variable name or an array of variables
mixed
value
set_view($view)
view()
__construct($method, $auto_filter, $view)
$_active_request : \Fuel\Core\Request
$_auto_filter : bool
$_method : string
$ns_prefix