load->model('system/Issue_model', 'IssueModel'); } /** * Initializes issue resolution. */ public function run() { // initialize librariy with provided fehlercodes $this->load->library( 'issues/PlausicheckResolverLib', [ 'fehlercodes' => $this->_fehlercodes ] ); $this->logInfo("Issue resolve job started"); // resolve the issues $result = $this->plausicheckresolverlib->resolvePlausicheckIssues(); // log if error, or log info if inserted new issue foreach ($result->errors as $error) $this->logError($error); foreach ($result->infos as $info) $this->logInfo($info); $this->logInfo("Issue resolve job ended"); } }