Documentation

CrudServiceCollection
in package

Collection of the crud service's records

Tags
author

Dodonov A.A.

Table of Contents

$service  : string
Service name or URL
$token  : string
Access token
$сollection  : array<string|int, mixed>
Collection of records
$сonnector  : CrudServiceClientInterface
Connection to the Crud service
__construct()  : mixed
Constructor
getCollection()  : array<string|int, mixed>
Method returns previosly fetched collection
getConnector()  : CrudServiceClientInterface
Method returns connector to service
newRecordsSince()  : void
Method fetches scripts, wich were created since $dateTime
setConnector()  : void
Method sets new connector
topByField()  : void
Fetching top $count records sorted by field
constructClient()  : CrudServiceClient
Method constructs connector

Properties

Methods

__construct()

Constructor

public __construct([string $service = '' ][, string $token = '' ]) : mixed
Parameters
$service : string = ''
$token : string = ''
Return values
mixed

getCollection()

Method returns previosly fetched collection

public getCollection() : array<string|int, mixed>
Return values
array<string|int, mixed>

previosly fetched collection

newRecordsSince()

Method fetches scripts, wich were created since $dateTime

public newRecordsSince(string $dateTime) : void
Parameters
$dateTime : string
Return values
void

topByField()

Fetching top $count records sorted by field

public topByField(int $count, string $field[, string $order = 'DESC' ]) : void
Parameters
$count : int

Count of records to be fetched

$field : string

Sorting field

$order : string = 'DESC'

Sorting order

Return values
void

Search results

    Яндекс.Метрика