mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 16:32:20 +00:00
765b26a439
- added issue inserts (fehlerupdate.php), included them in checksystem - added getAufenthaltsdauer method to Bisio_model.php - Add column parameterFuerBehebung to system.tbl_issue
32 lines
862 B
PHP
32 lines
862 B
PHP
<?php
|
|
|
|
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/**
|
|
* Bisio Zweck does not exist
|
|
*/
|
|
class CORE_INOUT_0001 implements IIssueResolvedChecker
|
|
{
|
|
public function checkIfIssueIsResolved($params)
|
|
{
|
|
if (!isset($params['bisio_id']) || !is_numeric($params['bisio_id']))
|
|
return error('Bisio Id missing');
|
|
|
|
$this->_ci =& get_instance(); // get code igniter instance
|
|
|
|
$this->_ci->load->model('codex/Bisiozweck_model', 'BisiozweckModel');
|
|
|
|
// get all bisio Zwecke
|
|
$this->_ci->BisiozweckModel->addSelect('1');
|
|
$bisiozweckRes = $this->_ci->BisiozweckModel->loadWhere(array('bisio_id' => $params['bisio_id']));
|
|
|
|
if (isError($bisiozweckRes))
|
|
return $bisiozweckRes;
|
|
|
|
if (hasData($bisiozweckRes))
|
|
return success(true); // resolved if bisio Zweck exists
|
|
else
|
|
return success(false); // not resolved if no bisio zweck
|
|
}
|
|
}
|