mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Merge branch 'ci' of https://github.com/FH-Complete/FHC-Core into ci
This commit is contained in:
@@ -6,6 +6,7 @@ $config['fhc_version'] = '3.2';
|
||||
|
||||
$config['fhc_acl'] = array
|
||||
(
|
||||
'bis.tbl_bundesland' => 'basis/nation',
|
||||
'bis.tbl_nation' => 'basis/nation',
|
||||
'bis.tbl_lgartcode' => 'basis/lgartcode',
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-API
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016, fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link http://fhcomplete.org
|
||||
* @since Version 1.0
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Bundesland extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Course API constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// Load model PersonModel
|
||||
$this->load->model('codex/bundesland_model', 'BundeslandModel');
|
||||
// Load set the uid of the model to let to check the permissions
|
||||
$this->BundeslandModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
public function getAll()
|
||||
{
|
||||
$result = $this->BundeslandModel->loadWhole();
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user