Example #1
0
 public function init()
 {
     // check if SimpleXML available
     if (!function_exists('simplexml_load_file')) {
         throw new \RuntimeException('SimpleXML not available.');
     }
     return parent::init();
 }
Example #2
0
 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();
 }
Example #3
0
 public function storage(\Franklin\test\Test $Test)
 {
     $filename = FRANKLIN_ROOT . '/data/' . $Test->uniqueId() . '.csv';
     $Storage = new \Franklin\storage\CSV($filename);
     return $Storage;
 }