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

27 lines
350 B
PHP
Raw Normal View History

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