23 lines
511 B
PHP
23 lines
511 B
PHP
|
<?php
|
||
|
|
||
|
use YesWiki\Core\YesWikiAction;
|
||
|
use YesWiki\Bazar\Service\EntryManager;
|
||
|
|
||
|
class ElevesAction extends YesWikiAction
|
||
|
{
|
||
|
public function formatArguments($arg)
|
||
|
{
|
||
|
return [];
|
||
|
}
|
||
|
|
||
|
public function run()
|
||
|
{
|
||
|
$meeo_config = $this->params->get('meeo');
|
||
|
$formId = $meeo_config['elevesFormId'];
|
||
|
|
||
|
$entryManager = $this->getService(EntryManager::class);
|
||
|
$eleves = $entryManager->search(['formsIds' => $formId]);
|
||
|
|
||
|
return $this->render('@meeo/edu_eleves.twig', ['eleves' => $eleves]);
|
||
|
}
|
||
|
}
|