Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cApiAction
  • cApiActionCollection
  • cApiActionlog
  • cApiActionlogCollection
  • cApiArea
  • cApiAreaCollection
  • cApiArticle
  • cApiArticleCollection
  • cApiArticleLanguage
  • cApiArticleLanguageCollection
  • cApiArticleLanguageVersion
  • cApiArticleLanguageVersionCollection
  • cApiArticleSpecification
  • cApiArticleSpecificationCollection
  • cApiCategory
  • cApiCategoryArticle
  • cApiCategoryArticleCollection
  • cApiCategoryCollection
  • cApiCategoryLanguage
  • cApiCategoryLanguageCollection
  • cApiCategoryTree
  • cApiCategoryTreeCollection
  • cApiClient
  • cApiClientCollection
  • cApiClientLanguage
  • cApiClientLanguageCollection
  • cApiCommunication
  • cApiCommunicationCollection
  • cApiContainer
  • cApiContainerCollection
  • cApiContainerConfiguration
  • cApiContainerConfigurationCollection
  • cApiContent
  • cApiContentCollection
  • cApiContentVersion
  • cApiContentVersionCollection
  • cApiDbfs
  • cApiDbfsCollection
  • cApiFile
  • cApiFileCollection
  • cApiFileInformation
  • cApiFileInformationCollection
  • cApiFrameFile
  • cApiFrameFileCollection
  • cApiFrontendGroup
  • cApiFrontendGroupCollection
  • cApiFrontendGroupMember
  • cApiFrontendGroupMemberCollection
  • cApiFrontendPermission
  • cApiFrontendPermissionCollection
  • cApiFrontendUser
  • cApiFrontendUserCollection
  • cApiGroup
  • cApiGroupCollection
  • cApiGroupMember
  • cApiGroupMemberCollection
  • cApiGroupProperty
  • cApiGroupPropertyCollection
  • cApiInUse
  • cApiInUseCollection
  • cApiIso3166
  • cApiIso3166Collection
  • cApiIso6392
  • cApiIso6392Collection
  • cApiKeyword
  • cApiKeywordCollection
  • cApiLanguage
  • cApiLanguageCollection
  • cApiLayout
  • cApiLayoutCollection
  • cApiMailLog
  • cApiMailLogCollection
  • cApiMailLogSuccess
  • cApiMailLogSuccessCollection
  • cApiMetaTag
  • cApiMetaTagCollection
  • cApiMetaTagVersion
  • cApiMetaTagVersionCollection
  • cApiMetaType
  • cApiMetaTypeCollection
  • cApiModule
  • cApiModuleCollection
  • cApiNavMain
  • cApiNavMainCollection
  • cApiNavSub
  • cApiNavSubCollection
  • cApiOnlineUser
  • cApiOnlineUserCollection
  • cApiPathresolveCache
  • cApiPathresolveCacheCollection
  • cApiProperty
  • cApiPropertyCollection
  • cApiRight
  • cApiRightCollection
  • cApiSearchTracking
  • cApiSearchTrackingCollection
  • cApiStat
  • cApiStatCollection
  • cApiSystemProperty
  • cApiSystemPropertyCollection
  • cApiTemplate
  • cApiTemplateCollection
  • cApiTemplateConfiguration
  • cApiTemplateConfigurationCollection
  • cApiType
  • cApiTypeCollection
  • cApiUpload
  • cApiUploadCollection
  • cApiUploadMeta
  • cApiUploadMetaCollection
  • cApiUser
  • cApiUserCollection
  • cApiUserPasswordRequest
  • cApiUserPasswordRequestCollection
  • cApiUserProperty
  • cApiUserPropertyCollection
  • NoteCollection
  • NoteItem
  • TODOCollection
  • TODOItem
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cApiCategoryArticleCollection

Category article collection

cGenericDb
Extended by cItemBaseAbstract
Extended by ItemCollection
Extended by 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
Methods summary
public
# __construct( string $select = false )

Constructor to create an instance of this class.

Constructor to create an instance of this class.

Parameters

$select
string
$select [optional] where clause to use for selection (see ItemCollection::select())

Throws

cInvalidArgumentException
If table name or primary key is not set

Overrides

ItemCollection::__construct()
public cApiCategoryArticle
# create( integer $idcat, integer $idart, integer $status = 0, string $author = "", string $created = "", string $lastmodified = "", integer $createcode = 1 )

