. */ if (! defined('BASEPATH')) exit('No direct script access allowed'); use CI3_Events as Events; class RendererLoader extends FHCAPI_Controller { /** * Object initialization */ public function __construct() { parent::__construct([ 'GetRenderers' => self::PERM_LOGGED, ]); $this->load->library('LogLib'); $this->loglib->setConfigs(array( 'classIndex' => 5, 'functionIndex' => 5, 'lineIndex' => 4, 'dbLogType' => 'API', // required 'dbExecuteUser' => 'RESTful API' )); } //------------------------------------------------------------------------------------------------------------------ // Public methods /** * fetches Stundenplan and Moodle events together * @access public * */ public function GetRenderers(){ $renderer_paths = []; Events::trigger( 'loadRenderers', function & () use (&$renderer_paths) { return $renderer_paths; } ); $this->terminateWithSuccess($renderer_paths); } }