ILIAS
trunk Revision v11.0_alpha-1846-g895b5f47236
|
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 26 of file class.ilCtrlAbstractPath.php.
ilCtrlAbstractPath::__construct | ( | ilCtrlStructureInterface | $structure | ) |
ilCtrlAbstractPath Constructor
ilCtrlStructureInterface | $structure |
Definition at line 48 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 237 of file class.ilCtrlAbstractPath.php.
Referenced by ilCtrlArrayClassPath\getCidPathByArray(), ilCtrlSingleClassPath\getCidPathByClass(), and getCidPaths().
ilCtrlAbstractPath::getBaseClass | ( | ) |
Implements ilCtrlPathInterface.
Definition at line 147 of file class.ilCtrlAbstractPath.php.
References getCidArray(), and null.
ilCtrlAbstractPath::getCidArray | ( | int | $order = SORT_DESC | ) |
Implements ilCtrlPathInterface.
Definition at line 130 of file class.ilCtrlAbstractPath.php.
References getCidPath(), and null.
Referenced by getBaseClass(), getCidPaths(), getCurrentCid(), and getNextCid().
ilCtrlAbstractPath::getCidPath | ( | ) |
Implements ilCtrlPathInterface.
Definition at line 56 of file class.ilCtrlAbstractPath.php.
References $cid_path, and null.
Referenced by getCidArray(), getCidPaths(), and getCurrentCid().
ilCtrlAbstractPath::getCidPaths | ( | int | $order = SORT_DESC | ) |
Implements ilCtrlPathInterface.
Definition at line 102 of file class.ilCtrlAbstractPath.php.
References appendCid(), getCidArray(), getCidPath(), and null.
ilCtrlAbstractPath::getCurrentCid | ( | ) |
Implements ilCtrlPathInterface.
Definition at line 70 of file class.ilCtrlAbstractPath.php.
References getCidArray(), getCidPath(), and null.
ilCtrlAbstractPath::getException | ( | ) |
Implements ilCtrlPathInterface.
Definition at line 163 of file class.ilCtrlAbstractPath.php.
References $exception.
ilCtrlAbstractPath::getNextCid | ( | string | $current_class | ) |
Implements ilCtrlPathInterface.
Definition at line 84 of file class.ilCtrlAbstractPath.php.
References getCidArray(), and null.
|
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 176 of file class.ilCtrlAbstractPath.php.
References ilCtrlContextInterface\getPath(), isClassChildOf(), and null.
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 202 of file class.ilCtrlAbstractPath.php.
References null.
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 220 of file class.ilCtrlAbstractPath.php.
References null.
Referenced by ilCtrlArrayClassPath\getCidPathByArray().
|
protected |
Definition at line 41 of file class.ilCtrlAbstractPath.php.
Referenced by ilCtrlExistingPath\__construct(), getCidPath(), and ilCtrlArrayClassPath\getCidPathByArray().
|
protected |
Definition at line 36 of file class.ilCtrlAbstractPath.php.
Referenced by ilCtrlArrayClassPath\__construct(), ilCtrlSingleClassPath\__construct(), and getException().
|
protected |
Definition at line 31 of file class.ilCtrlAbstractPath.php.
Referenced by __construct().