|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Caches and supplies the paths to the learning progress status images. More...
Inheritance diagram for ilLPStatusIcons:
Collaboration diagram for ilLPStatusIcons:Public Member Functions | |
| getImagePathInProgress () | |
| getImagePathCompleted () | |
| getImagePathNotAttempted () | |
| getImagePathFailed () | |
| getImagePathAsset () | |
| A long variant of this icon is not available. More... | |
| getImagePathRunning () | |
| A long variant of this icon is not available. More... | |
| renderIcon (string $path, string $alt) | |
| getIconComponent (string $path, string $alt) | |
| getImagePathForStatus (int $a_status) | |
| renderIconForStatus (int $a_status, ?ilLanguage $a_lng=null) | |
| Returns the rendered icon with alt text. More... | |
| lookupNumStatus (string $a_status) | |
| Transforms the string constants for the status to their interger equivalent. More... | |
Static Public Member Functions | |
| static | getInstance (int $variant=ilLPStatusIcons::ICON_VARIANT_DEFAULT, ?\ILIAS\UI\Renderer $renderer=null, ?\ILIAS\UI\Factory $factory=null) |
Data Fields | |
| const | ICON_VARIANT_LONG = 0 |
| const | ICON_VARIANT_SHORT = 1 |
| const | ICON_VARIANT_SCORM = 2 |
| const | ICON_VARIANT_DEFAULT = ilLPStatusIcons::ICON_VARIANT_LONG |
Protected Member Functions | |
| buildImagePath (string $image_name) | |
Private Member Functions | |
| __construct (int $variant, \ILIAS\UI\Renderer $renderer, \ILIAS\UI\Factory $factory) | |
Private Attributes | |
| string | $image_path_in_progress = '' |
| string | $image_path_completed = '' |
| string | $image_path_not_attempted = '' |
| string | $image_path_failed = '' |
| string | $image_path_asset = '' |
| string | $image_path_running = '' |
| ILIAS UI Factory | $factory |
| ILIAS UI Renderer | $renderer |
Static Private Attributes | |
| static self | $instance_variant_long = null |
| static self | $instance_variant_short = null |
| static self | $instance_variant_scorm = null |
Caches and supplies the paths to the learning progress status images.
Definition at line 25 of file class.ilLPStatusIcons.php.
|
private |
Definition at line 80 of file class.ilLPStatusIcons.php.
References $factory, $renderer, buildImagePath(), ICON_VARIANT_LONG, ICON_VARIANT_SCORM, and ICON_VARIANT_SHORT.
Here is the call graph for this function:
|
protected |
Definition at line 116 of file class.ilLPStatusIcons.php.
References ilUtil\getImagePath().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLPStatusIcons::getIconComponent | ( | string | $path, |
| string | $alt | ||
| ) |
Definition at line 172 of file class.ilLPStatusIcons.php.
Referenced by renderIcon().
Here is the caller graph for this function:| ilLPStatusIcons::getImagePathAsset | ( | ) |
A long variant of this icon is not available.
Definition at line 144 of file class.ilLPStatusIcons.php.
References $image_path_asset.
| ilLPStatusIcons::getImagePathCompleted | ( | ) |
Definition at line 126 of file class.ilLPStatusIcons.php.
References $image_path_completed.
Referenced by getImagePathForStatus().
Here is the caller graph for this function:| ilLPStatusIcons::getImagePathFailed | ( | ) |
Definition at line 136 of file class.ilLPStatusIcons.php.
References $image_path_failed.
Referenced by getImagePathForStatus().
Here is the caller graph for this function:| ilLPStatusIcons::getImagePathForStatus | ( | int | $a_status | ) |
Definition at line 180 of file class.ilLPStatusIcons.php.
References getImagePathCompleted(), getImagePathFailed(), getImagePathInProgress(), getImagePathNotAttempted(), ilLPStatus\LP_STATUS_COMPLETED_NUM, ilLPStatus\LP_STATUS_FAILED_NUM, ilLPStatus\LP_STATUS_IN_PROGRESS_NUM, and ilLPStatus\LP_STATUS_NOT_ATTEMPTED_NUM.
Referenced by renderIconForStatus().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLPStatusIcons::getImagePathInProgress | ( | ) |
Definition at line 121 of file class.ilLPStatusIcons.php.
References $image_path_in_progress.
Referenced by getImagePathForStatus().
Here is the caller graph for this function:| ilLPStatusIcons::getImagePathNotAttempted | ( | ) |
Definition at line 131 of file class.ilLPStatusIcons.php.
References $image_path_not_attempted.
Referenced by getImagePathForStatus().
Here is the caller graph for this function:| ilLPStatusIcons::getImagePathRunning | ( | ) |
A long variant of this icon is not available.
Definition at line 155 of file class.ilLPStatusIcons.php.
References $image_path_running.
|
static |
Definition at line 48 of file class.ilLPStatusIcons.php.
References $DIC, $factory, $renderer, ICON_VARIANT_LONG, ICON_VARIANT_SCORM, and ICON_VARIANT_SHORT.
Referenced by ilLearningProgressBaseGUI\__appendLPDetails(), ILIAS\Forum\Statistics\ForumStatisticsTable\__construct(), ilLSTOCGUI\__construct(), ilLearningProgressBaseGUI\__getLegendHTML(), ilLMExplorerGUI\checkLPIcon(), ilWikiContributorsTableGUI\fillRow(), ilGroupParticipantsTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilLPProgressTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilLPObjectStatisticsLPTableGUI\getDetailItems(), ilLMTracker\getIconForLMObject(), ilExGradesTableGUI\getIconForStatus(), ILIAS\Exercise\Assignment\PropertyAndActionBuilderUI\getIconForStatus(), ilTrSummaryTableGUI\getItems(), ilObjExerciseGUI\getService(), ilDclRecordListTableGUI\getStatus(), ilMyStaffGUI\getUserLpStatusAsHtml(), ilLPObjectStatisticsLPTableGUI\init(), ilLearningProgressGUI\initCollectionManualForm(), ilCourseObjectiveListGUI\insertProgressInfo(), ilSCORMTrackingItemsTableGUI\parseValue(), ilSCORM2004TrackingItemsTableGUI\parseValue(), ilLPTableBaseGUI\parseValue(), ilLPStatus\preloadListGUIData(), ilPortfolioPageGUI\renderMyCourses(), ilLearningProgressGUI\showtlt(), ilLPStatusIconsTest\testGetInstanceForInvalidVariant(), and ilLPStatusIconsTest\testTripleton().
Here is the caller graph for this function:| ilLPStatusIcons::lookupNumStatus | ( | string | $a_status | ) |
Transforms the string constants for the status to their interger equivalent.
Definition at line 214 of file class.ilLPStatusIcons.php.
References ilLPStatus\LP_STATUS_COMPLETED, ilLPStatus\LP_STATUS_COMPLETED_NUM, ilLPStatus\LP_STATUS_FAILED, ilLPStatus\LP_STATUS_FAILED_NUM, ilLPStatus\LP_STATUS_IN_PROGRESS, ilLPStatus\LP_STATUS_IN_PROGRESS_NUM, ilLPStatus\LP_STATUS_NOT_ATTEMPTED, and ilLPStatus\LP_STATUS_NOT_ATTEMPTED_NUM.
| ilLPStatusIcons::renderIcon | ( | string | $path, |
| string | $alt | ||
| ) |
Definition at line 163 of file class.ilLPStatusIcons.php.
References getIconComponent().
Referenced by renderIconForStatus().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLPStatusIcons::renderIconForStatus | ( | int | $a_status, |
| ?ilLanguage | $a_lng = null |
||
| ) |
Returns the rendered icon with alt text.
Definition at line 203 of file class.ilLPStatusIcons.php.
References ilLearningProgressBaseGUI\_getStatusText(), getImagePathForStatus(), and renderIcon().
Here is the call graph for this function:
|
private |
Definition at line 45 of file class.ilLPStatusIcons.php.
Referenced by __construct(), and getInstance().
|
private |
Definition at line 42 of file class.ilLPStatusIcons.php.
Referenced by getImagePathAsset().
|
private |
Definition at line 37 of file class.ilLPStatusIcons.php.
Referenced by getImagePathCompleted().
|
private |
Definition at line 39 of file class.ilLPStatusIcons.php.
Referenced by getImagePathFailed().
|
private |
Definition at line 36 of file class.ilLPStatusIcons.php.
Referenced by getImagePathInProgress().
|
private |
Definition at line 38 of file class.ilLPStatusIcons.php.
Referenced by getImagePathNotAttempted().
|
private |
Definition at line 43 of file class.ilLPStatusIcons.php.
Referenced by getImagePathRunning().
|
staticprivate |
Definition at line 32 of file class.ilLPStatusIcons.php.
|
staticprivate |
Definition at line 34 of file class.ilLPStatusIcons.php.
|
staticprivate |
Definition at line 33 of file class.ilLPStatusIcons.php.
|
private |
Definition at line 46 of file class.ilLPStatusIcons.php.
Referenced by __construct(), and getInstance().
| const ilLPStatusIcons::ICON_VARIANT_DEFAULT = ilLPStatusIcons::ICON_VARIANT_LONG |
Definition at line 30 of file class.ilLPStatusIcons.php.
| const ilLPStatusIcons::ICON_VARIANT_LONG = 0 |
Definition at line 27 of file class.ilLPStatusIcons.php.
Referenced by ilLearningProgressBaseGUI\__appendLPDetails(), ILIAS\Forum\Statistics\ForumStatisticsTable\__construct(), __construct(), ilWikiContributorsTableGUI\fillRow(), ilGroupParticipantsTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilLPProgressTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilLPObjectStatisticsLPTableGUI\getDetailItems(), ilExGradesTableGUI\getIconForStatus(), getInstance(), ilObjExerciseGUI\getService(), ilDclRecordListTableGUI\getStatus(), ilMyStaffGUI\getUserLpStatusAsHtml(), ilLearningProgressGUI\initCollectionManualForm(), ilCourseObjectiveListGUI\insertProgressInfo(), ilLPStatus\preloadListGUIData(), ilPortfolioPageGUI\renderMyCourses(), ilLearningProgressGUI\showtlt(), and ilLPStatusIconsTest\testTripleton().
| const ilLPStatusIcons::ICON_VARIANT_SCORM = 2 |
Definition at line 29 of file class.ilLPStatusIcons.php.
Referenced by __construct(), getInstance(), ilSCORMTrackingItemsTableGUI\parseValue(), ilSCORM2004TrackingItemsTableGUI\parseValue(), and ilLPStatusIconsTest\testTripleton().
| const ilLPStatusIcons::ICON_VARIANT_SHORT = 1 |
Definition at line 28 of file class.ilLPStatusIcons.php.
Referenced by ilLSTOCGUI\__construct(), __construct(), ilLPListOfObjectsGUI\__listObjects(), ilLMExplorerGUI\checkLPIcon(), ilLMTracker\getIconForLMObject(), getInstance(), ilTrSummaryTableGUI\getItems(), ilLPObjectStatisticsLPTableGUI\init(), ilLPListOfObjectsGUI\showObjectSummary(), and ilLPStatusIconsTest\testTripleton().