OXID eShop CE
4.8.11
|
Public Member Functions | |
__construct () | |
getDefaultSorting () | |
getDefaultSortingMode () | |
__get ($sName) | |
load ($sOXID) | |
assign ($dbRecord) | |
delete ($sOXID=null) | |
getSubCats () | |
getSubCat ($sKey) | |
setSubCats ($aCats) | |
setSubCat ($oCat, $sKey=null) | |
getContentCats () | |
setContentCats ($aContent) | |
setContentCat ($oContent, $sKey=null) | |
getNrOfArticles () | |
setNrOfArticles ($iNum) | |
getIsVisible () | |
setIsVisible ($blVisible) | |
getPictureUrl () | |
getBaseSeoLink ($iLang, $iPage=0) | |
getLink ($iLang=null) | |
setLink ($sLink) | |
getSqlActiveSnippet ($blForceCoreTable=null) | |
getBaseStdLink ($iLang, $blAddId=true, $blFull=true) | |
getStdLink ($iLang=null, $aParams=array()) | |
getExpanded () | |
setExpanded ($blExpanded) | |
getHasSubCats () | |
getHasVisibleSubCats () | |
setHasVisibleSubCats ($blHasVisibleSubcats) | |
getAttributes () | |
getCatInLang ($oActCategory=null) | |
setParentCategory ($oCategory) | |
getParentCategory () | |
assignViewableRecord ($sSelect) | |
getIconUrl () | |
getThumbUrl () | |
getPromotionIconUrl () | |
getPictureUrlForType ($sPicName, $sPicType) | |
isTopCategory () | |
isPriceCategory () | |
getLongDesc () | |
getShortDescription () | |
getTitle () | |
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) | |
Public Member Functions inherited from oxBase | |
getUseSkipSaveFields () | |
setUseSkipSaveFields ($blUseSkipSaveFields) | |
__set ($sName, $sValue) | |
__isset ($mVar) | |
__clone () | |
oxClone ($oObject) | |
getUpdateSeo () | |
setUpdateSeo ($blUpdateSeo) | |
init ($sTableName=null, $blForceAllFields=false) | |
getClassName () | |
getCoreTableName () | |
getId () | |
setId ($sOXID=null) | |
setShopId ($iShopId) | |
getShopId () | |
getViewName ($blForceCoreTableUsage=null) | |
disableLazyLoading () | |
isDerived () | |
setIsDerived ($blVal) | |
isLoaded () | |
buildSelectString ($aWhere=null) | |
assignRecord ($sSelect) | |
getFieldData ($sFieldName) | |
getSelectFields ($blForceCoreTableUsage=null) | |
save () | |
allowDerivedUpdate () | |
allowDerivedDelete () | |
exists ($sOXID=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) |
Static Public Member Functions | |
static | getRootId ($sCategoryId) |
Protected Member Functions | |
_loadFromDb ($sOXID) | |
_insert () | |
_update () | |
_setFieldData ($sFieldName, $sValue, $iDataType=oxField::T_TEXT) | |
Protected Member Functions inherited from oxI18n | |
_getFieldStatus ($sFieldName) | |
_getNonCachedFieldNames ($blForceFullStructure=false) | |
_getFieldLang ($sFieldName) | |
_setUpdateSeoOnFieldChange ($sField) | |
_getUpdateFieldsForTable ($sTable, $blUseSkipSaveFields=true) | |
_getUpdateFields ($blUseSkipSaveFields=true) | |
_getLanguageSetTables ($sCoreTableName=null) | |
_getObjectViewName ($sTable, $sShopID=null) | |
_getAllFields ($blReturnSimple=false) | |
_addField ($sName, $sStatus, $sType=null, $sLength=null) | |
_canFieldBeNull ($sFieldName) | |
Protected Member Functions inherited from oxBase | |
_isInList () | |
_getTableFields ($sTable, $blReturnSimple=false) | |
_initDataStructure ($blForceFullStructure=false) | |
_getFieldLongName ($sFieldName) | |
_getFieldDefaultValue ($sFieldName) | |
_getUpdateFieldValue ($sFieldName, $oField) | |
_isDisabledFieldCache () |
Protected Attributes | |
$_aSubCats = array() | |
$_aContentCats = array() | |
$_sClassName = 'oxcategory' | |
$_iNrOfArticles | |
$_blIsVisible | |
$_blExpanded | |
$_blHasSubCats | |
$_blHasVisibleSubCats | |
$_blIsSeoObject = true | |
$_blUseLazyLoading = false | |
$_sDynImageDir = null | |
$_blTopCategory = null | |
$_aStdUrls = array() | |
$_aSeoUrls = array() | |
$_oParent = null | |
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 |
Static Protected Attributes | |
static | $_aCatAttributes = array() |
Category manager. Collects category information (articles, etc.), performs insertion/deletion of categories nodes. By recursion methods are set structure of category.
Definition at line 9 of file oxcategory.php.
oxCategory::__construct | ( | ) |
Class constructor, initiates parent constructor (parent::oxI18n()).
Reimplemented from oxI18n.
Definition at line 123 of file oxcategory.php.
oxCategory::__get | ( | $sName | ) |
Extra getter to guarantee compatibility with templates
string | $sName | name of variable to get |
Reimplemented from oxBase.
Definition at line 156 of file oxcategory.php.
|
protected |
Inserts new category (and updates existing node oxLeft amd oxRight accordingly). Returns true on success.
Reimplemented from oxI18n.
Definition at line 810 of file oxcategory.php.
|
protected |
Get data from db
string | $sOXID | id |
Definition at line 202 of file oxcategory.php.
|
protected |
Sets data field value
string | $sFieldName | index OR name (eg. 'oxarticles__oxtitle') of a data field to set |
string | $sValue | value of data field |
int | $iDataType | field type |
Reimplemented from oxBase.
Definition at line 970 of file oxcategory.php.
|
protected |
Updates category tree, returns true on success.
Reimplemented from oxI18n.
Definition at line 863 of file oxcategory.php.
oxCategory::assign | ( | $dbRecord | ) |
Loads and assigns object data from DB.
mixed | $dbRecord | database record array |
Reimplemented from oxBase.
Definition at line 237 of file oxcategory.php.
oxCategory::assignViewableRecord | ( | $sSelect | ) |
Before assigning the record from SQL it checks for viewable rights
string | $sSelect | SQL select |
Definition at line 795 of file oxcategory.php.
oxCategory::delete | ( | $sOXID = null | ) |
Delete empty categories, returns true on success.
string | $sOXID | Object ID |
Reimplemented from oxI18n.
Definition at line 250 of file oxcategory.php.
oxCategory::getAttributes | ( | ) |
Loads and returns attribute list associated with this category
Definition at line 696 of file oxcategory.php.
oxCategory::getBaseSeoLink | ( | $iLang, | |
$iPage = 0 |
|||
) |
Returns raw category seo url
int | $iLang | language id |
int | $iPage | page number [optional] |
Definition at line 505 of file oxcategory.php.
oxCategory::getBaseStdLink | ( | $iLang, | |
$blAddId = true , |
|||
$blFull = true |
|||
) |
Returns base dynamic url: shopUrl/index.php?cl=details
int | $iLang | language id |
bool | $blAddId | add current object id to url or not |
bool | $blFull | return full including domain name [optional] |
Implements oxIUrl.
Definition at line 582 of file oxcategory.php.
oxCategory::getCatInLang | ( | $oActCategory = null | ) |
Loads and returns category in base language
object | $oActCategory | active category |
Definition at line 717 of file oxcategory.php.
oxCategory::getContentCats | ( | ) |
oxCategory::getDefaultSorting | ( | ) |
oxCategory::getDefaultSortingMode | ( | ) |
oxCategory::getExpanded | ( | ) |
returns the expanded state of the category
Definition at line 628 of file oxcategory.php.
oxCategory::getHasSubCats | ( | ) |
oxCategory::getHasVisibleSubCats | ( | ) |
returns if a category has visible sub categories
Definition at line 664 of file oxcategory.php.
oxCategory::getIconUrl | ( | ) |
Returns category icon picture url if exist, false - if not
Definition at line 987 of file oxcategory.php.
oxCategory::getIsVisible | ( | ) |
returns the visibility of a category, handles hidden and empty categories
Definition at line 455 of file oxcategory.php.
oxCategory::getLink | ( | $iLang = null | ) |
returns the url of the category
int | $iLang | language id |
Implements oxIUrl.
Definition at line 521 of file oxcategory.php.
oxCategory::getLongDesc | ( | ) |
Returns long description, parsed through smarty. should only be used by exports or so. In templates use [{oxeval var=$oCategory->oxcategories__oxlongdesc->getRawValue()}]
Definition at line 1072 of file oxcategory.php.
oxCategory::getNrOfArticles | ( | ) |
returns number or articles in category
Definition at line 417 of file oxcategory.php.
oxCategory::getParentCategory | ( | ) |
Returns parent category object for current category (if it is available).
Definition at line 748 of file oxcategory.php.
oxCategory::getPictureUrl | ( | ) |
oxCategory::getPictureUrlForType | ( | $sPicName, | |
$sPicType | |||
) |
Returns category picture url if exist, false - if not
string | $sPicName | picture name |
string | $sPicType | picture type related with picture dir: icon - icon; 0 - image |
Definition at line 1034 of file oxcategory.php.
oxCategory::getPromotionIconUrl | ( | ) |
Returns category promotion icon picture url if exist, false - if not
Definition at line 1018 of file oxcategory.php.
|
static |
Returns root category id of a child category
string | $sCategoryId | category id |
Definition at line 777 of file oxcategory.php.
oxCategory::getShortDescription | ( | ) |
oxCategory::getSqlActiveSnippet | ( | $blForceCoreTable = null | ) |
Returns SQL select string with checks if items are available
bool | $blForceCoreTable | forces core table usage (optional) |
Reimplemented from oxBase.
Definition at line 562 of file oxcategory.php.
oxCategory::getStdLink | ( | $iLang = null , |
|
$aParams = array() |
|||
) |
Returns standard URL to category
int | $iLang | language |
array | $aParams | additional params to use [optional] |
Implements oxIUrl.
Definition at line 606 of file oxcategory.php.
oxCategory::getSubCat | ( | $sKey | ) |
returns a specific sub category
string | $sKey | the key of the category |
Definition at line 322 of file oxcategory.php.
oxCategory::getSubCats | ( | ) |
oxCategory::getThumbUrl | ( | ) |
Returns category thumbnail picture url if exist, false - if not
Definition at line 1005 of file oxcategory.php.
oxCategory::getTitle | ( | ) |
oxCategory::isPriceCategory | ( | ) |
Returns true if current category is price type ( ( oxpricefrom || oxpriceto ) > 0 )
Definition at line 1061 of file oxcategory.php.
oxCategory::isTopCategory | ( | ) |
Returns true is category parent id is 'oxrootid'
Definition at line 1048 of file oxcategory.php.
oxCategory::load | ( | $sOXID | ) |
Load category data
string | $sOXID | id |
Reimplemented from oxBase.
Definition at line 216 of file oxcategory.php.
oxCategory::setContentCat | ( | $oContent, | |
$sKey = null |
|||
) |
sets a single category
oxCategory | $oContent | the category |
string | $sKey | optional, the key for that category, without a key, the category is just added to the array |
Definition at line 403 of file oxcategory.php.
oxCategory::setContentCats | ( | $aContent | ) |
Sets an array of content categories
array | $aContent | array of content |
Definition at line 390 of file oxcategory.php.
oxCategory::setExpanded | ( | $blExpanded | ) |
set the expanded state of the category
bool | $blExpanded | expanded status setter |
Definition at line 640 of file oxcategory.php.
oxCategory::setHasVisibleSubCats | ( | $blHasVisibleSubcats | ) |
sets the state of has visible sub categories for the category
bool | $blHasVisibleSubcats | marker if category has visible subcategories |
Definition at line 680 of file oxcategory.php.
oxCategory::setIsVisible | ( | $blVisible | ) |
sets the visibility of a category
bool | $blVisible | category visibility status setter |
Definition at line 478 of file oxcategory.php.
oxCategory::setLink | ( | $sLink | ) |
sets the url of the category
string | $sLink | category url |
Definition at line 545 of file oxcategory.php.
oxCategory::setNrOfArticles | ( | $iNum | ) |
sets the number or articles in category
int | $iNum | category product count setter |
Definition at line 445 of file oxcategory.php.
oxCategory::setParentCategory | ( | $oCategory | ) |
Set parent category object for internal usage only.
oxCategory | $oCategory | parent category object |
Definition at line 738 of file oxcategory.php.
oxCategory::setSubCat | ( | $oCat, | |
$sKey = null |
|||
) |
sets a single category, handles sorting and parent hasVisibleSubCats
oxCategory | $oCat | the category |
string | $sKey | (optional, default=null) the key for that category, without a key, the category is just added to the array |
Definition at line 357 of file oxcategory.php.
oxCategory::setSubCats | ( | $aCats | ) |
Sets an array of sub categories, also handles parent hasVisibleSubCats
array | $aCats | array of categories |
Definition at line 334 of file oxcategory.php.
|
staticprotected |
Definition at line 111 of file oxcategory.php.
|
protected |
Definition at line 21 of file oxcategory.php.
|
protected |
Definition at line 105 of file oxcategory.php.
|
protected |
Definition at line 98 of file oxcategory.php.
|
protected |
Definition at line 15 of file oxcategory.php.
|
protected |
Definition at line 49 of file oxcategory.php.
|
protected |
Definition at line 56 of file oxcategory.php.
|
protected |
Definition at line 63 of file oxcategory.php.
|
protected |
Definition at line 70 of file oxcategory.php.
|
protected |
Definition at line 42 of file oxcategory.php.
|
protected |
Definition at line 91 of file oxcategory.php.
|
protected |
Definition at line 77 of file oxcategory.php.
|
protected |
Definition at line 35 of file oxcategory.php.
|
protected |
Definition at line 118 of file oxcategory.php.
|
protected |
Definition at line 28 of file oxcategory.php.
|
protected |
Definition at line 84 of file oxcategory.php.