ILIAS
trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
|
Class ilCtrlArrayClassPath. More...
Public Member Functions | |
__construct (ilCtrlStructureInterface $structure, ilCtrlContextInterface $context, array $target_classes) | |
ilCtrlArrayClassPath Constructor More... | |
![]() | |
__construct (ilCtrlStructureInterface $structure) | |
ilCtrlAbstractPath Constructor More... | |
getCidPath () | |
getCurrentCid () | |
getNextCid (string $current_class) | |
getCidPaths (int $order=SORT_DESC) | |
getCidArray (int $order=SORT_DESC) | |
getBaseClass () | |
getException () | |
Private Member Functions | |
getCidPathByArray (array $target_classes) | |
Generates a cid path from the given class array. More... | |
Private Attributes | |
ilCtrlContextInterface | $context |
Additional Inherited Members | |
![]() | |
const | CID_PATH_SEPARATOR = ':' |
![]() | |
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... | |
![]() | |
ilCtrlStructureInterface | $structure |
ilCtrlException | $exception = null |
string | $cid_path = null |
Class ilCtrlArrayClassPath.
Definition at line 26 of file class.ilCtrlArrayClassPath.php.
ilCtrlArrayClassPath::__construct | ( | ilCtrlStructureInterface | $structure, |
ilCtrlContextInterface | $context, | ||
array | $target_classes | ||
) |
ilCtrlArrayClassPath Constructor
ilCtrlStructureInterface | $structure | |
ilCtrlContextInterface | $context | |
string[] | $target_classes |
Definition at line 40 of file class.ilCtrlArrayClassPath.php.
References $context, ilCtrlAbstractPath\$exception, ILIAS\GlobalScreen\Provider\__construct(), and getCidPathByArray().
|
private |
Generates a cid path from the given class array.
If the given class array does not contain a valid path an according exception will be thrown.
string[] | $target_classes |
ilCtrlException | if classes within the classes array are not related. |
Definition at line 64 of file class.ilCtrlArrayClassPath.php.
References ilCtrlAbstractPath\$cid_path, ilCtrlAbstractPath\appendCid(), ilCtrlAbstractPath\getPathToRelatedClassInContext(), ilCtrlAbstractPath\isClassParentOf(), and null.
Referenced by __construct().
|
private |
Definition at line 31 of file class.ilCtrlArrayClassPath.php.
Referenced by __construct().