Inheritance diagram for ajaxListComponent:
 Collaboration diagram for ajaxListComponent:Public Member Functions | |
| init ($aColumns=null) | |
| getColumns () | |
| setColumns ($aColumns) | |
| setName ($sName) | |
| processRequest ($sFunction=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) | |
Protected Attributes | |
| $_aPosDir = array( 'asc', 'desc' ) | |
| $_aColumns = array() | |
| $_iSqlLimit = 2500 | |
| $_sContainer = null | |
| $_blAllowExtColumns = false | |
AJAX call processor class
Definition at line 34 of file oxajax.php.
| ajaxListComponent._addFilter | ( | $ | sQ | ) |  [protected] | 
        
Adds filter SQL to current query
| string | $sQ query to add filter condition | 
Reimplemented in actions_article_ajax, actions_main_ajax, article_bundle_ajax, attribute_main_ajax, category_main_ajax, manufacturer_main_ajax, and vendor_main_ajax.
Definition at line 441 of file oxajax.php.
| ajaxListComponent._buildColsQuery | ( | $ | aIdentCols, | |
| $ |  blIdentCols = true | |||
| ) |  [protected] | 
        
Builds column selection query
| array | $aIdentCols columns | |
| bool | $blIdentCols if true, means ident columns part is build | 
Definition at line 305 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 119 of file oxajax.php.
| ajaxListComponent._getAll | ( | $ | sQ | ) |  [protected] | 
        
Returns DB records as plain indexed array
| string | $sQ SQL query | 
Definition at line 456 of file oxajax.php.
| 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 221 of file oxajax.php.
| ajaxListComponent._getCountQuery | ( | $ | sQ | ) |  [protected] | 
        
Return fully formatted query for data records count
| string | $sQ part of initial query | 
Definition at line 170 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 statistic_main_ajax.
Definition at line 582 of file oxajax.php.
| ajaxListComponent._getDataFields | ( | $ | sQ | ) |  [protected] | 
        
Returns array with DB records
| string | $sQ SQL query | 
Reimplemented in article_extend_ajax.
Definition at line 519 of file oxajax.php.
| ajaxListComponent._getDataQuery | ( | $ | sQ | ) |  [protected] | 
        
