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

27 lines
361 B
PHP

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