Class cApiCategoryArticleCollection
Category article collection
- cGenericDb
- cItemBaseAbstract
- ItemCollection
- cApiCategoryArticleCollection
Package: Core\GenericDB\Model
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Timo Hummel
Located at classes/contenido/class.categoryarticle.php
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Timo Hummel
Located at classes/contenido/class.categoryarticle.php
public
|
|
public
|
|
public
|
#
fetchFirstFromTreeByClientIdAndLangId( integer $client, integer $lang )
Returns the first category article available entry from category tree by client id and language id. Build a complex query trough several tables to get a ordered tree structure and returns first available category article item. |
public
|
#
fetchByCategoryIdAndArticleId( integer $idcat, integer $idart )
Returns a category article entry by category id and article id. |
public
integer
|
#
getIdByCategoryIdAndArticleId( integer $idcat, integer $idart )
Returns a category article id by category id and article id. |
public
array
|
|
public
array
|
#
getCategoryIdsByArticleId( integer $idart )
Returns all available category ids of entries having a secific article id |
public
boolean
|
#
getHasArticles( integer $idcat, integer $idlang )
Checks, if passed category contains any articles in specified language. |
public
integer
|
#
setCreateCodeFlag( integer|array $idcatart, integer $createcode = 1 )
Sets 'createcode' flag for one or more category articles. |
_getPropertiesCollectionInstance(),
_getSecondDBInstance(),
escape()
|
_executeCallbacks(),
register(),
unregister()
|
CREATE_BEFORE,
CREATE_FAILURE,
CREATE_SUCCESS,
DELETE_BEFORE,
DELETE_FAILURE,
DELETE_SUCCESS,
STORE_BEFORE,
STORE_FAILURE,
STORE_SUCCESS
|
$_className,
$_oCache,
$_settings,
$db,
$lasterror,
$primaryKey,
$properties,
$secondDb,
$table,
$virgin
|