- ⌂ repo
- Methods
- Constructor
- execute()
- get()
- get_content_type()
- get_first()
- get_object()
- get_object_by_id()
- get_object_by_oid()
- get_object_by_doid()
- get_object_by_uuid()
- get_objects_by_id()
- get_objects_by_oid()
- get_objects_by_doid()
- get_objects_by_uuid()
- get_root()
- get_row()
- get_rows()
- get_system_property()
- log_alert()
- log_critical()
- log_to_file()
- log_to_html()
- new_collection()
- new_object()
- peek_user()
- pop_user()
- push_super_user()
- push_user()
- query()
- supports_dimensions()
- switch_user()
- uninit()
- with()
repo::get_root()
Get the root object in a repository. The root object is similar to the root folder in a file system. It represents the starting point in a path to locate objects in the content hierarchy.
The root object is typically a folder or other hierarchical object that contains a collection of children and implements the children interface, which means it has a children field that can be referenced to get it's collection of children.
Prototype
Object get_root()
Return
Returns the root repository object, which is typically a Folder.
Example
$root = $repo->get_root();
$collection = $root->Contents;