32 lines
591 B
PHP
32 lines
591 B
PHP
|
<?php
|
||
|
|
||
|
namespace FPDAM2023\Controllers;
|
||
|
|
||
|
class Enrollments extends \AnP\Controller{
|
||
|
|
||
|
public function __construct($anp){
|
||
|
parent::__construct($anp, $this);
|
||
|
|
||
|
$this->entity = "Enrollments";
|
||
|
$this->class = get_class($this);
|
||
|
|
||
|
}
|
||
|
|
||
|
public function list(){
|
||
|
|
||
|
try{
|
||
|
$this->execute()->list();
|
||
|
}catch(\Exception $exception){
|
||
|
$this->set_traces($exception);
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
public function test(){
|
||
|
|
||
|
$this->json_response(["JOJOJO"]);
|
||
|
|
||
|
}
|
||
|
|
||
|
};
|