webCOMAND

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;