mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
30 lines
777 B
PHP
30 lines
777 B
PHP
<?php
|
|
|
|
/**
|
|
* class defining ressources and method to use for plausicheck issue producer
|
|
*/
|
|
abstract class PlausiChecker
|
|
{
|
|
protected $_ci; // code igniter instance
|
|
protected $_config; // configuration parameters for this plausicheck
|
|
protected $_db; // database for queries
|
|
|
|
public function __construct($configurationParams = null)
|
|
{
|
|
$this->_ci =& get_instance(); // get code igniter instance
|
|
|
|
// set configuration
|
|
$this->_config = $configurationParams;
|
|
|
|
// get database for queries
|
|
$this->_db = new DB_Model();
|
|
}
|
|
|
|
/**
|
|
* Executes a plausi check.
|
|
* @param $paramsForChecking array parameters needed for executing the check
|
|
* @return array with objects which failed the plausi check
|
|
*/
|
|
abstract public function executePlausiCheck($paramsForChecking);
|
|
}
|