Definition at line 34 of file oxajax.php.
Public Member Functions | |
__construct ($aColumns) | |
setName ($sName) | |
processRequest ($sFunction=null) | |
resetContentCache () | |
resetCounter ($sCounterType, $sValue=null) | |
Protected Member Functions | |
_getActionIds ($sId) | |
_getQuery () | |
_getSortCol () | |
_getColNames ($sId=null) | |
_getIdentColNames () | |
_getVisibleColNames () | |
_getQueryCols () | |
_getSorting () | |
_getLimit ($iStart) | |
_getFilter () | |
_addFilter ($sQ) | |
_getAll ($sQ) | |
_getSortDir () | |
_getStartIndex () | |
_getTotalCount ($sQ) | |
_getDataFields ($sQ) | |
_outputResponse ($aData) | |
_getData ($sCountQ, $sQ) | |
Protected Attributes | |
$_aPosDir = array( 'asc', 'desc' ) | |
$_aColumns = array() | |
$_iSqlLimit = 2500 |
ajaxListComponent.__construct | ( | $ | aColumns | ) |
Constructor class, initializes AJAX columns
array | $aColumns Array of DB table columns which are loaded from DB |
Definition at line 64 of file oxajax.php.
ajaxListComponent._getActionIds | ( | $ | sId | ) | [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" |
Definition at line 78 of file oxajax.php.
ajaxListComponent.setName | ( | $ | sName | ) |
AJAX container name setter
string | $sName name of container |
Definition at line 95 of file oxajax.php.
ajaxListComponent._getQuery | ( | ) | [protected] |
Empty function, developer should override this method according requirements
Reimplemented in ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, and ajaxComponent.
Definition at line 105 of file oxajax.php.
ajaxListComponent.processRequest | ( | $ | sFunction = null |
) |
AJAX call processor function
string | $sFunction name of action to execute (optional) |
Definition at line 117 of file oxajax.php.
ajaxListComponent._getSortCol | ( | ) | [protected] |
ajaxListComponent._getColNames | ( | $ | sId = null |
) | [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) |
Definition at line 156 of file oxajax.php.
ajaxListComponent._getIdentColNames | ( | ) | [protected] |
Returns array of identifiers which are used as identifiers for specific actions in AJAX and further in this processor class
Definition at line 175 of file oxajax.php.
ajaxListComponent._getVisibleColNames | ( | ) | [protected] |
Returns array of col names which are requested by AJAX call and will be fetched from DB
Definition at line 191 of file oxajax.php.
ajaxListComponent._getQueryCols | ( | ) | [protected] |
Formats and returns chunk of SQL query string with definition of fields to load from DB
Reimplemented in ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, and ajaxComponent.
Definition at line 224 of file oxajax.php.
ajaxListComponent._getSorting | ( | ) | [protected] |
Formats and returns part of SQL query for sorting
Reimplemented in ajaxComponent, ajaxComponent, ajaxComponent, ajaxComponent, and ajaxComponent.
Definition at line 258 of file oxajax.php.
ajaxListComponent._getLimit | ( | $ | iStart | ) | [protected] |
Returns part of SQL query for limiting number of entries from DB
int | $iStart start position |
Definition at line 273 of file oxajax.php.
ajaxListComponent._getFilter | ( | ) | [protected] |
Returns part of SQL query for filtering DB data
Definition at line 286 of file oxajax.php.
ajaxListComponent._addFilter | ( | $ | sQ | ) | [protected] |
Adds filter SQL to current query
string | $sQ query to add filter condition |
Definition at line 337 of file oxajax.php.
ajaxListComponent._getAll | ( | $ | sQ | ) | [protected] |
Returns DB records as plain indexed array
string | $sQ SQL query |
Definition at line 352 of file oxajax.php.
ajaxListComponent._getSortDir | ( | ) | [protected] |
Checks user input and returns SQL sorting direction key
Definition at line 370 of file oxajax.php.
ajaxListComponent._getStartIndex | ( | ) | [protected] |
Returns position from where data must be loaded
Definition at line 385 of file oxajax.php.
ajaxListComponent._getTotalCount | ( | $ | sQ | ) | [protected] |
Returns amount of records which can be found according to passed SQL query
string | $sQ SQL query |
Definition at line 397 of file oxajax.php.
ajaxListComponent._getDataFields | ( | $ | sQ | ) | [protected] |
Returns array with DB records
string | $sQ SQL query |
Reimplemented in ajaxComponent.
Definition at line 415 of file oxajax.php.
ajaxListComponent._outputResponse | ( | $ | aData | ) | [protected] |
Outputs JSON encoded data
array | $aData data to output |
Definition at line 427 of file oxajax.php.
ajaxListComponent._getData | ( | $ | sCountQ, | |
$ | sQ | |||
) | [protected] |
Formats data array which later will be processed by _outputResponse method
string | $sCountQ count query | |
string | $sQ data load query |
Reimplemented in ajaxComponent.
Definition at line 453 of file oxajax.php.
ajaxListComponent.resetContentCache | ( | ) |
ajaxListComponent.resetCounter | ( | $ | sCounterType, | |
$ | sValue = null | |||
) |
Resets counters values from cache. Resets price category articles, category articles, vendor articles, manufacturer articles count.
$sCounterType | counter type | |
$sValue | reset value |
Definition at line 510 of file oxajax.php.
ajaxListComponent.$_aPosDir = array( 'asc', 'desc' ) [protected] |
Definition at line 41 of file oxajax.php.
ajaxListComponent.$_aColumns = array() [protected] |
Definition at line 48 of file oxajax.php.
ajaxListComponent.$_iSqlLimit = 2500 [protected] |
Definition at line 55 of file oxajax.php.