ILIAS
release_8 Revision v8.19
|
Class ilCtrlAbstractPath. More...
Public Member Functions | |
__construct (ilCtrlStructureInterface $structure) | |
ilCtrlAbstractPath Constructor More... | |
getCidPath () | |
getCurrentCid () | |
getNextCid (string $current_class) | |
getCidPaths (int $order=SORT_DESC) | |
getCidArray (int $order=SORT_DESC) | |
getBaseClass () | |
getException () | |
Protected Member Functions | |
getPathToRelatedClassInContext (ilCtrlContextInterface $context, string $target_class) | |
Returns the path to a class within the given contexts current path that has a relation to the given target. More... | |
isClassChildOf (string $child_class, string $parent_class) | |
Returns whether the given target class is a child of the other given class. More... | |
isClassParentOf (string $parent_class, string $child_class) | |
Returns whether the given target class is a parent of the other given class. More... | |
appendCid (string $cid, string $path=null) | |
Helper function to add CIDs to a given path. More... | |
Protected Attributes | |
ilCtrlStructureInterface | $structure |
ilCtrlException | $exception = null |
string | $cid_path = null |
Additional Inherited Members | |
![]() | |
const | CID_PATH_SEPARATOR = ':' |
Class ilCtrlAbstractPath.
Definition at line 12 of file class.ilCtrlAbstractPath.php.
ilCtrlAbstractPath::__construct | ( | ilCtrlStructureInterface | $structure | ) |
ilCtrlAbstractPath Constructor
ilCtrlStructureInterface | $structure |
Definition at line 34 of file class.ilCtrlAbstractPath.php.
References $structure.
|
protected |
Helper function to add CIDs to a given path.
string | $cid | |
string | null | $path |
Definition at line 223 of file class.ilCtrlAbstractPath.php.
References $path.
Referenced by ilCtrlArrayClassPath\getCidPathByArray(), ilCtrlSingleClassPath\getCidPathByClass(), and getCidPaths().
ilCtrlAbstractPath::getBaseClass | ( | ) |
Implements ilCtrlPathInterface.
Definition at line 133 of file class.ilCtrlAbstractPath.php.
References getCidArray().
ilCtrlAbstractPath::getCidArray | ( | int | $order = SORT_DESC | ) |
Implements ilCtrlPathInterface.
Definition at line 116 of file class.ilCtrlAbstractPath.php.
References getCidPath().
Referenced by getBaseClass(), getCidPaths(), getCurrentCid(), and getNextCid().
ilCtrlAbstractPath::getCidPath | ( | ) |
Implements ilCtrlPathInterface.
Definition at line 42 of file class.ilCtrlAbstractPath.php.
References $cid_path.
Referenced by getCidArray(), getCidPaths(), and getCurrentCid().
ilCtrlAbstractPath::getCidPaths | ( | int | $order = SORT_DESC | ) |
Implements ilCtrlPathInterface.
Definition at line 88 of file class.ilCtrlAbstractPath.php.
References $index, appendCid(), getCidArray(), and getCidPath().
ilCtrlAbstractPath::getCurrentCid | ( | ) |
Implements ilCtrlPathInterface.
Definition at line 56 of file class.ilCtrlAbstractPath.php.
References getCidArray(), and getCidPath().
ilCtrlAbstractPath::getException | ( | ) |
Implements ilCtrlPathInterface.
Definition at line 149 of file class.ilCtrlAbstractPath.php.
References $exception.
ilCtrlAbstractPath::getNextCid | ( | string | $current_class | ) |
Implements ilCtrlPathInterface.
Definition at line 70 of file class.ilCtrlAbstractPath.php.
References $index, and getCidArray().
|
protected |
Returns the path to a class within the given contexts current path that has a relation to the given target.
ilCtrlContextInterface | $context | |
string | $target_class |
Definition at line 162 of file class.ilCtrlAbstractPath.php.
References $index, ilCtrlContextInterface\getPath(), and isClassChildOf().
Referenced by ilCtrlArrayClassPath\getCidPathByArray(), and ilCtrlSingleClassPath\getCidPathByClass().
|
protected |
Returns whether the given target class is a child of the other given class.
string | $child_class | |
string | $parent_class |
Definition at line 188 of file class.ilCtrlAbstractPath.php.
Referenced by getPathToRelatedClassInContext().
|
protected |
Returns whether the given target class is a parent of the other given class.
string | $parent_class | |
string | $child_class |
Definition at line 206 of file class.ilCtrlAbstractPath.php.
Referenced by ilCtrlArrayClassPath\getCidPathByArray().
|
protected |
Definition at line 27 of file class.ilCtrlAbstractPath.php.
Referenced by ilCtrlExistingPath\__construct(), getCidPath(), and ilCtrlArrayClassPath\getCidPathByArray().
|
protected |
Definition at line 22 of file class.ilCtrlAbstractPath.php.
Referenced by ilCtrlArrayClassPath\__construct(), ilCtrlSingleClassPath\__construct(), and getException().
|
protected |
Definition at line 17 of file class.ilCtrlAbstractPath.php.
Referenced by __construct().