Creates an article item entry

Creates an article item entry

Parameters

$idcat
integer
$idcat
$idart
integer
$idart
$status
integer
$status [optional]
$author
string
$author [optional]
$created
string
$created [optional]
$lastmodified
string
$lastmodified [optional]
$createcode
integer
$createcode [optional]

Returns

cApiCategoryArticle
public cApiCategoryArticle|null
# 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.

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.

Parameters

$client
integer
$client
$lang
integer
$lang

Returns

cApiCategoryArticle|null
public cApiCategoryArticle|null
# fetchByCategoryIdAndArticleId( integer $idcat, integer $idart )

Returns a category article entry by category id and article id.

Returns a category article entry by category id and article id.

Parameters

$idcat
integer
$idcat
$idart
integer
$idart

Returns

cApiCategoryArticle|null
public integer|null
# getIdByCategoryIdAndArticleId( integer $idcat, integer $idart )

Returns a category article id by category id and article id.

Returns a category article id by category id and article id.

Parameters

$idcat
integer
$idcat
$idart
integer
$idart

Returns

integer|null
public array
# getAllIdsByClientId( integer $idclient )

Returns all category article ids by client id.

Returns all category article ids by client id.

Parameters

$idclient
integer
$idclient

Returns

array
public array
# getCategoryIdsByArticleId( integer $idart )

Returns all available category ids of entries having a secific article id

Returns all available category ids of entries having a secific article id

Parameters

$idart
integer
$idart

Returns

array
public boolean
# getHasArticles( integer $idcat, integer $idlang )

Checks, if passed category contains any articles in specified language.

Checks, if passed category contains any articles in specified language.

Parameters

$idcat
integer
$idcat Category id
$idlang
integer
$idlang Language id

Returns

boolean
public integer
# setCreateCodeFlag( integer|array $idcatart, integer $createcode = 1 )

Sets 'createcode' flag for one or more category articles.

Sets 'createcode' flag for one or more category articles.

Parameters

$idcatart
integer|array
$idcatart One category article id or list of category article ids
$createcode
integer
$createcode [optional] Create code state, either 1 or 0.

Returns

integer
Number of updated entries
Methods inherited from ItemCollection
_buildGroupWhereStatements(), _buildWhereStatements(), _delete(), _deleteMultiple(), _fetchJoinTables(), _findReverseJoinPartner(), _initializeDriver(), _recursiveStructuredFetch(), _resolveLinks(), _setItemClass(), _setJoinPartner(), addResultField(), copyItem(), count(), createNewItem(), delete(), deleteBy(), deleteByWhereClause(), deleteWhere(), deleteWhereGroup(), exists(), fetchArray(), fetchById(), fetchObject(), fetchTable(), flexSelect(), getAllIds(), getFieldsByWhereClause(), getIdsByWhereClause(), link(), loadItem(), next(), query(), queryAndFetchStructured(), removeResultField(), resetQuery(), select(), setEncoding(), setGroupCondition(), setInnerGroupCondition(), setLimit(), setOrder(), setWhere(), setWhereGroup()
Methods inherited from cItemBaseAbstract
__get(), __set(), _getPropertiesCollectionInstance(), _getSecondDBInstance(), _resetItem(), _setLoaded(), _setPrimaryKeyName(), escape(), getPrimaryKeyName(), isLoaded()
Methods inherited from cGenericDb
_executeCallbacks(), register(), unregister()
Constants inherited from cGenericDb
CREATE_BEFORE, CREATE_FAILURE, CREATE_SUCCESS, DELETE_BEFORE, DELETE_FAILURE, DELETE_SUCCESS, STORE_BEFORE, STORE_FAILURE, STORE_SUCCESS
Properties inherited from ItemCollection
$_JoinPartners, $_aOperators, $_bAllMode, $_collectionCache, $_driver, $_encoding, $_forwardJoinPartners, $_groupConditions, $_innerGroupConditions, $_itemClass, $_itemClassInstance, $_iteratorItem, $_lastSQL, $_limitCount, $_limitStart, $_links, $_order, $_resultFields, $_where, $_whereRestriction, $objects
Properties inherited from cItemBaseAbstract
$_className, $_loaded, $_oCache, $_primaryKeyName, $_settings, $db, $lasterror, $properties, $secondDb, $table
CMS CONTENIDO 4.9.11 API documentation generated by ApiGen 2.8.0