StructureView
class StructureView extends AbstractView implements JsonSerializable (View source)
The StructureView class.
Traits
Constants
DEFAULT_MODEL |
|
FORMAT_JSON |
|
FORMAT_XML |
|
FORMAT_YAML |
|
FORMAT_INI |
|
FORMAT_PHP |
|
Methods
Method to instantiate the view.
getData
setData
Method to set property model
Method to add model with name.
Method to get property Format
Method to set property format
Return data which should be serialized by json_encode().
Details
at line line 46
__construct(array $data = array(), array $config = null)
Method to instantiate the view.
in AbstractView at line line 114
void
boot()
boot
in AbstractView at line line 145
AbstractView
handleData()
handleData
in AbstractView at line line 170
mixed
getHandledData()
processData
at line line 85
Data
getData()
getData
at line line 102
AbstractView
setData(array $data)
setData
in AbstractView at line line 212
null
get(string $key, mixed $default = null)
get
in AbstractView at line line 225
$this
set(string $key, mixed $value)
set
in AbstractView at line line 239
string
render()
render
in AbstractView at line line 291
string
__toString()
__toString
in AbstractView at line line 314
boolean
offsetExists(mixed $offset)
Is a property exists or not.
in AbstractView at line line 327
mixed
offsetGet(mixed $offset)
Get a property.
in AbstractView at line line 341
void
offsetSet(mixed $offset, mixed $value)
Set a value to property.
in AbstractView at line line 354
void
offsetUnset(mixed $offset)
Unset a property.
in AbstractView at line line 369
string
getName(int $backwards = 2)
getName
in AbstractView at line line 399
AbstractView
setName(string $name)
Method to set property name
in AbstractView at line line 413
AbstractPackage
getPackage(int $backwards = 4)
Method to get property Package
in AbstractView at line line 445
AbstractView
setPackage(AbstractPackage $package)
Method to set property package
in AbstractView at line line 471
Structure
getConfig()
Method to get property Config
in AbstractView at line line 488
AbstractView
setConfig(Structure $config)
Method to set property config
in AbstractView at line line 505
Structure
__get(string $name)
__get
in AbstractView at line line 532
ModelRepository
getModel(string $name = null)
Method to get property Model
in AbstractView at line line 546
AbstractView
setModel(ModelRepository $model, bool $default = null, string $customName = null)
Method to set property model
in AbstractView at line line 562
AbstractView
addModel(string $name, ModelRepository $model, string $default = null)
Method to add model with name.
in AbstractView at line line 576
AbstractView
removeModel(string $name)
removeModel
in AbstractView at line line 588
PackageRouter
getRouter()
getRouter
at line line 114
string
getFormat()
Method to get property Format
at line line 126
StructureView
setFormat(string $format)
Method to set property format
at line line 140
mixed
jsonSerialize()
Return data which should be serialized by json_encode().