abstract class \mpf\datasources\DataProvider

abstract class \mpf\datasources\DataProvider

Inheritance \mpf\base\Object
Implements -
Uses -
Childs \mpf\datasources\sql\DataProvider
Available since version  0.1
Source Code https://github.com/mpf-soft/mpf/tree/master/datasources/DataProvider.php

-no description found-

Attributes
public string $pk = "id"

Name of the primary key

public mixed $perPageChangeKey

-no description found-

public mixed $perPageSessionKey

-no description found-

public mixed $perPageCookieKey

-no description found-

public string $pageGetKey

Name of the key for page number from $GET list. If it's not set the auto name is composed from model name. ("{$ModelName}page")

public string $orderGetKey

Name of the key for page number from $GET list. If it's not set the auto name is composed from model name. ("{$ModelName}order")

public string $filtersKey

Key used in $GET or $POST to send filters for current data.

protected mixed $calculated = false

-no description found-

public mixed $rows

-no description found-

public mixed $totalPages

-no description found-

public mixed $totalResults

-no description found-

public mixed $activePage

-no description found-

public int $perPage = 30

-no description found-

public mixed $order

-no description found-

public mixed $labels

-no description found-

public array $optionsPerPage = [5,10,15,20,30,50,100,150,300,500,1000]

-no description found-

Methods

protected abstract mixed calculateData ()

-no description found-

public abstract mixed getOrder ()

-no description found-

public abstract mixed getColumnOptions (mixed $column, mixed $table = null)

  • $column

    -no description found-

  • $table

    -no description found-

-no description found-

protected mixed init (mixed $config)

  • $config

    -no description found-

-no description found-

public mixed getData ()

-no description found-

public mixed setPage (mixed $number)

  • $number

    -no description found-

-no description found-

public mixed setLimitPerPage (mixed $limit)

  • $limit

    -no description found-

-no description found-

public mixed getPagesNumber ()

-no description found-

public mixed getResultsNumber ()

-no description found-

public mixed getCurrentPage ()

-no description found-

public mixed getLabels ()

-no description found-

public mixed getLabel (mixed $column)

  • $column

    -no description found-

-no description found-

public mixed getPageKey ()

-no description found-

public mixed getPkKey ()

-no description found-

public string getColumnOrderLink (mixed $column, mixed $label, array $htmlOptions = [])

  • $column

    -no description found-

  • $label

    -no description found-

  • $htmlOptions

    -no description found-

Generates a link to change order for this data provider using the order get Key that can be generated automatically or manually by a developer.

public mixed getColumnOrderURL (mixed $column)

  • $column

    -no description found-

-no description found-

public string getLinkForPage (mixed $pageNumber, mixed $label, array $htmlOptions = [])

  • $pageNumber

    -no description found-

  • $label

    -no description found-

  • $htmlOptions

    -no description found-

Generates link for a selected page using the GET key generated automatically or manually by a developer.

public mixed getURLForPage (mixed $pageNumber)

  • $pageNumber

    -no description found-

-no description found-