Documentation

InfinitePullComponent extends InfiniteComponent
in package
implements InfiniteComponentExportInterface

Class InfinitePullComponent

Table of Contents

Interfaces

InfiniteComponentExportInterface

Constants

bindType  = ['user_id' => \Phalcon\Db\Column::BIND_PARAM_INT, 'offset' => \Phalcon\Db\Column::BIND_PARAM_INT, 'limit' => \Phalcon\Db\Column::BIND_PARAM_INT]
columnOrder  = ['cronPull.id', 'cronRequest.changeTime', 'cronPull.module', 'cronPull.client', 'cronPull.pullTypeCode', 'cronRequest.progressStatusCode', 'cronRequest.statusLabel', 'cronRequest.startDate', 'cronRequest.endDate', 'cronRequest.requestNumber', 'cronRequest.responseNumber']
defaultOrder  = ['cronRequest.endDate' => 'DESC', 'cronRequest.startDate' => 'DESC', 'cronPull.pullTypeCode' => 'ASC', 'cronRequest.progressStatusCode' => 'DESC', 'cronRequest.statusLabel' => 'ASC', 'cronPull.module' => 'DESC', 'cronPull.client' => 'ASC']
fetchAsArray  = 2
fetchAsBuilder  = 0
fetchAsClass  = 10
fetchAsComplex  = 6
fetchAsDefault  = 10
fetchAsResult  = 1
fetchAsSimple  = 5
filterFormClass  = \Vatjar\Pull\Form\PullSearchForm::class
havingCondition  = []
infinitRowClass  = \Vatjar\Pull\Model\InfinitPullRow::class
pageSize  = 100
whereCondition  = ['module_id' => 'FIND_IN_SET(_cp.module_id,:module_id:)', 'user_id' => 'FIND_IN_SET(_u.id,:user_id:)', 'pull_type_id' => 'FIND_IN_SET(_cp.pull_type_id,:pull_type_id:)', 'progress_status' => '_cr.progress_status = :progress_status:', 'status_code' => '_cr.status_code = :status_code:', 'has_error' => '_cr.progress_status < 0', 'min_start_date' => '_cr.start_date <= :min_start_date:', 'min_end_date' => '_cr.end_date <= :min_end_date:', 'max_start_date' => '_cr.start_date >= :max_start_date:', 'max_end_date' => '_cr.end_date >= :max_end_date:']

Properties

$filter  : Obj
$filterForm  : Form
$storage  : CloudStorageComponent
$_component  : mixed

Methods

__construct()  : array<string|int, mixed>
_build()  : mixed
_fetch()  : mixed
_fetchRow()  : mixed
_filter()  : QueryBuilder
emptyFilter()  : bool
formatList()  : mixed
formatRow()  : mixed
formatRowExport()  : mixed
getCacheKeyPartClassName()  : mixed
getCacheKeyPartUser()  : mixed
getColumns()  : mixed
getEncodedColumns()  : mixed
getExportFilename()  : mixed
getFilterPlusArray()  : array<string|int, mixed>
getHavingToPrepare()  : mixed
getHavingValueConditionBindType()  : mixed
getList()  : mixed
getOrder()  : mixed
getRawColumns()  : mixed
getWhereToPrepare()  : mixed
getWhereValueConditionBindType()  : mixed
initializeFilter()  : mixed
page2offset()  : mixed
getColumnOrder()  : array<string|int, mixed>
getDefaultOrder()  : array<string|int, mixed>
getDICloudStorageService()  : CloudStorageService
isDonwloadable()  : mixed

Constants

bindType

public mixed bindType = ['user_id' => \Phalcon\Db\Column::BIND_PARAM_INT, 'offset' => \Phalcon\Db\Column::BIND_PARAM_INT, 'limit' => \Phalcon\Db\Column::BIND_PARAM_INT]

columnOrder

public mixed columnOrder = ['cronPull.id', 'cronRequest.changeTime', 'cronPull.module', 'cronPull.client', 'cronPull.pullTypeCode', 'cronRequest.progressStatusCode', 'cronRequest.statusLabel', 'cronRequest.startDate', 'cronRequest.endDate', 'cronRequest.requestNumber', 'cronRequest.responseNumber']

