This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Restserver\Libraries; | |
use Exception; | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
/** | |
* Format class | |
* Help convert between various formats such as XML, JSON, CSV, etc. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
/* | |
|-------------------------------------------------------------------------- | |
| HTTP protocol | |
|-------------------------------------------------------------------------- | |
| | |
| Set to force the use of HTTPS for REST API calls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Restserver\Libraries; | |
use CI_Controller; | |
use Exception; | |
use stdClass; | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
include './vendor/autoload.php'; | |
class File_parser { | |
// Automatically detects file formate and parse the text | |
public function parseText($file) |