27 lines
360 B
PHP
27 lines
360 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->getStat($idForm)];
|
||
|
}
|
||
|
|
||
|
}
|