OXID eShop CE
6.1.5
|
Public Member Functions | |
getColumns () | |
setColumns ($aColumns) | |
setName ($sName) | |
processRequest ($function=null) | |
resetArtSeoUrl ($aArtIds, $aCatIds=null) | |
resetContentCache () | |
resetCounter ($sCounterType, $sValue=null) | |
Protected Member Functions | |
_getActionIds ($sId) | |
_getQuery () | |
_getDataQuery ($sQ) | |
_getCountQuery ($sQ) | |
_getSortCol () | |
_getColNames ($sId=null) | |
_getIdentColNames () | |
_getVisibleColNames () | |
_getQueryCols () | |
_buildColsQuery ($aIdentCols, $blIdentCols=true) | |
_isExtendedColumn ($sColumn) | |
_getExtendedColQuery ($sViewTable, $sColumn, $iCnt) | |
_getSorting () | |
_getLimit ($iStart) | |
_getFilter () | |
_addFilter ($sQ) | |
_getAll ($sQ) | |
_getSortDir () | |
_getStartIndex () | |
_getTotalCount ($sQ) | |
_getDataFields ($sQ) | |
_outputResponse ($aData) | |
_output ($sOut) | |
_getViewName ($sTable) | |
_getData ($sCountQ, $sQ) | |
_resetContentCache () | |
_resetCaches () | |
Protected Attributes | |
$_aPosDir = ['asc', 'desc'] | |
$_aColumns = [] | |
$_iSqlLimit = 2500 | |
$_sContainer = null | |
$_blAllowExtColumns = false | |
AJAX call processor class
|
protected |
Adds filter SQL to current query
string | $sQ | query to add filter condition |
|
protected |
Builds column selection query
array | $aIdentCols | columns |
bool | $blIdentCols | if true, means ident columns part is build |
|
protected |
Required data fields are returned by indexes/position in _aColumns array. This method translates "table_name.col_name" into index definition and fetches request data according to it. This is usefull while using AJAX across versions.
string | $sId | "table_name.col_name" |
|
protected |
Returns DB records as plain indexed array
string | $sQ | SQL query |
|
protected |
Returns array of cotainer DB cols which must be loaded. If id is not passed - all possible containers cols will be returned
string | $sId | container id (optional) |
|
protected |
Return fully formatted query for data records count
string | $sQ | part of initial query |
|
protected |
Formats data array which later will be processed by _outputResponse method
string | $sCountQ | count query |
string | $sQ | data load query |
|
protected |
Returns array with DB records
string | $sQ | SQL query |
|
protected |
Return fully formatted query for data loading
string | $sQ | part of initial query |
|
protected |
Returns extended query part for given view/column combination (if variants must be shown in lists and column name is "oxtitle")
string | $sViewTable | view name |
string | $sColumn | column name |
int | $iCnt | column count |
|
protected |
Returns part of SQL query for filtering DB data
|
protected |
Returns array of identifiers which are used as identifiers for specific actions in AJAX and further in this processor class
|
protected |
Returns part of SQL query for limiting number of entries from DB
int | $iStart | start position |
|
protected |
Empty function, developer should override this method according requirements
|
protected |
Formats and returns chunk of SQL query string with definition of fields to load from DB
|
protected |
Returns column id to sort
|
protected |
Checks user input and returns SQL sorting direction key
|
protected |
Formats and returns part of SQL query for sorting
|
protected |
Returns position from where data must be loaded
|
protected |
Returns amount of records which can be found according to passed SQL query
string | $sQ | SQL query |
|
protected |
Return the view name of the given table if a view exists, otherwise the table name itself
string | $sTable | table name |
|
protected |
Returns array of col names which are requested by AJAX call and will be fetched from DB
|
protected |
Checks if current column is extended (currently checks if variants must be shown in lists and column name is "oxtitle")
string | $sColumn | column name |
|
protected |
Echoes given string
string | $sOut | string to echo |
|
protected |
Outputs JSON encoded data
array | $aData | data to output |
|
protected |
Resets output caches
|
protected |
Resets content cache.
OxidEsales\EshopCommunity\Application\Controller\Admin\ListComponentAjax::getColumns | ( | ) |
Gets columns array.
OxidEsales\EshopCommunity\Application\Controller\Admin\ListComponentAjax::processRequest | ( | $function = null | ) |
AJAX call processor function
string | $function | name of action to execute (optional) |
OxidEsales\EshopCommunity\Application\Controller\Admin\ListComponentAjax::resetArtSeoUrl | ( | $aArtIds, | |
$aCatIds = null |
|||
) |
Marks article seo url as expired
array | $aArtIds | article id's |
array | $aCatIds | ids if categories, which must be removed from oxseo |
OxidEsales\EshopCommunity\Application\Controller\Admin\ListComponentAjax::resetContentCache | ( | ) |
Reset output cache
OxidEsales\EshopCommunity\Application\Controller\Admin\ListComponentAjax::resetCounter | ( | $sCounterType, | |
$sValue = null |
|||
) |
Resets counters values from cache. Resets price category articles, category articles, vendor articles, manufacturer articles count.
string | $sCounterType | counter type |
string | $sValue | reset value |
OxidEsales\EshopCommunity\Application\Controller\Admin\ListComponentAjax::setColumns | ( | $aColumns | ) |
Sets columns array.
array | $aColumns | columns array |
OxidEsales\EshopCommunity\Application\Controller\Admin\ListComponentAjax::setName | ( | $sName | ) |
AJAX container name setter
string | $sName | name of container |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |