NavigationData
class NavigationData implements JsonSerializable
Traits
Properties
protected array | $timestamps | from Timestamps | |
protected array | $attributes | ||
array | $modified | from Accessors | |
int | $id | ||
string|null | $url | ||
string|null | $target | ||
int|string | $type | ||
Collection | $children | ||
Page | $page | ||
Page|null | $parent | ||
bool | $active |
Methods
__construct($attributes = [])
No description
jsonSerialize()
No description
__debugInfo()
No description
string|null
getTargetAttribute(string $target)
No description
getActiveAttribute()
No description
Page|null
getPageAttribute()
No description
static Collection
get(int $parent = null, string $type = 'nav', string $root = null)
Resolves navigation data
Details
in
Timestamps at line 18
serializeTimestamp($value)
in
Accessors at line 30
array
toArray()
Get the raw attributes
in
Accessors at line 39
mixed
__get(string $property)
in
Accessors at line 67
__set(string $property, mixed $value)
in
Accessors at line 97
bool
__isset(string $property)
in
Accessors at line 105
__unset(string $key)
in
Accessors at line 116
bool
offsetExists(string $property)
in
Accessors at line 127
mixed
offsetGet(string $property)
in
Accessors at line 137
mixed
offsetSet(string $property, mixed $value)
in
Accessors at line 146
void
offsetUnset(string $key)
in
Accessors at line 154
string
__toString()
at line 31
__construct($attributes = [])
at line 36
jsonSerialize()
at line 41
__debugInfo()
at line 57
string|null
getTargetAttribute(string $target)
at line 64
getActiveAttribute()
at line 76
Page|null
getPageAttribute()
at line 95
static Collection
get(int $parent = null, string $type = 'nav', string $root = null)
Resolves navigation data