PHP Класс Helper\PageData

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$context
$countQuery
$currentPage
$query
$recordPrePage

Открытые методы

Метод Описание
__construct ( string $tableName, string $extras = '', array $column = ['*'] ) Create a new PageData object.
bindParam ( mixed $parameter, mixed &$variable, integer $data_type = Database::PARAM_STR, integer $length = null, mixed $driver_options = null ) Binds a parameter to the specified variable name
bindValue ( mixed $parameter, mixed $value, integer $data_type = Database::PARAM_STR ) Binds a value to a parameter
execute ( )
getContext ( )
setPage ( $currentPage )
setRecordPrePage ( integer $recordPrePage )

Описание методов

__construct() публичный Метод

Create a new PageData object.
public __construct ( string $tableName, string $extras = '', array $column = ['*'] )
$tableName string Target table name
$extras string Such as where statement or order statement
$column array Column names needs to be fetch

bindParam() публичный Метод

Binds a parameter to the specified variable name
См. также: PDOStatement::bindParam
public bindParam ( mixed $parameter, mixed &$variable, integer $data_type = Database::PARAM_STR, integer $length = null, mixed $driver_options = null )
$parameter mixed
$variable mixed
$data_type integer
$length integer
$driver_options mixed

bindValue() публичный Метод

Binds a value to a parameter
См. также: PDOStatement::bindValue
public bindValue ( mixed $parameter, mixed $value, integer $data_type = Database::PARAM_STR )
$parameter mixed
$value mixed
$data_type integer

execute() публичный Метод

public execute ( )

getContext() публичный Метод

public getContext ( )

setPage() публичный Метод

public setPage ( $currentPage )

setRecordPrePage() публичный Метод

public setRecordPrePage ( integer $recordPrePage )
$recordPrePage integer

Описание свойств

$context защищенное свойство

protected $context

$countQuery защищенное свойство

protected $countQuery

$currentPage защищенное свойство

protected $currentPage

$query защищенное свойство

protected $query

$recordPrePage защищенное свойство

protected $recordPrePage