Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes

oxVendor Class Reference

Inheritance diagram for oxVendor:
Collaboration diagram for oxVendor:

List of all members.

Public Member Functions

 __construct ()
 __get ($sName)
 setShowArticleCnt ($blShowArticleCount=false)
 assign ($dbRecord)
 load ($sOxid)
 getBaseSeoLink ($iLang, $iPage=0)
 getLink ($iLang=null)
 getBaseStdLink ($iLang, $blAddId=true, $blFull=true)
 getStdLink ($iLang=null, $aParams=array())
 getNrOfArticles ()
 getSubCats ()
 getIsVisible ()
 setIsVisible ($blVisible)
 getHasVisibleSubCats ()
 setHasVisibleSubCats ($blHasVisibleSubcats)
 getContentCats ()
 delete ($sOXID=null)
 getIconUrl ()
 getThumbUrl ()
 getTitle ()

Protected Member Functions

 _setRootObjectData ()

Protected Attributes

 $_sCoreTbl = 'oxvendor'
 $_sClassName = 'oxvendor'
 $_blShowArticleCnt = false
 $_iNrOfArticles = -1
 $_blIsSeoObject = true
 $_blIsVisible
 $_blHasVisibleSubCats
 $_aSeoUrls = array()

Static Protected Attributes

static $_aRootVendor = array()

Detailed Description

Definition at line 5 of file oxvendor.php.


Constructor & Destructor Documentation

oxVendor.__construct (  ) 

Class constructor, initiates parent constructor (parent.oxI18n()).

Definition at line 64 of file oxvendor.php.


Member Function Documentation

oxVendor.__get ( sName  ) 

Extra getter to guarantee compatibility with templates

Parameters:
string $sName name of variable to return
Deprecated:
since 2011.05.25, must be used related getters instead
Returns:
mixed

Definition at line 80 of file oxvendor.php.

oxVendor._setRootObjectData (  )  [protected]

Sets root vendor data. Returns true

Returns:
bool

Definition at line 157 of file oxvendor.php.

oxVendor.assign ( dbRecord  ) 

Assigns to $this object some base parameters/values.

Parameters:
array $dbRecord parameters/values
Returns:
null

Definition at line 124 of file oxvendor.php.

oxVendor.delete ( sOXID = null  ) 

Delete this object from the database, returns true on success.

Parameters:
string $sOXID Object ID(default null)
Returns:
bool

Definition at line 332 of file oxvendor.php.

oxVendor.getBaseSeoLink ( iLang,
iPage = 0 
)

Returns raw content seo url

Parameters:
int $iLang language id
int $iPage page number [optional]
Returns:
string

Definition at line 175 of file oxvendor.php.

oxVendor.getBaseStdLink ( iLang,
blAddId = true,
blFull = true 
)

Returns base dynamic url: shopurl/index.php?cl=details

Parameters:
int $iLang language id
bool $blAddId add current object id to url or not
bool $blFull return full including domain name [optional]
Returns:
string

Implements oxIUrl.

Definition at line 217 of file oxvendor.php.

oxVendor.getContentCats (  ) 

Empty method, called in templates when vendor is used in same code like category

Returns:
null

Definition at line 321 of file oxvendor.php.

oxVendor.getHasVisibleSubCats (  ) 

returns if a vendor has visible sub categories

Returns:
bool

Definition at line 295 of file oxvendor.php.

oxVendor.getIconUrl (  ) 

Returns article picture

Returns:
string

Definition at line 347 of file oxvendor.php.

oxVendor.getIsVisible (  ) 

returns the visibility of a vendor

Returns:
bool

Definition at line 273 of file oxvendor.php.

oxVendor.getLink ( iLang = null  ) 

Returns vendor link Url

Parameters:
int $iLang language id [optional]
Returns:
string

Implements oxIUrl.

Definition at line 191 of file oxvendor.php.

oxVendor.getNrOfArticles (  ) 

returns number or articles of this vendor

Returns:
integer

Definition at line 250 of file oxvendor.php.

oxVendor.getStdLink ( iLang = null,
aParams = array() 
)

Returns standard URL to vendor

Parameters:
int $iLang language
array $aParams additional params to use [optional]
Returns:
string

Implements oxIUrl.

Definition at line 236 of file oxvendor.php.

oxVendor.getSubCats (  ) 

returns the sub category array

Returns:
array

Definition at line 264 of file oxvendor.php.

oxVendor.getThumbUrl (  ) 

Returns category thumbnail picture url if exist, false - if not

Returns:
mixed

Definition at line 365 of file oxvendor.php.

oxVendor.getTitle (  ) 

Returns vendor title

Returns:
string

Definition at line 375 of file oxvendor.php.

oxVendor.load ( sOxid  ) 

Loads object data from DB (object data ID is passed to method). Returns true on success.

Parameters:
string $sOxid object id
Returns:
oxvendor

Definition at line 144 of file oxvendor.php.

oxVendor.setHasVisibleSubCats ( blHasVisibleSubcats  ) 

sets the state of has visible sub vendors

Parameters:
bool $blHasVisibleSubcats marker if vendor has visible subcategories
Returns:
null

Definition at line 311 of file oxvendor.php.

oxVendor.setIsVisible ( blVisible  ) 

sets the visibilty of a category

Parameters:
bool $blVisible vendors visibility status setter
Returns:
null

Definition at line 285 of file oxvendor.php.

oxVendor.setShowArticleCnt ( blShowArticleCount = false  ) 

Marker to load vendor article count info setter

Parameters:
bool $blShowArticleCount Marker to load vendor article count
Returns:
null

Definition at line 112 of file oxvendor.php.


Member Data Documentation

oxVendor.$_aRootVendor = array() [static, protected]

Definition at line 8 of file oxvendor.php.

oxVendor.$_aSeoUrls = array() [protected]

Definition at line 59 of file oxvendor.php.

oxVendor.$_blHasVisibleSubCats [protected]

Definition at line 52 of file oxvendor.php.

oxVendor.$_blIsSeoObject = true [protected]

Definition at line 38 of file oxvendor.php.

oxVendor.$_blIsVisible [protected]

Definition at line 45 of file oxvendor.php.

oxVendor.$_blShowArticleCnt = false [protected]

Definition at line 24 of file oxvendor.php.

oxVendor.$_iNrOfArticles = -1 [protected]

Definition at line 31 of file oxvendor.php.

oxVendor.$_sClassName = 'oxvendor' [protected]

Definition at line 17 of file oxvendor.php.

oxVendor.$_sCoreTbl = 'oxvendor' [protected]

Definition at line 12 of file oxvendor.php.


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