Retrieves the parent of a module. If the module has no parent, and empty string, "", is returned.
Data retrieval
getParent module [-fullPath] [-nameOnly] |
Name | Type | Required | Comments |
---|---|---|---|
moduleName | string | yes | The module to get parent for. |
Name | Flag arguments | Argument type | Exclusive to | Comments |
---|---|---|---|---|
fullPath | 0 | — | nameOnly | — |
nameOnly | 0 | — | fullPath | — |
string
// Get the parent of the "rhumerus". string $parent; $parent = `getParent "rhumerus"`; print $parent; |