OXID eShop CE  4.9.6
 All Classes Files Functions Variables Pages
discount_item_ajax Class Reference
+ Inheritance diagram for discount_item_ajax:
+ Collaboration diagram for discount_item_ajax:

Public Member Functions

 removeDiscArt ()
 addDiscArt ()
- Public Member Functions inherited from ajaxListComponent
 init ($aColumns=null)
 getColumns ()
 setColumns ($aColumns)
 setName ($sName)
 processRequest ($sFunction=null)
 resetContentCache ()
 resetCounter ($sCounterType, $sValue=null)
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 __construct ()
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Member Functions

 _getQuery ()
 _getQueryCols ()
- Protected Member Functions inherited from ajaxListComponent
 _getActionIds ($sId)
 _getDataQuery ($sQ)
 _getCountQuery ($sQ)
 _getSortCol ()
 _getColNames ($sId=null)
 _getIdentColNames ()
 _getVisibleColNames ()
 _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 ()

Protected Attributes

 $_aColumns
- Protected Attributes inherited from ajaxListComponent
 $_aPosDir = array('asc', 'desc')
 $_aColumns = array()
 $_iSqlLimit = 2500
 $_sContainer = null
 $_blAllowExtColumns = false

Additional Inherited Members

- Static Protected Attributes inherited from oxSuperCfg
static $_oConfig = null
static $_oSession = null
static $_oRights = null
static $_oActUser = null
static $_blIsAdmin = null

Detailed Description

Class manages discount articles

Definition at line 6 of file discount_item_ajax.php.

Member Function Documentation

discount_item_ajax::_getQuery ( )
protected

Returns SQL query for data to fetc

Returns
string

Reimplemented from ajaxListComponent.

Definition at line 39 of file discount_item_ajax.php.

discount_item_ajax::_getQueryCols ( )
protected

Formats and returns chunk of SQL query string with definition of fields to load from DB. Adds subselect to get variant title from parent article

Returns
string

Reimplemented from ajaxListComponent.

Definition at line 118 of file discount_item_ajax.php.

discount_item_ajax::addDiscArt ( )

Adds selected article (articles) to discount list

Definition at line 102 of file discount_item_ajax.php.

discount_item_ajax::removeDiscArt ( )

Removes selected article (articles) from discount list

Definition at line 89 of file discount_item_ajax.php.

Member Data Documentation

discount_item_ajax::$_aColumns
protected
Initial value:
array('container1' => array(
array('oxartnum', 'oxarticles', 1, 0, 0),
array('oxtitle', 'oxarticles', 1, 1, 0),
array('oxean', 'oxarticles', 1, 0, 0),
array('oxmpn', 'oxarticles', 0, 0, 0),
array('oxprice', 'oxarticles', 0, 0, 0),
array('oxstock', 'oxarticles', 0, 0, 0),
array('oxid', 'oxarticles', 0, 0, 1)
),
'container2' => array(
array('oxartnum', 'oxarticles', 1, 0, 0),
array('oxtitle', 'oxarticles', 1, 1, 0),
array('oxean', 'oxarticles', 1, 0, 0),
array('oxmpn', 'oxarticles', 0, 0, 0),
array('oxprice', 'oxarticles', 0, 0, 0),
array('oxstock', 'oxarticles', 0, 0, 0),
array('oxitmartid', 'oxdiscount', 0, 0, 1)
)
)

Definition at line 14 of file discount_item_ajax.php.


The documentation for this class was generated from the following file: