Properties

$where

$where : string

Type

string — Where string for the query

$orWhere

$orWhere : string

Type

string — orWhere string for the query

$table

$table : string

Type

string — the table for the query

$param

$param : array|null

Type

array|null — the params for the query

$date

$date : string

Type

string — the date for the query

$type

$type : string

Type

string — the type for the query

$company

$company : string

Type

string — the company for the query

$description

$description : string

Type

string — the description for tje query

$debug

$debug : boolean

Type

boolean — the debug parameter for the query

$classInstance

$classInstance : \ACFBentveld\Soap\

Type

\ACFBentveld\Soap\ — the Soap instance

$callMethods

$callMethods : array

Type

array — a list of methods in \ACFBentveld\Soap\ which can be accessed from \ACFBentveld\Soap\Builder

Methods

__construct()

__construct(\ACFBentveld\Soap\  $instance) 

Builder constructor.

Parameters

\ACFBentveld\Soap\ $instance

soap instance

company()

company(string  $company) : $this

Set the company

Parameters

string $company

Returns

$this

__call()

__call(  $name,   $arguments) : mixed

Handle the get, update, create and call methods

Parameters

$name
$arguments

Returns

mixed

makeUpdateQuery()

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

Builds the Update query

Parameters

string $sid
array $fields

Returns

array

makeCreateQuery()

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

Builds the Create query

Parameters

string $sid
array $inserts

Returns

array

makeGetQuery()

makeGetQuery(string  $sid) : array

Builds the Get query

Parameters

string $sid

Returns

array

getTable()

getTable() : string

Gets the table

Returns

string

setTable()

setTable(string  $name) : mixed

Sets the table

Parameters

string $name

Returns

mixed —

string

whereIn()

whereIn(mixed  $key, array  $values) : $this

Add a whereIn filter to the query

Parameters

mixed $key
array $values

Returns

$this

where()

where(string|\Closure  $key, string  $entry1 = null, string  $entry2 = false) : $this

Add a where filter to the query

Parameters

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

Returns

$this

orWhere()

orWhere(string|\Closure  $key, string  $entry1 = null, string  $entry2 = false) : $this

Add a orWhere filter to the query

Parameters

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

Returns

$this

whereMatches()

whereMatches(mixed  $key, mixed  $value) : $this

Adds a MATCHES filter to the query

Parameters

mixed $key
mixed $value

Returns

$this

hasWhere()

hasWhere() : boolean

Returns true if the query contains a where statement

Returns

boolean

date()

date(mixed  $date) : $this

Sets the date

Parameters

mixed $date

Returns

$this

debug()

debug(boolean  $set) : $this

Sets debug

Parameters

boolean $set

Returns

$this

description()

description(string  $description) : $this

Set the description

Parameters

string $description

Returns

$this

docType()

docType(string  $type) : $this

Set the type

Parameters

string $type

Returns

$this

params()

params(mixed  $fields) : $this

Set the parameters

Parameters

mixed $fields

Returns

$this

get()

get() : mixed

Perform a GET query

Returns

mixed

create()

create(array  $inserts) : mixed

Perform a create query with the given inserts

Parameters

array $inserts

Returns

mixed

update()

update(array  $fields) : mixed

Perform a update query with the given fields

Parameters

array $fields

Returns

mixed

call()

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

Perform a custom query

Parameters

string $uri
string $action
array $params

Returns

mixed

addNestedWhere()

addNestedWhere(mixed  $query, string  $operator = 'AND') : $this

Adds a nested where to the query

Parameters

mixed $query
string $operator

Returns

$this