defaultOrder

public mixed defaultOrder = ['cronRequest.endDate' => 'DESC', 'cronRequest.startDate' => 'DESC', 'cronPull.pullTypeCode' => 'ASC', 'cronRequest.progressStatusCode' => 'DESC', 'cronRequest.statusLabel' => 'ASC', 'cronPull.module' => 'DESC', 'cronPull.client' => 'ASC']

whereCondition

public mixed whereCondition = ['module_id' => 'FIND_IN_SET(_cp.module_id,:module_id:)', 'user_id' => 'FIND_IN_SET(_u.id,:user_id:)', 'pull_type_id' => 'FIND_IN_SET(_cp.pull_type_id,:pull_type_id:)', 'progress_status' => '_cr.progress_status = :progress_status:', 'status_code' => '_cr.status_code = :status_code:', 'has_error' => '_cr.progress_status < 0', 'min_start_date' => '_cr.start_date <= :min_start_date:', 'min_end_date' => '_cr.end_date <= :min_end_date:', 'max_start_date' => '_cr.start_date >= :max_start_date:', 'max_end_date' => '_cr.end_date >= :max_end_date:']

Properties

Methods

__construct()

public __construct([mixed $opt = [] ]) : array<string|int, mixed>
Parameters
$opt : mixed = []
Return values
array<string|int, mixed>

_build()

public _build([array<string|int, mixed> $opt = [] ]) : mixed
Parameters
$opt : array<string|int, mixed> = []

_fetch()

public _fetch(QueryBuilder $builder[, array<string|int, mixed> $opt = [] ]) : mixed
Parameters
$builder : QueryBuilder
$opt : array<string|int, mixed> = []

_fetchRow()

public static _fetchRow(mixed $row, mixed $mode) : mixed
Parameters
$row : mixed
$mode : mixed

_filter()

public _filter(QueryBuilder $builder[, array<string|int, mixed> $opt = [] ]) : QueryBuilder
Parameters
$builder : QueryBuilder
$opt : array<string|int, mixed> = []
Return values
QueryBuilder

formatList()

public formatList(mixed $list[, array<string|int, mixed> $opt = [] ]) : mixed
Parameters
$list : mixed
$opt : array<string|int, mixed> = []

getCacheKeyPartUser()

public getCacheKeyPartUser([int $userId = null ]) : mixed
Parameters
$userId : int = null

getColumns()

public getColumns([mixed $opt = [] ]) : mixed
Parameters
$opt : mixed = []

getEncodedColumns()

public getEncodedColumns([mixed $opt = [] ]) : mixed
Parameters
$opt : mixed = []

getFilterPlusArray()

public getFilterPlusArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

getHavingToPrepare()

public static getHavingToPrepare(mixed $params) : mixed
Parameters
$params : mixed

getHavingValueConditionBindType()

public static getHavingValueConditionBindType(mixed $name, mixed $value) : mixed
Parameters
$name : mixed
$value : mixed

getList()

public getList([array<string|int, mixed> $opt = [] ]) : mixed
Parameters
$opt : array<string|int, mixed> = []

getOrder()

public static getOrder([mixed $order = null ]) : mixed
Parameters
$order : mixed = null

getRawColumns()

public getRawColumns([mixed $opt = [] ]) : mixed
Parameters
$opt : mixed = []

getWhereToPrepare()

public static getWhereToPrepare(mixed $params) : mixed
Parameters
$params : mixed

getWhereValueConditionBindType()

public static getWhereValueConditionBindType(mixed $name, mixed $value) : mixed
Parameters
$name : mixed
$value : mixed

initializeFilter()

public initializeFilter([mixed $opt = [] ]) : mixed
Parameters
$opt : mixed = []

page2offset()

public static page2offset([int $page = 1 ]) : mixed
Parameters
$page : int = 1

getColumnOrder()

protected static getColumnOrder() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDefaultOrder()

protected static getDefaultOrder() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results