Properties

$debug

$debug : boolean

Type

boolean — the debug parameter

Methods

__construct()

__construct(  $table, boolean  $debug = false) 

Soap constructor.

Parameters

$table
boolean $debug

__callStatic()

__callStatic(  $method,   $args) 

Handle static method calls

Parameters

$method
$args

table()

table(  $name) : \ACFBentveld\Soap\Soap

Set the table

Parameters

$name

Returns

\ACFBentveld\Soap\Soap

__call()

__call(  $method,   $args) : mixed

Capture any function calls to a unknown function of \ACFBentveld\Soap and handle them in the \ACFBentveld\Builder instance

Parameters

$method
$args

Returns

mixed

__get()

__get(  $name) 

Handle unknown properties

Parameters

$name

get()

get() : \Illuminate\Database\Eloquent\Collection

Create request to the base Reset xml elements and return as collection object

Returns

\Illuminate\Database\Eloquent\Collection

SetSID()

SetSID() : mixed

Set the SID

Returns

mixed

update()

update(mixed  $fields) : boolean

Update given values

Parameters

mixed $fields

Returns

boolean

create()

create(mixed  $inserts) : boolean

Insert function.

Parameters

mixed $inserts

Returns

boolean

call()

call(string  $uri, string  $action, array  $params) : mixed

Call a Soap function with the given parameters

Parameters

string $uri

The uri to connect to

string $action

The action to execute

array $params

The parameters to send with the request

Returns

mixed

company()

company(string  $company) : \ACFBentveld\Soap\Builder

Set the company

Parameters

string $company

Returns

\ACFBentveld\Soap\Builder

makeUpdateQuery()

makeUpdateQuery(string  $sid, array  $fields) : array

Make the update query

Parameters

string $sid
array $fields

Returns

array

makeCreateQuery()

makeCreateQuery(string  $sid, array  $inserts) : array

Make the create query

Parameters

string $sid
array $inserts

Returns

array

makeGetQuery()

makeGetQuery(string  $sid) : array

Make the get query

Parameters

string $sid

Returns

array

getTable()

getTable() : string

get the table

Returns

string

setTable()

setTable(string  $name) : string

Set the table

Parameters

string $name

Returns

string

whereIn()

whereIn(string  $key, array  $values) : \ACFBentveld\Soap\Builder

WhereIn Filter

Parameters

string $key
array $values

Returns

\ACFBentveld\Soap\Builder

where()

where(string|\Closure  $key, string  $entry1, string  $entry2) : \ACFBentveld\Soap\Builder

where Filter

Parameters

string|\Closure $key
string $entry1
string $entry2

Returns

\ACFBentveld\Soap\Builder

orWhere()

orWhere(string|\Closure  $key, string  $entry1, string  $entry2) : \ACFBentveld\Soap\Builder

orWhere Filter

Parameters

string|\Closure $key
string $entry1
string $entry2

Returns

\ACFBentveld\Soap\Builder

whereMatches()

whereMatches(string  $key, string  $value) : \ACFBentveld\Soap\Builder

whereMatches Filter

Parameters

string $key
string $value

Returns

\ACFBentveld\Soap\Builder

hasWhere()

hasWhere() : boolean

hasWhere helper

Returns

boolean

date()

date(string  $date) : \ACFBentveld\Soap\Builder

set the date

Parameters

string $date

Returns

\ACFBentveld\Soap\Builder

debug()

debug(boolean  $set) : \ACFBentveld\Soap\Builder

set debug

Parameters

boolean $set

Returns

\ACFBentveld\Soap\Builder

description()

description(string  $description) : \ACFBentveld\Soap\Builder

set the description

Parameters

string $description

Returns

\ACFBentveld\Soap\Builder

docType()

docType(string  $type) : \ACFBentveld\Soap\Builder

set the type

Parameters

string $type

Returns

\ACFBentveld\Soap\Builder

params()

params(array  $fields) : \ACFBentveld\Soap\Builder

set the params

Parameters

array $fields

Returns

\ACFBentveld\Soap\Builder

connect()

connect(string  $uri) : \SoapClient

Connect to the given uri

Parameters

string $uri

Returns

\SoapClient

execute()

execute(string  $client, string  $action, array  $params) : mixed

Execute a Soap call

Parameters

string $client

SoapClient

string $action

action to execute

array $params

parameters to use

Returns

mixed

xml2array()

xml2array(mixed  $xml) : mixed

XML object to Collection object

Parameters

mixed $xml

Returns

mixed

arrayToObject()

arrayToObject(mixed  $conArray) : \stdClass

Convert array to object recursive

Parameters

mixed $conArray

Returns

\stdClass

buildCollection()

buildCollection(mixed  $items) : mixed

Create collection

Parameters

mixed $items

Returns

mixed