ynh_extension_meeo/actions/ElevesAction.php

24 lines
501 B
PHP
Raw Permalink Normal View History

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;
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
}
}