forked from ILIAS-eLearning/ILIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
141 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
components/ILIAS/UI/src/examples/Symbol/Glyph/Check/check.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* This file is part of ILIAS, a powerful learning management system | ||
* published by ILIAS open source e-Learning e.V. | ||
* | ||
* ILIAS is licensed with the GPL-3.0, | ||
* see https://www.gnu.org/licenses/gpl-3.0.en.html | ||
* You should have received a copy of said license along with the | ||
* source code, too. | ||
* | ||
* If this is not the case or you just want to try ILIAS, you'll find | ||
* us at: | ||
* https://www.ilias.de | ||
* https://github.com/ILIAS-eLearning | ||
* | ||
*********************************************************************/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace ILIAS\UI\examples\Symbol\Glyph\Check; | ||
|
||
function check() | ||
{ | ||
global $DIC; | ||
$f = $DIC->ui()->factory(); | ||
$renderer = $DIC->ui()->renderer(); | ||
|
||
$glyph = $f->symbol()->glyph()->check(); | ||
|
||
//Showcase the various states of this Glyph | ||
$list = $f->listing()->descriptive([ | ||
"Active" => $glyph, | ||
"Inactive" => $glyph->withUnavailableAction(), | ||
"Highlighted" => $glyph->withHighlight() | ||
]); | ||
|
||
return $renderer->render($list); | ||
} |
38 changes: 38 additions & 0 deletions
38
components/ILIAS/UI/src/examples/Symbol/Glyph/Uncheck/uncheck.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* This file is part of ILIAS, a powerful learning management system | ||
* published by ILIAS open source e-Learning e.V. | ||
* | ||
* ILIAS is licensed with the GPL-3.0, | ||
* see https://www.gnu.org/licenses/gpl-3.0.en.html | ||
* You should have received a copy of said license along with the | ||
* source code, too. | ||
* | ||
* If this is not the case or you just want to try ILIAS, you'll find | ||
* us at: | ||
* https://www.ilias.de | ||
* https://github.com/ILIAS-eLearning | ||
* | ||
*********************************************************************/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace ILIAS\UI\examples\Symbol\Glyph\Uncheck; | ||
|
||
function uncheck() | ||
{ | ||
global $DIC; | ||
$f = $DIC->ui()->factory(); | ||
$renderer = $DIC->ui()->renderer(); | ||
|
||
$glyph = $f->symbol()->glyph()->uncheck(); | ||
|
||
//Showcase the various states of this Glyph | ||
$list = $f->listing()->descriptive([ | ||
"Active" => $glyph, | ||
"Inactive" => $glyph->withUnavailableAction(), | ||
"Highlighted" => $glyph->withHighlight() | ||
]); | ||
|
||
return $renderer->render($list); | ||
} |