public function init() { // check if SimpleXML available if (!function_exists('simplexml_load_file')) { throw new \RuntimeException('SimpleXML not available.'); } return parent::init(); }
public function init() { if (!function_exists('simplexml_load_file')) { throw new \RuntimeException('SimpleXML not available.'); } if (!class_exists('mite')) { require FRANKLIN_ROOT . '/vendor/thomasklein/mite/mite.php'; } if (empty($this->api)) { $this->api = \mite::getInstance(); $this->api->init($this->config->api_key, $this->config->subdomain, 'franklin/0.3'); } return parent::init(); }
public function storage(\Franklin\test\Test $Test) { $filename = FRANKLIN_ROOT . '/data/' . $Test->uniqueId() . '.csv'; $Storage = new \Franklin\storage\CSV($filename); return $Storage; }