OXID eShop CE
6.4.2
|
Static Public Member Functions | |
static | getRootId ($sCategoryId) |
Protected Member Functions | |
_loadFromDb ($sOXID) | |
getAdditionalSqlFilter ($forceCoreTable) | |
_insert () | |
_update () | |
_setFieldData ($fieldName, $value, $dataType=\OxidEsales\Eshop\Core\Field::T_TEXT) | |
Protected Attributes | |
$_aSubCats = [] | |
$_aContentCats = [] | |
$_sClassName = 'oxcategory' | |
$_iNrOfArticles | |
$_blIsVisible | |
$_blExpanded | |
$_blHasSubCats | |
$_blHasVisibleSubCats | |
$_blIsSeoObject = true | |
$_blUseLazyLoading = false | |
$_sDynImageDir = null | |
$_blTopCategory = null | |
$_aStdUrls = [] | |
$_aSeoUrls = [] | |
$_oParent = null | |
Static Protected Attributes | |
static | $_aCatAttributes = [] |
Category manager. Collects category information (articles, etc.), performs insertion/deletion of categories nodes. By recursion methods are set structure of category.
OxidEsales\EshopCommunity\Application\Model\Category::__construct | ( | ) |
Class constructor, initiates parent constructor (parent::oxI18n()).
OxidEsales\EshopCommunity\Application\Model\Category::__get | ( | $sName | ) |
Extra getter to guarantee compatibility with templates
string | $sName | name of variable to get |
|
protected |
Inserts new category (and updates existing node oxLeft amd oxRight accordingly). Returns true on success.
|
protected |
Get data from db
string | $sOXID | id |
|
protected |
Sets data field value
string | $fieldName | index OR name (eg. 'oxarticles__oxtitle') of a data field to set |
string | $value | value of data field |
int | $dataType | field type |
|
protected |
Updates category tree, returns true on success.
OxidEsales\EshopCommunity\Application\Model\Category::assign | ( | $dbRecord | ) |
Loads and assigns object data from DB.
mixed | $dbRecord | database record array |
OxidEsales\EshopCommunity\Application\Model\Category::assignViewableRecord | ( | $sSelect | ) |
Before assigning the record from SQL it checks for viewable rights
string | $sSelect | SQL select |
OxidEsales\EshopCommunity\Application\Model\Category::delete | ( | $sOXID = null | ) |
Delete empty categories, returns true on success.
string | $sOXID | Object ID |
|
protected |
Additional SQL conditions for selecting articles snippet
bool | $forceCoreTable |
OxidEsales\EshopCommunity\Application\Model\Category::getAttributes | ( | ) |
Loads and returns attribute list associated with this category
OxidEsales\EshopCommunity\Application\Model\Category::getBaseSeoLink | ( | $iLang, | |
$iPage = 0 |
|||
) |
Returns raw category seo url
int | $iLang | language id |
int | $iPage | page number [optional] |
OxidEsales\EshopCommunity\Application\Model\Category::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] |
OxidEsales\EshopCommunity\Application\Model\Category::getCatInLang | ( | $oActCategory = null | ) |
Loads and returns category in base language
object | $oActCategory | active category |
OxidEsales\EshopCommunity\Application\Model\Category::getContentCats | ( | ) |
returns the content category array
OxidEsales\EshopCommunity\Application\Model\Category::getDefaultSorting | ( | ) |
Gets default sorting value
OxidEsales\EshopCommunity\Application\Model\Category::getDefaultSortingMode | ( | ) |
Gets default sorting mode value
OxidEsales\EshopCommunity\Application\Model\Category::getExpanded | ( | ) |
returns the expanded state of the category
OxidEsales\EshopCommunity\Application\Model\Category::getFieldFromSubCategories | ( | $sField = 'OXID' , |
|
$sOXID = null |
|||
) |
Gets one field from all of subcategories. Default is set to 'OXID'
string | $sField | field to be retrieved from each subcategory |
string | $sOXID | Cetegory ID |
OxidEsales\EshopCommunity\Application\Model\Category::getHasSubCats | ( | ) |
returns if a category has sub categories
OxidEsales\EshopCommunity\Application\Model\Category::getHasVisibleSubCats | ( | ) |
returns if a category has visible sub categories
OxidEsales\EshopCommunity\Application\Model\Category::getIconUrl | ( | ) |
Returns category icon picture url if exist, false - if not
OxidEsales\EshopCommunity\Application\Model\Category::getIsVisible | ( | ) |
returns the visibility of a category, handles hidden and empty categories
OxidEsales\EshopCommunity\Application\Model\Category::getLink | ( | $iLang = null | ) |
returns the url of the category
int | $iLang | language id |
OxidEsales\EshopCommunity\Application\Model\Category::getLongDesc | ( | ) |
Returns long description, parsed through smarty. should only be used by exports or so. In templates use [{oxeval var=$oCategory->oxcategories__oxlongdesc->getRawValue()}]
OxidEsales\EshopCommunity\Application\Model\Category::getNrOfArticles | ( | ) |
returns number or articles in category
OxidEsales\EshopCommunity\Application\Model\Category::getParentCategory | ( | ) |
Returns parent category object for current category (if it is available).
OxidEsales\EshopCommunity\Application\Model\Category::getPictureUrl | ( | ) |
Returns dyn image dir
OxidEsales\EshopCommunity\Application\Model\Category::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 |
OxidEsales\EshopCommunity\Application\Model\Category::getPromotionIconUrl | ( | ) |
Returns category promotion icon picture url if exist, false - if not
|
static |
Returns root category id of a child category
string | $sCategoryId | category id |
OxidEsales\EshopCommunity\Application\Model\Category::getShortDescription | ( | ) |
Returns short description
OxidEsales\EshopCommunity\Application\Model\Category::getSqlActiveSnippet | ( | $blForceCoreTable = null | ) |
Returns SQL select string with checks if items are available
bool | $blForceCoreTable | forces core table usage (optional) |
OxidEsales\EshopCommunity\Application\Model\Category::getStdLink | ( | $iLang = null , |
|
$aParams = [] |
|||
) |
Returns standard URL to category
int | $iLang | language |
array | $aParams | additional params to use [optional] |
OxidEsales\EshopCommunity\Application\Model\Category::getSubCat | ( | $sKey | ) |
returns a specific sub category
string | $sKey | the key of the category |
OxidEsales\EshopCommunity\Application\Model\Category::getSubCats | ( | ) |
returns the sub category array
OxidEsales\EshopCommunity\Application\Model\Category::getThumbUrl | ( | ) |
Returns category thumbnail picture url if exist, false - if not
OxidEsales\EshopCommunity\Application\Model\Category::getTitle | ( | ) |
Returns category title
OxidEsales\EshopCommunity\Application\Model\Category::isPriceCategory | ( | ) |
Returns true if current category is price type ( ( oxpricefrom || oxpriceto ) > 0 )
OxidEsales\EshopCommunity\Application\Model\Category::isTopCategory | ( | ) |
Returns true if category parentid is 'oxrootid'
OxidEsales\EshopCommunity\Application\Model\Category::load | ( | $sOXID | ) |
Load category data
string | $sOXID | id |
OxidEsales\EshopCommunity\Application\Model\Category::setContentCat | ( | $oContent, | |
$sKey = null |
|||
) |
sets a single category
\OxidEsales\Eshop\Application\Model\Category | $oContent | the category |
string | $sKey | optional, the key for that category, without a key, the category is just added to the array |
OxidEsales\EshopCommunity\Application\Model\Category::setContentCats | ( | $aContent | ) |
Sets an array of content categories
array | $aContent | array of content |
OxidEsales\EshopCommunity\Application\Model\Category::setExpanded | ( | $blExpanded | ) |
set the expanded state of the category
bool | $blExpanded | expanded status setter |
OxidEsales\EshopCommunity\Application\Model\Category::setHasVisibleSubCats | ( | $blHasVisibleSubcats | ) |
sets the state of has visible sub categories for the category
bool | $blHasVisibleSubcats | marker if category has visible subcategories |
OxidEsales\EshopCommunity\Application\Model\Category::setIsVisible | ( | $blVisible | ) |
sets the visibility of a category
bool | $blVisible | category visibility status setter |
OxidEsales\EshopCommunity\Application\Model\Category::setLink | ( | $sLink | ) |
sets the url of the category
string | $sLink | category url |
OxidEsales\EshopCommunity\Application\Model\Category::setNrOfArticles | ( | $iNum | ) |
sets the number or articles in category
int | $iNum | category product count setter |
OxidEsales\EshopCommunity\Application\Model\Category::setParentCategory | ( | $oCategory | ) |
Set parent category object for internal usage only.
\OxidEsales\Eshop\Application\Model\Category | $oCategory | parent category object |
OxidEsales\EshopCommunity\Application\Model\Category::setSubCat | ( | $oCat, | |
$sKey = null |
|||
) |
sets a single category, handles sorting and parent hasVisibleSubCats
\OxidEsales\Eshop\Application\Model\Category | $oCat | the category |
string | $sKey | (optional, default=null) the key for that category, without a key, the category is just added to the array |
OxidEsales\EshopCommunity\Application\Model\Category::setSubCats | ( | $aCats | ) |
Sets an array of sub categories, also handles parent hasVisibleSubCats
array | $aCats | array of categories |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |