Class Pinoco_Vars
Variable model
- Pinoco_Vars implements IteratorAggregate, ArrayAccess, Countable, Pinoco_ArrayConvertible
Indirect known subclasses
Pinoco, Pinoco_HttpRequestVars, Pinoco_Pagination, Pinoco_Validator, Pinoco_ValidatorContext
Package: Pinoco
Copyright: Copyright 2010-2012, Hisateru Tanaka <tanakahisateru@gmail.com>
License: License (http://www.opensource.org/licenses/mit-license.php)
Author: Hisateru Tanaka <tanakahisateru@gmail.com>
Located at Pinoco/Vars.php
Copyright: Copyright 2010-2012, Hisateru Tanaka <tanakahisateru@gmail.com>
License: License (http://www.opensource.org/licenses/mit-license.php)
Author: Hisateru Tanaka <tanakahisateru@gmail.com>
Located at Pinoco/Vars.php
public
|
|
public static
|
|
public static
|
|
public
mixed
|
#
get( string $name, mixed $default =
Returns a value or default by name. |
public
mixed
|
#
rget( string $expression, mixed $default =
Returns a value or default by tree expression. |
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
registerAsMethod( string $name, callable $callable )
Extends existing instance with any callable object. The instance would be passed to the 1st argument of callback, then trailing arguments are filled as is, just like Python's OOP. |
public
|
#
registerAsDynamic( string $name, callable $callable, array $context = array() )
Sets a value to this object as given named dynamic value. The callback evaluated every time when fetched. |
public
|
#
registerAsLazy( string $name, callable $callable, array $context = array() )
Sets a value to this object as given named lazy value. The callback evaluated as one-shot. |
public
|
#
markAsDirty( string $name )
Clear lazy property's internal cache. It would be regenerated at the next fetching. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
|
|
public
|