LFT
  • Namespace
  • Class
  • Tree

Namespaces

  • Docoflow
    • Contracts
    • Entity
    • Facades
    • Models
    • Traits
  • Docolight
    • Agno
      • Traits
    • Container
    • Http
      • Contracts
    • Rest
      • Handler
      • Http
    • Support
      • Debug
      • Traits
  • Docotory
    • Traits
  • None

Classes

  • ActiveRecordWrapper
  • Arr
  • Carbonate
  • ClassLoader
  • Collection
  • CollectionDataProvider
  • Facade
  • Factory
  • Fluent
  • Html
  • IterablePager
  • Repository
  • Set
  • Str

Class CollectionDataProvider

A Data Provider with Docolight\Support\Collection as it's data source.

CDataProvider
Extended by Docolight\Support\CollectionDataProvider
Namespace: Docolight\Support
Author: Krisan Alfa Timur krisanalfa@docotel.co.id
Located at Docolight/Support/CollectionDataProvider.php

Methods summary

public
# __construct( Docolight\Support\Collection $collection, array $freeTextField = array() )

Class construction.

Class construction.

Parameters

$collection
$freeTextField
public Docolight\Support\Collection
# getCollection( )

Get collection

Get collection

Returns

Docolight\Support\Collection
protected array
# fetchData( )

Fetches the data from the persistent data storage.

Fetches the data from the persistent data storage.

Returns

array
list of data items
protected integer
# calculateTotalItemCount( )

Calculates the total number of data items.

Calculates the total number of data items.

Returns

integer
the total number of data items.
protected array
# fetchKeys( )

Fetches the data item keys from the persistent data storage.

Fetches the data item keys from the persistent data storage.

Returns

array
list of data item keys.
protected Docolight\Support\Collection
# filterCollection( Docolight\Support\Collection $collection, array $filter )

Filter collection by criteria

Filter collection by criteria

Parameters

$collection
$filter

Returns

Docolight\Support\Collection

Properties summary

protected Docolight\Support\Collection $collection

Collection file

Collection file

# null
protected array $freeTextField

Free text field

Free text field

# array()
LFT API documentation generated by ApiGen