SMSFlySource

Extends \HttpSource

SMSFlySource

package

SMSFlySource

subpackage

Model.Datasource.Http

Methods

Constructor

__construct(array $config = array(), \HttpSourceConnection $Connection = null) 
throws

Arguments

$config

array

$Connection

\HttpSourceConnection

{@inheritdoc}

_extractResult(\Model $model, array $result, string $requestMethod, boolean $force = true) : array

Arguments

$model

\Model

$result

array

$requestMethod

string

$force

boolean

Response

array

Sends HttpSocket requests. Builds your uri and formats the response too.

request(\Model $model = null, mixed $requestData = null, string $requestMethod = \HttpSource::METHOD_READ) : array|false

Arguments

$model

\Model

Model object

$requestData

mixed

Array of request or string uri

$requestMethod

string

read, create, update, delete

Response

array|false

$response

Constants

Http methods constants

HTTP_METHOD_READ

HTTP_METHOD_CREATE

HTTP_METHOD_CREATE

HTTP_METHOD_UPDATE

HTTP_METHOD_UPDATE

HTTP_METHOD_DELETE

HTTP_METHOD_DELETE

HTTP_METHOD_CHECK

HTTP_METHOD_CHECK

Properties

The description of this data source

description : string
var

Type(s)

string