mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
43 lines
841 B
PHP
43 lines
841 B
PHP
<?php
|
|
|
|
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
use CI3_Events as Events;
|
|
|
|
class Config extends FHC_Controller
|
|
{
|
|
public function __construct()
|
|
{
|
|
// TODO(chris): access!
|
|
parent::__construct();
|
|
}
|
|
|
|
public function student()
|
|
{
|
|
$result = [];
|
|
$result['details'] = [
|
|
'title' => 'Details',
|
|
'component' => './Stv/Studentenverwaltung/Details/Details.js'
|
|
];
|
|
$result['kontakt'] = [
|
|
'title' => 'Kontakt',
|
|
'component' => './Stv/Studentenverwaltung/Details/Kontakt.js'
|
|
];
|
|
$result['notizen'] = [
|
|
'title' => 'Notizen',
|
|
'component' => './Stv/Studentenverwaltung/Details/Notizen.js'
|
|
];
|
|
|
|
Events::trigger('stv_conf_student', function & () use (&$result) {
|
|
return $result;
|
|
});
|
|
|
|
$this->outputJsonSuccess($result);
|
|
}
|
|
|
|
public function students()
|
|
{
|
|
$this->outputJsonSuccess([]);
|
|
}
|
|
}
|