OXID eShop CE  4.10.7
 All Classes Namespaces Files Functions Variables Pages
oxShop Class Reference
+ Inheritance diagram for oxShop:
+ Collaboration diagram for oxShop:

Public Member Functions

 setTables ($aTables)
 getTables ()
 setQueries ($aQueries)
 getQueries ()
 addQuery ($sQuery)
 __construct ()
 setMultiShopTables ($aMultiShopTables)
 getMultiShopTables ()
 generateViews ($blMultishopInheritCategories=false, $aMallInherit=null)
 getDefaultCategory ()
 isProductiveMode ()
 createViewQuery ($sTable, $aLanguages=null)
- Public Member Functions inherited from oxI18n
 setLanguage ($iLang=null)
 getLanguage ()
 setEnableMultilang ($blEmployMultilanguage)
 isMultilingualField ($sFieldName)
 isMultilang ()
 loadInLang ($iLanguage, $sOxid)
 modifyCacheKey ($sCacheKey, $blOverride=false)
 getAvailableInLangs ()
 getUpdateSqlFieldName ($sField)
 delete ($sOXID=null)
- Public Member Functions inherited from oxBase
 getUseSkipSaveFields ()
 setUseSkipSaveFields ($blUseSkipSaveFields)
 __set ($sName, $sValue)
 __get ($sName)
 __isset ($mVar)
 __clone ()
 oxClone ($oObject)
 getUpdateSeo ()
 setUpdateSeo ($blUpdateSeo)
 init ($sTableName=null, $blForceAllFields=false)
 assign ($dbRecord)
 getClassName ()
 getCoreTableName ()
 getId ()
 setId ($sOXID=null)
 setShopId ($iShopId)
 getShopId ()
 getViewName ($blForceCoreTableUsage=null)
 disableLazyLoading ()
 isDerived ()
 setIsDerived ($blVal)
 load ($sOXID)
 isLoaded ()
 buildSelectString ($aWhere=null)
 assignRecord ($sSelect)
 getFieldData ($sFieldName)
 getSelectFields ($blForceCoreTableUsage=null)
 save ()
 allowDerivedUpdate ()
 allowDerivedDelete ()
 exists ($sOXID=null)
 getSqlActiveSnippet ($blForceCoreTable=null)
 beforeUpdate ($sOXID=null)
 onChange ($iAction=null, $sOXID=null)
 setInList ()
 isOx ()
 isReadOnly ()
 setReadOnly ($blReadOnly)
 getFieldNames ()
 addFieldName ($sName)
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Member Functions

 _getViewSelect ($sTable, $iLang)
 _getViewSelectMultilang ($sTable)
 _getViewJoinAll ($sTable)
 _getViewJoinLang ($sTable, $iLang)
 _cleanInvalidViews ()
 _prepareViewsQueries ()
 _runQueries ()
- Protected Member Functions inherited from oxI18n
 _getFieldStatus ($sFieldName)
 _getNonCachedFieldNames ($blForceFullStructure=false)
 _getFieldLang ($sFieldName)
 _setUpdateSeoOnFieldChange ($sField)
 _getUpdateFieldsForTable ($sTable, $blUseSkipSaveFields=true)
 _getUpdateFields ($blUseSkipSaveFields=true)
 _update ()
 _getLanguageSetTables ($sCoreTableName=null)
 _insert ()
 _getObjectViewName ($sTable, $sShopID=null)
 _getAllFields ($blReturnSimple=false)
 _addField ($sName, $sStatus, $sType=null, $sLength=null)
 _canFieldBeNull ($sFieldName)
- Protected Member Functions inherited from oxBase
 _removeElement2ShopRelations ($sOxId)
 _isInList ()
 _getTableFields ($sTable, $blReturnSimple=false)
 _initDataStructure ($blForceFullStructure=false)
 _getFieldLongName ($sFieldName)
 _setFieldData ($sFieldName, $sValue, $iDataType=oxField::T_TEXT)
 _getFieldDefaultValue ($sFieldName)
 _getUpdateFieldValue ($sFieldName, $oField)
 _isDisabledFieldCache ()
 _addSkippedSaveFieldsForMapping ()
 _disableLazyLoadingForCaching ()

Protected Attributes

 $_sClassName = 'oxshop'
 $_aMultiShopTables = null
 $_aQueries = array()
 $_aTables = null
 $_blMultiShopInheritCategories = false
- Protected Attributes inherited from oxI18n
 $_sClassName = 'oxI18n'
 $_iLanguage = null
 $_blEmployMultilanguage = true
