Properties

$url

$url : 

Url to call

Type

$login

$login : 

Userid for the header

Type

$password

$password : 

Password for the header

Type

$chiamante

$chiamante : 

Who is calling

Type

$json

$json : 

Here you can set your json

Type

$tipoChiamata

$tipoChiamata : 

http verrb

Type

$controlSuccess

$controlSuccess : 

Contain the information if needs to control success field or not in case it doesn't exist

Type

$httpcode

$httpcode : 

Contains the httpcode received from the rest call

Type

$nomeCampoMessage

$nomeCampoMessage : string

This variable contain the name of the field containing message information from request

Type

string

$nomeCampoSuccess

$nomeCampoSuccess : string

This variable contain the name of the field containing the result of the request

Type

string

Methods

chiamataRestDecodificata()

chiamataRestDecodificata() : array

Questo metodo effettua una chiamata rest con decodifica in output sotto autenticazione all'url passato, restituisce un array decodificato dal json di risposta, controlla anche se c'è stato un errore logico ed in caso solleva un'eccezione Se viene passato un tipo chiamata questo può assumere i seguenti valori GET POST PUT DELETE

This metod make a rest call and return an array, http verb permits are: GET POST PUT DELETE

Throws

\Exception

Returns

array

chiamataRest()

chiamataRest() : mixed|string

Questo metodo effettua una chiamata rest sotto autenticazione all'url passato, restituisce un array decodificato dal json di risposta, controlla anche se c'è stato un errore logico ed in caso solleva un'eccezione Se viene passato un tipo chiamata questo può assumere i seguenti valori GET POST PUT

This metod make a rest call and return a string containing the json received, http verb permits are: GET POST PUT DELETE

Throws

\Exception

Returns

mixed|string

getUrl()

getUrl() : string

get url

Returns

string

setUrl()

setUrl(string  $url) 

set url

Parameters

string $url

getLogin()

getLogin() : string

get login

Returns

string

setLogin()

setLogin(string  $login) 

set login

Parameters

string $login

getPassword()

getPassword() : string

get password

Returns

string

setPassword()

setPassword(string  $password) 

set password

Parameters

string $password

getChiamante()

getChiamante() : string

get caller

Returns

string

setChiamante()

setChiamante(string  $chiamante) 

set caller

Parameters

string $chiamante

getJson()

getJson() : string

get json

Returns

string

setJson()

setJson(string  $json) 

set json

Parameters

string $json

getTipoChiamata()

getTipoChiamata() : string

get httpverb

Returns

string

setTipoChiamata()

setTipoChiamata(string  $tipoChiamata) 

set httpverb

Parameters

string $tipoChiamata

getControlSuccess()

getControlSuccess() : boolean

get if control succes field

Returns

boolean

setControlSuccess()

setControlSuccess(boolean  $controlSuccess) 

set if control succes field

Parameters

boolean $controlSuccess

getHttpcode()

getHttpcode() : integer

return httpcode of last request

Returns

integer

getNomeCampoMessage()

getNomeCampoMessage() : string

get value of field nomeCampoMessage

Returns

string

setNomeCampoMessage()

setNomeCampoMessage(string  $nomeCampoMessage) 

set value of field nomeCampoMessage

Parameters

string $nomeCampoMessage

getNomeCampoSuccess()

getNomeCampoSuccess() : string

get value of field nomeCampoSuccess

Returns

string

setNomeCampoSuccess()

setNomeCampoSuccess(string  $nomeCampoSuccess) 

set value of field nomeCampoSuccess

Parameters

string $nomeCampoSuccess