Static Private Attributes |
static | $_instance = null |
Detailed Description
Shop meta data manager.
Definition at line 7 of file oxshopmetadata.php.
Member Function Documentation
oxShopMetaData::_combineShopSetBits |
( |
|
$aShopSetBits | ) |
|
|
protected |
Combines shop set bit arrays to one bit using binary OR. We use mySQL to calculate that, as currently php integer size is only 32 bits.
- Parameters
-
array | $aShopSetBits | shop id bits |
- Returns
- array
Definition at line 416 of file oxshopmetadata.php.
oxShopMetaData::_getMaxShopId |
( |
| ) |
|
|
protected |
oxShopMetaData::_getShopFieldCount |
( |
| ) |
|
|
protected |
oxShopMetaData::_getShopFieldSetId |
( |
|
$iShopId | ) |
|
|
protected |
oxShopMetaData::addShopFieldSets |
( |
|
$iShopId | ) |
|
Returns array of shop bits
- Parameters
-
int | $iShopId | current shop id |
- Returns
- bool
Definition at line 223 of file oxshopmetadata.php.
static oxShopMetaData::getInstance |
( |
| ) |
|
|
static |
oxShopMetaData::getMultiShopBits |
( |
| ) |
|
Returns array filled with max 64bit integers
- Returns
- array[int]int
Definition at line 81 of file oxshopmetadata.php.
oxShopMetaData::getParentShopBits |
( |
|
$sShopId, |
|
|
|
$blIsInherited = null |
|
) |
| |
Returns shop sets bit of inherited shop up to uninherited parent
- Parameters
-
string | $sShopId | current shop id |
bool | $blIsInherited | if this table is inherited |
- Returns
- int
Definition at line 100 of file oxshopmetadata.php.
oxShopMetaData::getShopBit |
( |
|
$iShopId | ) |
|
Returns integer number with bit set according to $iShopId. The action performed could be represented as pow(2, $iShopId - 1) We use mySQL to calculate that, as currently php int size is only 32 bit.
- Parameters
-
int | $iShopId | current shop id |
- Returns
- int
Definition at line 44 of file oxshopmetadata.php.
oxShopMetaData::getShopBits |
( |
|
$iShopId | ) |
|
Returns array of shop bits
- Parameters
-
int | $iShopId | current shop id |
- Returns
- array[int]int
Definition at line 63 of file oxshopmetadata.php.
oxShopMetaData::getShopFieldName |
( |
|
$sField, |
|
|
|
$iShopId |
|
) |
| |
Gets shop field suffix and optionally appends ti to given field name.
- Parameters
-
string | $sField | Field name |
int | $iShopId | Shop ID |
- Returns
- string
Definition at line 302 of file oxshopmetadata.php.
oxShopMetaData::getShopFields |
( |
| ) |
|
Returns all shop field sets (oxshopincl, oxshopexcl, oxshopincl1, oxshopexcl2, ...)
- Returns
- array
Definition at line 183 of file oxshopmetadata.php.
oxShopMetaData::getShopFieldSet |
( |
|
$iShopId | ) |
|
oxShopMetaData::getShopFieldSetName |
( |
|
$sField, |
|
|
|
$iSet |
|
) |
| |
Gets shop field setsuffix and optionally appends ti to given field name.
- Parameters
-
string | $sField | Field name |
int | $iSet | Shop field set index |
- Returns
- string
Definition at line 288 of file oxshopmetadata.php.
oxShopMetaData::getShopFieldSetSuffix |
( |
|
$iSet | ) |
|
Gets shop field setsuffix and optionally appends ti to given field name.
- Parameters
-
int | $iSet | Shop field set index |
- Returns
- string
Definition at line 261 of file oxshopmetadata.php.
oxShopMetaData::getShopFieldSuffix |
( |
|
$iShopId | ) |
|
Returns shop field (empty when calculated shop field set is zero).
- Parameters
-
- Returns
- string
Definition at line 274 of file oxshopmetadata.php.
oxShopMetaData::getSqlSetExcludeSnippet |
( |
|
$iShopId | ) |
|
Returns SQL snippet for setting oxshopexcl fields
- Parameters
-
- Returns
- string
Definition at line 350 of file oxshopmetadata.php.
oxShopMetaData::getSqlSetIncludeSnippet |
( |
|
$iShopId | ) |
|
Returns SQL snippet for setting oxshopincl fields
- Parameters
-
- Returns
- string
Definition at line 316 of file oxshopmetadata.php.
oxShopMetaData::getSqlUnsetExcludeSnippet |
( |
|
$iShopId | ) |
|
Returns SQL snippet for unsetting oxshopexcl fields
- Parameters
-
- Returns
- string
Definition at line 367 of file oxshopmetadata.php.
oxShopMetaData::getSqlUnsetIncludeSnippet |
( |
|
$iShopId | ) |
|
Returns SQL snippet for setting oxshopincl fields
- Parameters
-
- Returns
- string
Definition at line 333 of file oxshopmetadata.php.
oxShopMetaData::isExcludedFromShop |
( |
|
$iShopId, |
|
|
|
$sTable, |
|
|
|
$sOXID |
|
) |
| |
Return true if specified table record is excluded from gives shop
- Parameters
-
int | $iShopId | shop id |
string | $sTable | mall table name |
string | $sOXID | record id |
- Returns
- bool
Definition at line 156 of file oxshopmetadata.php.
oxShopMetaData::isIncludedInShop |
( |
|
$iShopId, |
|
|
|
$sTable, |
|
|
|
$sOXID |
|
) |
| |
Return true if specified table record is included in gives shop
- Parameters
-
int | $iShopId | shop id |
string | $sTable | mall table name |
string | $sOXID | record id |
- Returns
- bool
Definition at line 137 of file oxshopmetadata.php.
oxShopMetaData::shopFieldSetExist |
( |
|
$iShopId, |
|
|
|
$sTable = 'oxarticles' |
|
) |
| |
Returns true if shop field sets (oxshopincl, oxshopexcl) exist for given table
- Parameters
-
int | $iShopId | current shop id |
int | $sTable | table name (default 'oxarticles') |
- Returns
- bool
Definition at line 204 of file oxshopmetadata.php.
Member Data Documentation
oxShopMetaData::$_instance = null |
|
staticprivate |
const oxShopMetaData::SHOP_FIELD_SET_SIZE = 64 |
The documentation for this class was generated from the following file: