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
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • ArticleForum
  • cGenericDb
  • cGenericDbDriver
  • cGenericDbDriverMysql
  • cItemBaseAbstract
  • cItemCache
  • Item
  • ItemCollection
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class cItemBaseAbstract

Class cItemBaseAbstract. Base class with common features for database based items and item collections.

NOTE: Because of required downwards compatibilitiy all protected/private member variables or methods don't have an leading underscore.

cGenericDb
Extended by cItemBaseAbstract

Direct known subclasses

Item, ItemCollection

Indirect known subclasses

ArticleForum, ArticleForumCollection, cApiArticleCollection, cApiTemplateCollection, cApiTemplateConfiguration, cApiTemplateConfigurationCollection, cApiType, cApiTypeCollection, cApiUpload, cApiUploadCollection, cApiUploadMeta, cApiUploadMetaCollection, cApiUser, cApiArticleLanguage, cApiUserCollection, cApiUserPasswordRequest, cApiUserPasswordRequestCollection, cApiUserProperty, cApiUserPropertyCollection, Newsletter, NewsletterCollection, NewsletterJob, NewsletterJobCollection, NewsletterLog, cApiArticleLanguageCollection, NewsletterLogCollection, NewsletterRecipient, NewsletterRecipientCollection, NewsletterRecipientGroup, NewsletterRecipientGroupCollection, NewsletterRecipientGroupMember, NewsletterRecipientGroupMemberCollection, NoteCollection, NoteItem, PifaField, cApiArticleSpecification, PifaFieldCollection, PifaForm, PifaFormCollection, PimPlugin, PimPluginCollection, PimPluginRelations, PimPluginRelationsCollection, TODOCollection, TODOItem, Workflow, cApiArticleSpecificationCollection, WorkflowAction, WorkflowActions, WorkflowAllocation, WorkflowAllocations, WorkflowArtAllocation, WorkflowArtAllocations, WorkflowItem, WorkflowItems, Workflows, WorkflowTask, cApiCategory, WorkflowTasks, WorkflowUserSequence, WorkflowUserSequences, cApiCategoryArticle, cApiCategoryArticleCollection, cApiCategoryCollection, cApiCategoryLanguage, ArticleForumItem, cApiCategoryLanguageCollection, cApiCategoryTree, cApiCategoryTreeCollection, cApiClient, cApiClientCollection, cApiClientLanguage, cApiClientLanguageCollection, cApiCommunication, cApiCommunicationCollection, cApiContainer, cApiAction, cApiContainerCollection, cApiContainerConfiguration, cApiContainerConfigurationCollection, cApiContent, cApiContentCollection, cApiDbfs, cApiDbfsCollection, cApiFile, cApiFileCollection, cApiFileInformation, cApiActionCollection, cApiFileInformationCollection, cApiFrameFile, cApiFrameFileCollection, cApiFrontendGroup, cApiFrontendGroupCollection, cApiFrontendGroupMember, cApiFrontendGroupMemberCollection, cApiFrontendPermission, cApiFrontendPermissionCollection, cApiFrontendUser, cApiActionlog, cApiFrontendUserCollection, cApiGroup, cApiGroupCollection, cApiGroupMember, cApiGroupMemberCollection, cApiGroupProperty, cApiGroupPropertyCollection, cApiInUse, cApiInUseCollection, cApiIso3166, cApiActionlogCollection, cApiIso3166Collection, cApiIso6392, cApiIso6392Collection, cApiKeyword, cApiKeywordCollection, cApiLanguage, cApiLanguageCollection, cApiLayout, cApiLayoutCollection, cApiMailLog, cApiArea, cApiMailLogCollection, cApiMailLogSuccess, cApiMailLogSuccessCollection, cApiMetaTag, cApiMetaTagCollection, cApiMetaType, cApiMetaTypeCollection, cApiModule, cApiModuleCollection, cApiNavMain, cApiAreaCollection, cApiNavMainCollection, cApiNavSub, cApiNavSubCollection, cApiOnlineUser, cApiOnlineUserCollection, cApiPathresolveCache, cApiPathresolveCacheCollection, cApiProperty, cApiPropertyCollection, cApiRight, cApiArticle, cApiRightCollection, cApiSearchTracking, cApiSearchTrackingCollection, cApiShortUrl, cApiShortUrlCollection, cApiStat, cApiStatCollection, cApiSystemProperty, cApiSystemPropertyCollection, cApiTemplate
Abstract
Package: Core\GenericDB
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Murat Purc murat@purc.de
Located at classes/genericdb/class.item.base.abstract.php
Methods summary
protected
# __construct( string $sTable, string $sPrimaryKey, string $sClassName )

Sets some common properties

Sets some common properties

Parameters

$sTable
Name of table
$sPrimaryKey
Primary key of table
$sClassName
Name of parent class

Throws

cInvalidArgumentException
If table name or primary key is not set
protected
# _resetItem( )

Resets class variables back to default This is handy in case a new item is tried to be loaded into this class instance.

Resets class variables back to default This is handy in case a new item is tried to be loaded into this class instance.

public string
# escape( string $sString )

Escape string for using in SQL-Statement.

Escape string for using in SQL-Statement.

Parameters

$sString
The string to escape

Returns

string
Escaped string
protected cDb
# _getSecondDBInstance( )

Returns the second database instance, usable to run additional statements without losing current query results.

Returns the second database instance, usable to run additional statements without losing current query results.

Returns

cDb
protected cApiPropertyCollection
# _getPropertiesCollectionInstance( integer $idclient = 0 )

Returns properties instance, instantiates it if not done before. NOTE: This funtion changes always the client variable of property collection instance.

Returns properties instance, instantiates it if not done before. NOTE: This funtion changes always the client variable of property collection instance.

Parameters

$idclient

Id of client to use in property collection. If not passed it uses global variable

Returns

cApiPropertyCollection
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 summary
protected cDb $db

Database instance, contains the database object

Database instance, contains the database object

#
protected cDb $secondDb

Second DB instance, is required for some additional queries without losing an current existing query result.

Second DB instance, is required for some additional queries without losing an current existing query result.

#
protected cApiPropertyCollection $properties

Property collection instance

Property collection instance

#
protected cItemCache $_oCache

Item cache instance

Item cache instance

#
protected array $_settings

GenericDB settings, see $cfg['sql']

GenericDB settings, see $cfg['sql']

#
protected string $table

Storage of the source table to use for the information

Storage of the source table to use for the information

#
public string $primaryKey

Storage of the primary key

Storage of the primary key

Todo

remove access from public
#
public boolean $virgin

Checks for the virginity of created objects. If true, the object is virgin and no operations on it except load-Functions are allowed.

Checks for the virginity of created objects. If true, the object is virgin and no operations on it except load-Functions are allowed.

Todo

remove access from public
# true
protected string $lasterror

Storage of the last occured error

Storage of the last occured error

# ''
protected string $_className

Classname of current instance

Classname of current instance

#
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen