mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 18:02:18 +00:00
Fixed models
This commit is contained in:
@@ -23,17 +23,17 @@ class Nation extends APIv1_Controller
|
||||
{
|
||||
parent::__construct(array('Nation' => 'basis/nation:r', 'All' => 'basis/nation:r'));
|
||||
// Load model NationModel
|
||||
$this->load->model('codex/nation_model', 'NationModel');
|
||||
$this->load->model('codex/Nation_model', 'NationModel');
|
||||
}
|
||||
|
||||
|
||||
public function getNation()
|
||||
{
|
||||
$nation_code = $this->get("nation_code");
|
||||
|
||||
|
||||
if (isset($nation_code))
|
||||
{
|
||||
$result = $this->NationModel->loadWhere(array('nation_code' => $nation_code));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -41,7 +41,7 @@ class Nation extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function getAll()
|
||||
{
|
||||
if (!$this->get('orderEnglish'))
|
||||
@@ -52,7 +52,7 @@ class Nation extends APIv1_Controller
|
||||
{
|
||||
$result = $this->NationModel->addOrder('engltext');
|
||||
}
|
||||
|
||||
|
||||
if (isSuccess($result))
|
||||
{
|
||||
if ($this->get('ohnesperre'))
|
||||
@@ -64,7 +64,7 @@ class Nation extends APIv1_Controller
|
||||
$result = $this->NationModel->load();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ class Zgv extends APIv1_Controller
|
||||
{
|
||||
parent::__construct(array('Zgv' => 'basis/zgv:rw'));
|
||||
// Load model ZgvModel
|
||||
$this->load->model('codex/zgv_model', 'ZgvModel');
|
||||
$this->load->model('codex/Zgv_model', 'ZgvModel');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -30,7 +30,7 @@ class Bewerbungstermine extends APIv1_Controller
|
||||
)
|
||||
);
|
||||
// Load model BewerbungstermineModel
|
||||
$this->load->model('crm/bewerbungstermine_model', 'BewerbungstermineModel');
|
||||
$this->load->model('crm/Bewerbungstermine_model', 'BewerbungstermineModel');
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ class Dokumentprestudent extends APIv1_Controller
|
||||
)
|
||||
);
|
||||
// Load model DokumentprestudentModel
|
||||
$this->load->model('crm/dokumentprestudent_model', 'DokumentprestudentModel');
|
||||
$this->load->model('crm/Dokumentprestudent_model', 'DokumentprestudentModel');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,7 +23,7 @@ class Notizzuordnung extends APIv1_Controller
|
||||
{
|
||||
parent::__construct(array('Notizzuordnung' => 'basis/notizzuordnung:rw'));
|
||||
// Load model NotizzuordnungModel
|
||||
$this->load->model('person/notizzuordnung_model', 'NotizzuordnungModel');
|
||||
$this->load->model('person/Notizzuordnung_model', 'NotizzuordnungModel');
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user