FacturaScripts

ApiRoot extends ApiController
in package

Table of Contents

Constants

API_VERSION  = 3
INCIDENT_EXPIRATION_TIME  = 600
IP_LIST  = 'api-ip-list'
MAX_INCIDENT_COUNT  = 5

Properties

$apiKey  : ApiKey
$request  : Request
$response  : Response
$url  : string
$custom_resources  : array<string|int, mixed>

Methods

__construct()  : mixed
addCustomResource()  : void
getCustomResources()  : array<string|int, mixed>
getPageData()  : array<string|int, mixed>
run()  : void
db()  : DataBase
exposeResources()  : void
getResourcesMap()  : array<string|int, mixed>
getUriParam()  : string
runResource()  : void

Constants

INCIDENT_EXPIRATION_TIME

public mixed INCIDENT_EXPIRATION_TIME = 600

Properties

$custom_resources

private static array<string|int, mixed> $custom_resources = ['attachedfiles', 'crearAlbaranCliente', 'crearAlbaranProveedor', 'crearFacturaCliente', 'crearFacturaProveedor', 'crearFacturaRectificativaCliente', 'crearPedidoCliente', 'crearPedidoProveedor', 'crearPresupuestoCliente', 'crearPresupuestoProveedor', 'exportarAlbaranCliente', 'exportarAlbaranProveedor', 'exportarFacturaCliente', 'exportarFacturaProveedor', 'exportarPedidoCliente', 'exportarPedidoProveedor', 'exportarPresupuestoCliente', 'exportarPresupuestoProveedor', 'pagarFacturaCliente', 'pagarFacturaProveedor', 'plugins', 'productoimagenes', 'uploadFiles']

Methods

__construct()

public __construct(string $className[, string $url = '' ]) : mixed
Parameters
$className : string
$url : string = ''

addCustomResource()

public static addCustomResource(string $name) : void
Parameters
$name : string

getCustomResources()

public static getCustomResources() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPageData()

public getPageData() : array<string|int, mixed>
Return values
array<string|int, mixed>

exposeResources()

protected exposeResources(array<string|int, mixed> &$map) : void
Parameters
$map : array<string|int, mixed>

getResourcesMap()

protected getResourcesMap() : array<string|int, mixed>
Return values
array<string|int, mixed>

getUriParam()

protected getUriParam(string $num) : string
Parameters
$num : string
Return values
string

runResource()

protected runResource() : void

        
On this page

Search results