Public Member Functions | Protected Member Functions | Protected Attributes

oxShop Class Reference

Inheritance diagram for oxShop:
Collaboration diagram for oxShop:

List of all members.

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)

Protected Member Functions

 _getViewJoinAll ($sTable)
 _getViewJoinLang ($sTable, $iLang)
 _prepareViewsQueries ()
 _runQueries ()

Protected Attributes

 $_sClassName = 'oxshop'
 $_aMultiShopTables = null
 $_aQueries = array()
 $_aTables = null
 $_blMultiShopInheritCategories = false

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._getViewJoinAll ( sTable  )  [protected]

Returns all language table view JOIN section

Parameters:
string $sTable table 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 $sTable table name
array $iLang language id
Returns:
string $sSQL

Definition at line 233 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 $sQuery Query

Definition at line 92 of file oxshop.php.

oxShop.createViewQuery ( sTable,
aLanguages = null 
)

Creates view query and adds it to query array

Parameters:
string $sTable table name
array $aLanguages language array( id => abbreviation )

Definition at line 321 of file oxshop.php.

oxShop.generateViews ( blMultishopInheritCategories = false,
aMallInherit = null 
)

(Re)generates shop views

Parameters:
bool $blMultishopInheritCategories config option blMultishopInherit_oxcategories
array $aMallInherit array 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 $aMultiShopTables multi 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]

Reimplemented from oxI18n.

Definition at line 16 of file oxshop.php.


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