HttpSourceConditioniAmExistsANDValid

Extends \HttpSourceCondition

HttpSourceConditioniAmExistsANDValid

package

HttpSourceTest

subpackage

Config

Methods

Constructor

__construct(\HttpSourceConfigFactory $ConfigFactory) 
inherited

Arguments

$ConfigFactory

\HttpSourceConfigFactory

Config factory instance

Typecast to string

__toString() : string
inherited

Response

string

Sets or gets condition default value

defaults(mixed $value = null) : \HttpSourceCondition
inherited

Arguments

$value

mixed

Response

\HttpSourceCondition

Sets or gets should we extract value or not

extract(boolean $value = null) : \HttpSourceCondition
inherited

Arguments

$value

boolean

Response

\HttpSourceCondition

Retunrn config factory

getConfigFactory() : \HttpSourceConfigFactory
inherited

Returns all data types

getDataTypes() : array
inherited static

Response

array

Returns all send in types

getSendInTypes() : array
inherited static

Response

array

Return current key value

key() : string
inherited

Response

string

Set condition as primary key

keyPrimary() : \HttpSourceCondition
inherited

Sets or gets condition length

length(integer $length = null) : \HttpSourceCondition
inherited

Arguments

$length

integer

Response

\HttpSourceCondition

Get or set callback and new name

map(callable $callback = null, \= $map_to_name) : \HttpSourceCondition
inherited

Arguments

$callback

callable

$map_to_name

\=

Response

\HttpSourceCondition

Set or get callback

map(callable $callback = null) : \HttpSourceEndpointItem
inherited

Arguments

$callback

callable

Response

\HttpSourceEndpointItem

Get mapToName or name

mapToName() 
inherited

True if condition must be in body or query depends on current endpoint

mustSendInAny() : boolean
inherited

Response

boolean

True if condition must be in body

mustSendInBody() : boolean
inherited

Response

boolean

True if condition must be in query

mustSendInQuery() : boolean
inherited

Response

boolean

True if condition must be virtial

mustSendInVirtual() : boolean
inherited

Response

boolean

Set or get field name

name(\= $name) : \HttpSourceCondition
inherited

Arguments

$name

\=

Response

\HttpSourceCondition

Set or get field name

name(string $name = null) : \HttpSourceField
inherited
throws

Arguments

$name

string

Response

\HttpSourceField

Mark condition as required or not If $null = null returns current value

null(boolean $null = null) : \HttpSourceCondition
inherited

Arguments

$null

boolean

Response

\HttpSourceCondition

Mark condition as required

required() : \HttpSourceCondition
inherited

Set force send in body or query, depends on current endpoint

sendInAny() : \HttpSourceCondition
inherited

Set force send in body

sendInBody() : \HttpSourceCondition
inherited

Set force send in query

sendInQuery() : \HttpSourceCondition
inherited

Set condition force to virtual

sendInVirtual() : \HttpSourceCondition
inherited

Returns condition type

type() : string
inherited

Response

string

Set type to bool

typeBool() : \HttpSourceCondition
inherited

Set type to bool

typeBoolean() : \HttpSourceCondition
inherited

Set type to float

typeFloat() : \HttpSourceCondition
inherited

Set type to int

typeInt() : \HttpSourceCondition
inherited

Set type to int

typeInteger() : \HttpSourceCondition
inherited

Set type to string

typeString() : \HttpSourceCondition
inherited

Set type to text

typeText() : \HttpSourceCondition
inherited

Constants

Send in constants

SEND_IN_ANY
inherited

SEND_IN_QUERY

SEND_IN_QUERY
inherited

SEND_IN_BODY

SEND_IN_BODY
inherited

SEND_IN_VIRTUAL

SEND_IN_VIRTUAL
inherited

Available types

TYPE_INT
inherited

TYPE_FLOAT

TYPE_FLOAT
inherited

TYPE_BOOL

TYPE_BOOL
inherited

TYPE_STRING

TYPE_STRING
inherited

TYPE_TEXT

TYPE_TEXT
inherited

Available keys

KEY_PRIMARY
inherited

Properties

Condition type

_type : string
inherited
var

Type(s)

string

True if condition required, false otherwise Used to describe model and build request

_null : boolean
inherited
var

Type(s)

boolean

Max length of conditions Used to describe model

_length : integer
inherited
var

Type(s)

integer

Key type, actually supports only 'primary' Used to describe model

_key : string
inherited
var

Type(s)

string

Default condition value Used to describe model and build request

_default : mixed
inherited
var

Type(s)

mixed

Extract values

_extract : boolean
inherited
var

Type(s)

boolean

Sepecified where to place condition - in body, in query or any - depends on current endpoint

_sendIn : string
inherited
var

Type(s)

string

Field name

_name : string
inherited
var

Type(s)

string

New field name

_mapToName : string
inherited
var

Type(s)

string

Holds callback

_map : callable
inherited
var

Type(s)

callable

Config factory instance

_ConfigFactory : \HttpSourceConfigFactory
inherited