mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 18:02:18 +00:00
Moved methods getLastStatus from Prestudent to Prestudentstatus
This commit is contained in:
@@ -63,27 +63,6 @@ class Prestudent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getLastStatus()
|
||||
{
|
||||
$prestudent_id = $this->get('prestudent_id');
|
||||
$studiensemester_kurzbz = $this->get('studiensemester_kurzbz');
|
||||
$status_kurzbz = $this->get('status_kurzbz');
|
||||
|
||||
if (isset($prestudent_id))
|
||||
{
|
||||
$result = $this->PrestudentModel->getLastStatus($prestudent_id, $studiensemester_kurzbz, $status_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
|
||||
@@ -24,8 +24,6 @@ class Prestudentstatus extends APIv1_Controller
|
||||
parent::__construct();
|
||||
// Load model PrestudentstatusModel
|
||||
$this->load->model('crm/prestudentstatus_model', 'PrestudentstatusModel');
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -110,4 +108,4 @@ class Prestudentstatus extends APIv1_Controller
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user