Return fully formatted query for data loading
| string | $sQ part of initial query | 
Definition at line 158 of file oxajax.php.
| ajaxListComponent._getExtendedColQuery | ( | $ | sViewTable, | |
| $ | sColumn, | |||
| $ | iCnt | |||
| ) |  [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 | 
Definition at line 352 of file oxajax.php.
| ajaxListComponent._getFilter | ( | ) |  [protected] | 
        
Returns part of SQL query for filtering DB data
Definition at line 389 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 240 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 376 of file oxajax.php.
| ajaxListComponent._getQuery | ( | ) |  [protected] | 
        
Empty function, developer should override this method according requirements
Reimplemented in actions_article_ajax, actions_groups_ajax, actions_main_ajax, actions_order_ajax, article_accessories_ajax, article_attribute_ajax, article_bundle_ajax, article_crossselling_ajax, article_extend_ajax, article_selection_ajax, attribute_category_ajax, attribute_main_ajax, attribute_order_ajax, category_main_ajax, category_order_ajax, delivery_articles_ajax, delivery_categories_ajax, delivery_groups_ajax, delivery_main_ajax, delivery_users_ajax, deliveryset_country_ajax, deliveryset_groups_ajax, deliveryset_main_ajax, deliveryset_payment_ajax, deliveryset_users_ajax, discount_articles_ajax, discount_categories_ajax, discount_groups_ajax, discount_item_ajax, discount_main_ajax, discount_users_ajax, manufacturer_main_ajax, news_main_ajax, newsletter_selection_ajax, payment_country_ajax, payment_main_ajax, selectlist_main_ajax, selectlist_order_ajax, shop_default_category_ajax, user_main_ajax, usergroup_main_ajax, vendor_main_ajax, and voucherserie_groups_ajax.
Definition at line 146 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 discount_item_ajax.
Definition at line 289 of file oxajax.php.
| ajaxListComponent._getSortCol | ( | ) |  [protected] | 
        
| ajaxListComponent._getSortDir | ( | ) |  [protected] | 
        
Checks user input and returns SQL sorting direction key
Definition at line 474 of file oxajax.php.
| ajaxListComponent._getSorting | ( | ) |  [protected] | 
        
Formats and returns part of SQL query for sorting
Reimplemented in actions_main_ajax, actions_order_ajax, attribute_order_ajax, category_order_ajax, and selectlist_order_ajax.
Definition at line 364 of file oxajax.php.
| ajaxListComponent._getStartIndex | ( | ) |  [protected] | 
        
Returns position from where data must be loaded
Definition at line 489 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 501 of file oxajax.php.
| ajaxListComponent._getViewName | ( | $ | sTable | ) |  [protected] | 
        
Return the view name of the given table if a view exists, otherwise the table name itself
| string | $sTable table name | 
Definition at line 569 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 256 of file oxajax.php.
| ajaxListComponent._isExtendedColumn | ( | $ | sColumn | ) |  [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 | 
Definition at line 332 of file oxajax.php.
| ajaxListComponent._output | ( | $ | sOut | ) |  [protected] | 
        
Echoes given string
| string | $sOut string to echo | 
Definition at line 557 of file oxajax.php.
| ajaxListComponent._outputResponse | ( | $ | aData | ) |  [protected] | 
        
Outputs JSON encoded data
| array | $aData data to output | 
Definition at line 531 of file oxajax.php.
| ajaxListComponent.getColumns | ( | ) | 
| ajaxListComponent.init | ( | $ |  aColumns = null | 
          ) | 
Initializes AJAX columns.
| array | $aColumns Array of DB table columns which are loaded from DB. | 
Definition at line 81 of file oxajax.php.
| ajaxListComponent.processRequest | ( | $ |  sFunction = null | 
          ) | 
AJAX call processor function
| string | $sFunction name of action to execute (optional) | 
Definition at line 182 of file oxajax.php.
| ajaxListComponent.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 | 
Definition at line 623 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.
| string | $sCounterType counter type | |
| string | $sValue reset value | 
Definition at line 678 of file oxajax.php.
| ajaxListComponent.setColumns | ( | $ | aColumns | ) | 
Sets columns array.
| array | $aColumns columns array | 
Definition at line 105 of file oxajax.php.
| ajaxListComponent.setName | ( | $ | sName | ) | 
AJAX container name setter
| string | $sName name of container | 
Definition at line 136 of file oxajax.php.
ajaxListComponent.$_aColumns = array() [protected] | 
        
Reimplemented in actions_article_ajax, actions_groups_ajax, actions_main_ajax, actions_order_ajax, article_accessories_ajax, article_attribute_ajax, article_bundle_ajax, article_crossselling_ajax, article_extend_ajax, article_selection_ajax, attribute_category_ajax, attribute_main_ajax, attribute_order_ajax, category_main_ajax, category_order_ajax, delivery_articles_ajax, delivery_categories_ajax, delivery_groups_ajax, delivery_main_ajax, delivery_users_ajax, deliveryset_country_ajax, deliveryset_groups_ajax, deliveryset_main_ajax, deliveryset_payment_ajax, deliveryset_users_ajax, discount_articles_ajax, discount_categories_ajax, discount_groups_ajax, discount_item_ajax, discount_main_ajax, discount_users_ajax, manufacturer_main_ajax, news_main_ajax, newsletter_selection_ajax, payment_country_ajax, payment_main_ajax, selectlist_main_ajax, selectlist_order_ajax, shop_default_category_ajax, statistic_main_ajax, user_main_ajax, usergroup_main_ajax, vendor_main_ajax, and voucherserie_groups_ajax.
Definition at line 48 of file oxajax.php.
ajaxListComponent.$_aPosDir = array( 'asc', 'desc' ) [protected] | 
        
Definition at line 41 of file oxajax.php.
ajaxListComponent.$_blAllowExtColumns = false [protected] | 
        
Reimplemented in actions_article_ajax, actions_main_ajax, article_accessories_ajax, article_bundle_ajax, article_crossselling_ajax, attribute_main_ajax, category_main_ajax, delivery_articles_ajax, discount_articles_ajax, manufacturer_main_ajax, selectlist_main_ajax, and vendor_main_ajax.
Definition at line 70 of file oxajax.php.
ajaxListComponent.$_iSqlLimit = 2500 [protected] | 
        
Definition at line 55 of file oxajax.php.
ajaxListComponent.$_sContainer = null [protected] | 
        
Definition at line 62 of file oxajax.php.
 1.7.1