Backend\Widgets\Table\ClientMemoryDataSource

Source: ~/modules/backend/widgets/table/ClientMemoryDataSource.php

Extends:

The client-memory data source for the Table widget.

Protected properties

protected array $data

Keeps the data source data.

Show inherited protected properties

Inherited protected properties

Public methods

public void getAllRecords()

Returns all records in the data source. This method is specific only for the client memory data sources.

public integer getCount()

Returns a total number of records in the data source.

public array getRecords(integer $offset, integer $count)

Return records from the data source.

Parameters
  • integer $offset - Specifies the offset of the first record to return, zero-based.
  • integer $count - Specifies the number of records to return.

public void initRecords(array $records)

Initializes records in the data source. The method doesn't replace existing records and could be called multiple times in order to fill the data source.

Parameters
  • array $records - Records to initialize in the data source.

public void purge()

Removes all records from the data source.

Show inherited public methods

Inherited public methods