StructureObject
The StructureObject represents each item in a Structure collection. StructureObjects behave pretty much the same as Pages or Users and have a Content object to access their fields. All fields in a StructureObject are therefore also wrapped in a Field object and can be accessed in the same way as Page fields. They also use the same Field methods.
-
new StructureObject()
-
$structureObject->content()
-
StructureObject::factory()
-
$structureObject->field()
-
$structureObject->hasMethod()
-
$structureObject->hasNext()
-
$structureObject->hasPrev()
-
$structureObject->id()
-
$structureObject->indexOf()
-
$structureObject->is()
-
$structureObject->isFirst()
-
$structureObject->isLast()
-
$structureObject->isNth()
-
$structureObject->kirby()
-
$structureObject->next()
-
$structureObject->nextAll()
-
$structureObject->parent()
-
$structureObject->prev()
-
$structureObject->prevAll()
-
$structureObject->siblings()
-
$structureObject->toArray()