ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ListActivitiesEntryPoint.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
31{
32 public function __construct(
33 protected Repository $repository
34 ) {
35 parent::__construct(self::class);
36 }
37
38 public function enter(): int
39 {
40 echo join("\n", array_keys(iterator_to_array($this->repository->getActivitiesByName("/.*/"))));
41 echo "\n";
42 return 0;
43 }
44}
A simple entrypoint that just says hello, for testing and documentation purpose.
enter()
Pass program execution to this entry point.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc