Documentation

InfiniteProductComponent extends InfiniteComponent
in package

Table of Contents

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  = []
defaultOrder  = ['p_status' => 'DESC']
fetchAsArray  = 2
fetchAsBuilder  = 0
fetchAsClass  = 10
fetchAsComplex  = 6
fetchAsDefault  = 10
fetchAsResult  = 1
fetchAsSimple  = 5
filterFormClass  = \Vatjar\Product\Form\ProductFilterForm::class
havingCondition  = []
infinitRowClass  = \Vatjar\Product\Component\InfinitProductRow::class
pageSize  = 100
whereCondition  = ['userId' => '_p.user_id = :userId:', 'userModuleId' => '_p.user_module_id = :userModuleId:', 'moduleId' => '_p.module = :moduleId:', 'id' => '_p.id= :id:', 'asin' => "(SELECT 1 FROM " . \Vatjar\Amazon\Model\AmazonProduct::class . " WHERE prod_id = _p.id and asin LIKE :asin: limit 1) IS NOT NULL", 'sku' => "(SELECT 1 FROM " . \Vatjar\Amazon\Model\AmazonProduct::class . " WHERE prod_id = _p.id and sku LIKE :sku: limit 1) IS NOT NULL", 'itemName' => "_p.item_name LIKE :itemName:", 'vatType' => '_p.vat_type_id = :vatType:', 'hasError' => '(isnull(_p.val) or (_p.val = 0) or isnull(_p.currency_id) or isnull(_p.vat_type_id))', 'hellotaxId' => '_p.id = :hellotaxId:', 'status' => 'FIND_IN_SET(_p.status, :status:)']

Properties

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

Methods

__construct()  : array<string|int, mixed>
_build()  : mixed
_fetch()  : mixed
_fetchRow()  : mixed
_filter()  : Builder
decodeHellotaxids()  : mixed
emptyFilter()  : bool
formatList()  : mixed
formatRow()  : mixed
getCacheKeyPartClassName()  : mixed
getCacheKeyPartUser()  : mixed
getColumns()  : mixed
getEncodedColumns()  : 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>
getProductColumns()  : mixed
hasSelectedGroupByFilter()  : bool

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]

whereCondition

public mixed whereCondition = ['userId' => '_p.user_id = :userId:', 'userModuleId' => '_p.user_module_id = :userModuleId:', 'moduleId' => '_p.module = :moduleId:', 'id' => '_p.id= :id:', 'asin' => "(SELECT 1 FROM " . \Vatjar\Amazon\Model\AmazonProduct::class . " WHERE prod_id = _p.id and asin LIKE :asin: limit 1) IS NOT NULL", 'sku' => "(SELECT 1 FROM " . \Vatjar\Amazon\Model\AmazonProduct::class . " WHERE prod_id = _p.id and sku LIKE :sku: limit 1) IS NOT NULL", 'itemName' => "_p.item_name LIKE :itemName:", 'vatType' => '_p.vat_type_id = :vatType:', 'hasError' => '(isnull(_p.val) or (_p.val = 0) or isnull(_p.currency_id) or isnull(_p.vat_type_id))', 'hellotaxId' => '_p.id = :hellotaxId:', 'status' => 'FIND_IN_SET(_p.status, :status:)']

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(Builder $builder[, array<string|int, mixed> $opt = [] ]) : mixed
Parameters
$builder : Builder
$opt : array<string|int, mixed> = []

_fetchRow()

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

_filter()

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

decodeHellotaxids()

public decodeHellotaxids(mixed $hellotaxId) : mixed
Parameters
$hellotaxId : mixed

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

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