2018-03-01 14:57:25 +00:00
|
|
|
<?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");
|
|
|
|
|
2018-03-01 15:57:44 +00:00
|
|
|
return ["data" => $repo->getStats($idForm)];
|
2018-03-01 14:57:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|