2024-07-17 09:31:56 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use YesWiki\Core\YesWikiAction;
|
|
|
|
use YesWiki\Bazar\Service\EntryManager;
|
2024-07-17 15:23:33 +00:00
|
|
|
use YesWiki\Bazar\Service\ListManager;
|
2024-07-18 19:18:59 +00:00
|
|
|
use YesWiki\Meeo\Service\EleveManager;
|
2024-07-17 09:31:56 +00:00
|
|
|
|
|
|
|
class ElevesAction extends YesWikiAction
|
|
|
|
{
|
|
|
|
public function formatArguments($arg)
|
|
|
|
{
|
|
|
|
return [];
|
|
|
|
}
|
|
|
|
|
|
|
|
public function run()
|
|
|
|
{
|
2024-08-02 16:53:08 +00:00
|
|
|
try {
|
|
|
|
$eleveManager = $this->getService(EleveManager::class);
|
|
|
|
return $eleveManager->view();
|
|
|
|
} catch (Exception $e) {
|
|
|
|
echo 'Exception reçue : '. $e->getMessage() ."\n";
|
|
|
|
}
|
2024-07-17 09:31:56 +00:00
|
|
|
}
|
|
|
|
}
|