public function __construct() { $this->cacheDir = Koala::getenv('cache'); }
$this->responsedata = array(); $this->reponsedata[$indexname]->id = $this->rawdata['id']; if ($this->rawdata['name']) { $this->reponsedata[$indexname]->name = $this->rawdata['name']; } $this->reponsedata[$indexname]->value = strlen($this->rawdata['value']) || is_array($this->rawdata['value']) ? $this->rawdata['value'] : null; $this->reponsedata[$indexname]->type = $this->rawdata['yg_type'] ? $this->rawdata['yg_type'] : null; $this->reponsedata[$indexname]->property = $this->rawdata['yg_property'] ? $this->rawdata['yg_property'] : null; $this->reponsedata[$indexname]->yg_id = $this->rawdata['yg_id'] ? $this->rawdata['yg_id'] : null; $this->reponsedata[$indexname]->wid = $this->rawdata['wid'] ? $this->rawdata['wid'] : null; if ($this->fields) { $this->reponsedata = array_merge($this->reponsedata, $this->fields); } // NEW Parameter-API: $this->params = $this->rawdata['params']; $koala = new Koala(); if ($this->code != '') { sLog()->debug($action); // Create AJAX-Responder Object $koala->setResponderData($this->reponsedata); $koala->setResponderHandler($this->handler); require_once $this->approot . $this->code; // Initiate sending of data } else { // Throw error when no matching code found... $koala->log('No matching method found for "' . strtoupper($this->handler) . '"!'); $koala->log('XX $this->id: ' . $this->id); $koala->log('XX $this->name: ' . $this->name); $koala->log('XX $this->value: ' . $this->value); $koala->log('XX $this->event: ' . $this->event); $koala->log('XX $this->handler: ' . $this->handler);