ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ListActivitiesEntryPoint.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
30 class ListActivitiesEntryPoint extends EntryPoint\Base
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.
repository()
description: > Example for rendering a repository card
Definition: repository.php:33
enter()
Pass program execution to this entry point.
__construct(Container $dic, ilPlugin $plugin)