Cheetah
Static Public Member Functions | Public Attributes | List of all members
FileAPI Class Reference

Static Public Member Functions

static enableCORS ($options=null)
 
static getRequestHeaders ()
 
static getFiles ()
 
static makeResponse (array $res, $jsonp=null)
 

Public Attributes

const OK = 200
 
const ERROR = 500
 

Detailed Description

Definition at line 2 of file FileAPI.class.php.

Member Function Documentation

◆ enableCORS()

static FileAPI::enableCORS (   $options = null)
static

Enable CORS – http://enable-cors.org/

Parameters
array[$options]

Definition at line 44 of file FileAPI.class.php.

◆ getFiles()

static FileAPI::getFiles ( )
static

Retrieve File List

Returns
array

Definition at line 93 of file FileAPI.class.php.

◆ getRequestHeaders()

static FileAPI::getRequestHeaders ( )
static

Request header

Returns
array

Definition at line 75 of file FileAPI.class.php.

◆ makeResponse()

static FileAPI::makeResponse ( array  $res,
  $jsonp = null 
)
static

Make server response

Parameters
array$res
string[$jsonp]

Definition at line 114 of file FileAPI.class.php.

Member Data Documentation

◆ ERROR

const FileAPI::ERROR = 500

Definition at line 4 of file FileAPI.class.php.

◆ OK

const FileAPI::OK = 200

Definition at line 3 of file FileAPI.class.php.


The documentation for this class was generated from the following file: