Detailed Description
AJAX call processor class
Definition at line 7 of file ajaxlistcomponent.php.
Member Function Documentation
ajaxListComponent::_addFilter |
( |
|
$sQ | ) |
|
|
protected |
ajaxListComponent::_buildColsQuery |
( |
|
$aIdentCols, |
|
|
|
$blIdentCols = true |
|
) |
| |
|
protected |
Builds column selection query
- Parameters
-
array | $aIdentCols | columns |
bool | $blIdentCols | if true, means ident columns part is build |
- Returns
- string
Definition at line 278 of file ajaxlistcomponent.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.
- Parameters
-
string | $sId | "table_name.col_name" |
- Returns
- array
Definition at line 89 of file ajaxlistcomponent.php.
ajaxListComponent::_getAll |
( |
|
$sQ | ) |
|
|
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
- Parameters
-
string | $sId | container id (optional) |
- Returns
- array
Definition at line 189 of file ajaxlistcomponent.php.
ajaxListComponent::_getCountQuery |
( |
|
$sQ | ) |
|
|
protected |
Return fully formatted query for data records count
- Parameters
-
string | $sQ | part of initial query |
- Returns
- string
Definition at line 138 of file ajaxlistcomponent.php.
ajaxListComponent::_getData |
( |
|
$sCountQ, |
|
|
|
$sQ |
|
) |
| |
|
protected |
Formats data array which later will be processed by _outputResponse method
- Parameters
-
string | $sCountQ | count query |
string | $sQ | data load query |
- Returns
- array
Reimplemented in statistic_main_ajax.
Definition at line 562 of file ajaxlistcomponent.php.
ajaxListComponent::_getDataFields |
( |
|
$sQ | ) |
|
|
protected |
ajaxListComponent::_getDataQuery |
( |
|
$sQ | ) |
|
|
protected |
Return fully formatted query for data loading
- Parameters
-
string | $sQ | part of initial query |
- Returns
- string
Definition at line 126 of file ajaxlistcomponent.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")
- Parameters
-
string | $sViewTable | view name |
string | $sColumn | column name |
int | $iCnt | column count |
- Returns
- string
Definition at line 326 of file ajaxlistcomponent.php.
ajaxListComponent::_getFilter |
( |
| ) |
|
|
protected |
ajaxListComponent::_getIdentColNames |
( |
| ) |
|
|
protected |
Returns array of identifiers which are used as identifiers for specific actions in AJAX and further in this processor class
- Returns
- array
Definition at line 208 of file ajaxlistcomponent.php.
ajaxListComponent::_getLimit |
( |
|
$iStart | ) |
|
|
protected |
Returns part of SQL query for limiting number of entries from DB
- Parameters
-
- Returns
- string
Definition at line 355 of file ajaxlistcomponent.php.
ajaxListComponent::_getQuery |
( |
| ) |
|
|
protected |
Empty function, developer should override this method according requirements
- Returns
- string
Reimplemented in selectlist_main_ajax, actions_main_ajax, article_accessories_ajax, article_crossselling_ajax, attribute_main_ajax, category_main_ajax, delivery_articles_ajax, discount_articles_ajax, manufacturer_main_ajax, vendor_main_ajax, delivery_users_ajax, deliveryset_users_ajax, discount_users_ajax, usergroup_main_ajax, category_order_ajax, attribute_category_ajax, discount_item_ajax, actions_article_ajax, article_bundle_ajax, article_extend_ajax, delivery_main_ajax, deliveryset_country_ajax, discount_main_ajax, payment_country_ajax, delivery_categories_ajax, discount_categories_ajax, article_selection_ajax, deliveryset_main_ajax, deliveryset_payment_ajax, actions_groups_ajax, article_attribute_ajax, delivery_groups_ajax, deliveryset_groups_ajax, discount_groups_ajax, news_main_ajax, newsletter_selection_ajax, payment_main_ajax, user_main_ajax, voucherserie_groups_ajax, actions_order_ajax, selectlist_order_ajax, shop_default_category_ajax, and attribute_order_ajax.
Definition at line 114 of file ajaxlistcomponent.php.
ajaxListComponent::_getQueryCols |
( |
| ) |
|
|
protected |
ajaxListComponent::_getSortCol |
( |
| ) |
|
|
protected |
ajaxListComponent::_getSortDir |
( |
| ) |
|
|
protected |
Checks user input and returns SQL sorting direction key
- Returns
- string
Definition at line 457 of file ajaxlistcomponent.php.
ajaxListComponent::_getSorting |
( |
| ) |
|
|
protected |
ajaxListComponent::_getStartIndex |
( |
| ) |
|
|
protected |
ajaxListComponent::_getTotalCount |
( |
|
$sQ | ) |
|
|
protected |
Returns amount of records which can be found according to passed SQL query
- Parameters
-
- Returns
- int
Definition at line 484 of file ajaxlistcomponent.php.
ajaxListComponent::_getViewName |
( |
|
$sTable | ) |
|
|
protected |
Return the view name of the given table if a view exists, otherwise the table name itself
- Parameters
-
- Returns
- string
Definition at line 549 of file ajaxlistcomponent.php.
ajaxListComponent::_getVisibleColNames |
( |
| ) |
|
|
protected |
Returns array of col names which are requested by AJAX call and will be fetched from DB
- Returns
- array
Definition at line 227 of file ajaxlistcomponent.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")
- Parameters
-
string | $sColumn | column name |
- Returns
- bool
Definition at line 305 of file ajaxlistcomponent.php.
ajaxListComponent::_output |
( |
|
$sOut | ) |
|
|
protected |
ajaxListComponent::_outputResponse |
( |
|
$aData | ) |
|
|
protected |
ajaxListComponent::_resetContentCache |
( |
| ) |
|
|
protected |
ajaxListComponent::getColumns |
( |
| ) |
|
ajaxListComponent::init |
( |
|
$aColumns = null | ) |
|
Initializes AJAX columns.
- Parameters
-
array | $aColumns | Array of DB table columns which are loaded from DB. |
- Deprecated:
- since v5.1.1 (2013.10.24); must be replaced with setColumns if needed
Definition at line 53 of file ajaxlistcomponent.php.
ajaxListComponent::processRequest |
( |
|
$sFunction = null | ) |
|
AJAX call processor function
- Parameters
-
string | $sFunction | name of action to execute (optional) |
Definition at line 148 of file ajaxlistcomponent.php.
ajaxListComponent::resetArtSeoUrl |
( |
|
$aArtIds, |
|
|
|
$aCatIds = null |
|
) |
| |
Marks article seo url as expired
- Parameters
-
array | $aArtIds | article id's |
array | $aCatIds | ids if categories, which must be removed from oxseo |
- Returns
- null
Definition at line 603 of file ajaxlistcomponent.php.
ajaxListComponent::resetContentCache |
( |
| ) |
|
ajaxListComponent::resetCounter |
( |
|
$sCounterType, |
|
|
|
$sValue = null |
|
) |
| |
Resets counters values from cache. Resets price category articles, category articles, vendor articles, manufacturer articles count.
- Parameters
-
string | $sCounterType | counter type |
string | $sValue | reset value |
Definition at line 640 of file ajaxlistcomponent.php.
ajaxListComponent::setColumns |
( |
|
$aColumns | ) |
|
ajaxListComponent::setName |
( |
|
$sName | ) |
|
AJAX container name setter
- Parameters
-
string | $sName | name of container |
Definition at line 104 of file ajaxlistcomponent.php.
Member Data Documentation
ajaxListComponent::$_aColumns = array() |
|
protected |
ajaxListComponent::$_aPosDir = array('asc', 'desc') |
|
protected |
ajaxListComponent::$_blAllowExtColumns = false |
|
protected |
ajaxListComponent::$_iSqlLimit = 2500 |
|
protected |
ajaxListComponent::$_sContainer = null |
|
protected |
The documentation for this class was generated from the following file: