PHP Class Helper\PageData

Mostrar archivo Open project: sendya/shadowsocks-panel Class Usage Examples

Protected Properties

Property Type Description
$context
$countQuery
$currentPage
$query
$recordPrePage

Public Methods

Method Description
__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 )

Method Details

__construct() public method

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() public method

Binds a parameter to the specified variable name
See also: 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() public method

Binds a value to a parameter
See also: PDOStatement::bindValue
public bindValue ( mixed $parameter, mixed $value, integer $data_type = Database::PARAM_STR )
$parameter mixed
$value mixed
$data_type integer

execute() public method

public execute ( )

getContext() public method

public getContext ( )

setPage() public method

public setPage ( $currentPage )

setRecordPrePage() public method

public setRecordPrePage ( integer $recordPrePage )
$recordPrePage integer

Property Details

$context protected_oe property

protected $context

$countQuery protected_oe property

protected $countQuery

$currentPage protected_oe property

protected $currentPage

$query protected_oe property

protected $query

$recordPrePage protected_oe property

protected $recordPrePage