2018-03-01 15:57:44 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Created by PhpStorm.
|
|
|
|
* User: lucas
|
|
|
|
* Date: 01/03/18
|
|
|
|
* Time: 16:43
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace api\module;
|
|
|
|
|
|
|
|
|
|
|
|
use database\core\Repo;
|
|
|
|
|
2018-03-02 08:27:58 +00:00
|
|
|
class categoryController
|
2018-03-01 15:57:44 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
public function get($args){
|
|
|
|
$idCat = 0;
|
|
|
|
extract($args);
|
|
|
|
|
|
|
|
/** @var \database\repo\formation $repo */
|
|
|
|
$repo = Repo::getRepo("category");
|
|
|
|
|
|
|
|
return ["data" => $repo->getStats($idCat)];
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|