2018-02-27 16:22:08 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Created by PhpStorm.
|
|
|
|
* User: lucas
|
|
|
|
* Date: 27/02/18
|
|
|
|
* Time: 16:19
|
|
|
|
*/
|
|
|
|
|
2018-03-02 08:27:58 +00:00
|
|
|
namespace api\module\professor;
|
2018-02-27 16:22:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
use database\core\Repo;
|
2018-02-27 19:41:36 +00:00
|
|
|
use database\repo\professor;
|
2018-02-27 16:22:08 +00:00
|
|
|
|
2018-03-02 08:27:58 +00:00
|
|
|
class statsController{
|
2018-02-27 16:22:08 +00:00
|
|
|
public static function get($args){
|
|
|
|
$idProf = 0;
|
|
|
|
extract($args);
|
|
|
|
|
|
|
|
//get data from the database
|
2018-02-27 19:41:36 +00:00
|
|
|
|
|
|
|
/** @var professor $profRepo */
|
|
|
|
$profRepo = Repo::getRepo("professor");
|
2018-03-06 09:53:02 +00:00
|
|
|
$VH = $profRepo->getWithVH($idProf);
|
2018-02-27 16:22:08 +00:00
|
|
|
|
|
|
|
return ["data" => $VH];
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|