ptut-vhost/build/api/module/formationController.php

27 lines
377 B
PHP
Raw Normal View History

<?php
/**
* Created by PhpStorm.
* User: lucas
* Date: 27/02/18
* Time: 17:31
*/
namespace api\module;
use database\core\Repo;
class formationController
{
public static function get($args){
$form_id = null;
extract($args);
/** @var \database\repo\formation $repo */
$repo = Repo::getRepo("formation");
return ['formations' => $repo->get($form_id)];
}
}