mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
4cc83999ed
- Moved class DB_Model from FHC_Model.php to DB_Model.php - load method of class person (person.class.php) now is calling getPerson method of the class Person_model - getAllForBewerbung method of class studiengang (studiengang.class.php) now is calling getAllForBewerbung method of the class Studiengang_model - getStudienplaene method of class studienplan (studienplan.class.php) now is calling getStudienplaene method of the class Studienplan_model
46 lines
990 B
PHP
46 lines
990 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class FHC_Model extends CI_Model
|
|
{
|
|
//protected errormsg;
|
|
function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->load->helper('language');
|
|
$this->load->helper('fhc_db_acl');
|
|
$this->lang->load('fhcomplete');
|
|
//$this->load->library('FHC_DB_ACL');
|
|
}
|
|
|
|
/** ---------------------------------------------------------------
|
|
* Success
|
|
*
|
|
* @param mixed $retval
|
|
* @return array
|
|
*/
|
|
protected function _success($retval = '', $message = FHC_SUCCESS)
|
|
{
|
|
return array(
|
|
'err' => 0,
|
|
'code' => FHC_SUCCESS,
|
|
'msg' => lang('fhc_' . $message),
|
|
'retval' => $retval
|
|
);
|
|
}
|
|
|
|
/** ---------------------------------------------------------------
|
|
* General Error
|
|
*
|
|
* @return array
|
|
*/
|
|
protected function _general_error($retval = '', $message = FHC_ERR_GENERAL)
|
|
{
|
|
return array(
|
|
'err' => 1,
|
|
'code' => FHC_ERR_GENERAL,
|
|
'msg' => lang('fhc_' . $message),
|
|
'retval' => $retval
|
|
);
|
|
}
|
|
} |