public function process($filepath) { $jsonString = file_get_contents($filepath); $jsonArray = json_decode($jsonString, true); $import = new AviatorsUtilsTOImport(); $messages = $import->import($jsonArray); return $messages; }
/** * Simple Widget Logic Import Page */ function aviators_utils_to_import_page() { $to = new AviatorsUtilsTOImport(); $to->render(); }