- Protected Attributes inherited from oxBase
 $_sOXID = null
 $_iShopId = null
 $_blIsSimplyClonable = true
 $_sClassName = 'oxbase'
 $_sCoreTable = null
 $_sViewTable = null
 $_aFieldNames = array('oxid' => 0)
 $_sCacheKey = null
 $_blUseLazyLoading = false
 $_aSkipSaveFields = array('oxtimestamp')
 $_blUseSkipSaveFields = true
 $_sExistKey = 'oxid'
 $_blIsDerived = null
 $_blIsSeoObject = false
 $_blUpdateSeo = true
 $_blReadOnly = false
 $_blIsInList = false
 $_isLoaded = false
 $_aInnerLazyCache = null
 $_blEmployMultilanguage = false

Additional Inherited Members

- Static Protected Attributes inherited from oxBase
static $_blDisableFieldCaching = array()

Detailed Description

Shop manager. Performs configuration and object loading or deletion.

Definition at line 8 of file oxshop.php.

Constructor & Destructor Documentation

oxShop::__construct ( )

Class constructor, initiates parent constructor (parent::oxBase()).

Reimplemented from oxI18n.

Definition at line 100 of file oxshop.php.

Member Function Documentation

oxShop::_cleanInvalidViews ( )
protected

Gets all invalid views and drops them from database

Definition at line 268 of file oxshop.php.

oxShop::_getViewJoinAll (   $sTable)
protected

Returns all language table view JOIN section

Parameters
string$sTabletable name
Returns
string $sSQL

Definition at line 211 of file oxshop.php.

oxShop::_getViewJoinLang (   $sTable,
  $iLang 
)
protected

Returns language table view JOIN section

Parameters
string$sTabletable name
array$iLanglanguage id
Returns
string $sSQL

Definition at line 233 of file oxshop.php.

oxShop::_getViewSelect (   $sTable,
  $iLang 
)
protected

Returns table field name mapping sql section for single language views

Parameters
string$sTabletable name
array$iLanglanguage id
Returns
string

Definition at line 164 of file oxshop.php.

oxShop::_getViewSelectMultilang (   $sTable)
protected

Returns table fields sql section for multiple language views

Parameters
string$sTabletable name
Returns
string

Definition at line 185 of file oxshop.php.

oxShop::_prepareViewsQueries ( )
protected

Creates all view queries and adds them in query array

Definition at line 299 of file oxshop.php.

oxShop::_runQueries ( )
protected

Runs stored queries Returns false when any of the queries fail, otherwise return true

Returns
bool

Definition at line 357 of file oxshop.php.

oxShop::addQuery (   $sQuery)

Add a query to query array

Parameters
string$sQueryQuery

Definition at line 92 of file oxshop.php.

oxShop::createViewQuery (   $sTable,
  $aLanguages = null 
)

Creates view query and adds it to query array

Parameters
string$sTabletable name
array$aLanguageslanguage array( id => abbreviation )

Definition at line 321 of file oxshop.php.

oxShop::generateViews (   $blMultishopInheritCategories = false,
  $aMallInherit = null 
)

(Re)generates shop views

Parameters
bool$blMultishopInheritCategoriesconfig option blMultishopInherit_oxcategories
array$aMallInheritarray of config options blMallInherit
Returns
bool is all views generated successfully

Definition at line 146 of file oxshop.php.

oxShop::getDefaultCategory ( )

Returns default category of the shop.

Returns
string

Definition at line 250 of file oxshop.php.

oxShop::getMultiShopTables ( )

Get multishop table array

Returns
array

Definition at line 128 of file oxshop.php.

oxShop::getQueries ( )

$_aQueries getter

Returns
array

Definition at line 82 of file oxshop.php.

oxShop::getTables ( )

$_aTables getter

Returns
array

Definition at line 56 of file oxshop.php.

oxShop::isProductiveMode ( )

Returns true if shop in productive mode

Returns
bool

Definition at line 260 of file oxshop.php.

oxShop::setMultiShopTables (   $aMultiShopTables)

Sets multi shop tables

Parameters
string$aMultiShopTablesmulti shop tables

Definition at line 118 of file oxshop.php.

oxShop::setQueries (   $aQueries)

$_aQueries setter

Parameters
array$aQueries

Definition at line 72 of file oxshop.php.

oxShop::setTables (   $aTables)

$_aTables setter

Parameters
array$aTables

Definition at line 46 of file oxshop.php.

Member Data Documentation

oxShop::$_aMultiShopTables = null
protected

Definition at line 23 of file oxshop.php.

oxShop::$_aQueries = array()
protected

Definition at line 29 of file oxshop.php.

oxShop::$_aTables = null
protected

Definition at line 34 of file oxshop.php.

oxShop::$_blMultiShopInheritCategories = false
protected

Definition at line 39 of file oxshop.php.

oxShop::$_sClassName = 'oxshop'
protected

Definition at line 16 of file oxshop.php.


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