Class Item
Class Item Abstract class for database based items.
Direct known subclasses
ArticleForum, ArticleForumItem, cApiCategoryLanguage, cApiCategoryTree, cApiClient, cApiClientLanguage, cApiCommunication, cApiContainer, cApiContainerConfiguration, cApiContent, cApiDbfs, cApiFile, cApiAction, cApiFileInformation, cApiFrameFile, cApiFrontendGroup, cApiFrontendGroupMember, cApiFrontendPermission, cApiFrontendUser, cApiGroup, cApiGroupMember, cApiGroupProperty, cApiInUse, cApiActionlog, cApiIso3166, cApiIso6392, cApiKeyword, cApiLanguage, cApiLayout, cApiMailLog, cApiMailLogSuccess, cApiMetaTag, cApiMetaType, cApiModule, cApiArea, cApiNavMain, cApiNavSub, cApiOnlineUser, cApiPathresolveCache, cApiProperty, cApiRight, cApiShortUrl, cApiStat, cApiSystemProperty, cApiTemplate, cApiArticle, cApiTemplateConfiguration, cApiType, cApiUpload, cApiUploadMeta, cApiUser, cApiUserProperty, Newsletter, NewsletterJob, NewsletterLog, NewsletterRecipient, cApiArticleLanguage, NewsletterRecipientGroup, NewsletterRecipientGroupMember, PifaField, PifaForm, PimPlugin, PimPluginRelations, Workflow, WorkflowAction, WorkflowAllocation, WorkflowArtAllocation, cApiArticleSpecification, WorkflowItem, WorkflowTask, WorkflowUserSequence, cApiCategory, cApiCategoryArticlePackage: Core\GenericDB
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Timo Hummel
Author: Murat Purc <murat@purc.de>
Located at classes/genericdb/class.item.php
public
|
|
public
|
|
public
boolean
|
|
public
boolean
|
#
loadByMany( array $aAttributes, boolean $bSafe = true )
Loads an item by colums/fields from the database. |
protected
boolean
|
#
_loadByWhereClause( string $sWhere )
Loads an item by passed where clause from the database. This function is expensive, since it executes allways a query to the database to retrieve the primary key, even if the record set is aleady cached. NOTE: Passed value has to be escaped before. This will not be done by this function. |
public
boolean
|
|
public
|
|
public
boolean
|
|
protected
|
|
public
mixed
|
|
public
mixed
|
|
public
|
|
public
|
|
public
boolean
|
|
public
array|false
|
|
public
stdClass|false
|
|
public
boolean
|
#
setProperty( string $sType, string $sName, mixed $mValue, integer $iClient = 0 )
Sets a custom property. |
public
mixed
|
|
public
boolean
|
|
public
boolean
|
|
public
|
#
setFilters( array $aInFilters = array(), array $aOutFilters = array() )
Define the filter functions used when data is being stored or retrieved from the database. |
public
mixed
|
|
protected
mixed
|
#
_outFilter( mixed $mData )
Filters the passed data using the functions defines in the _arrOutFilters array. |
protected
|
|
public
|
_getPropertiesCollectionInstance(),
_getSecondDBInstance(),
escape()
|
_executeCallbacks(),
register(),
unregister()
|
CREATE_BEFORE,
CREATE_FAILURE,
CREATE_SUCCESS,
DELETE_BEFORE,
DELETE_FAILURE,
DELETE_SUCCESS,
STORE_BEFORE,
STORE_FAILURE,
STORE_SUCCESS
|
public
array
|
$values |
|
#
Storage of the source table to use for the user informations |
protected
array
|
$modifiedValues |
|
#
Storage of the fields which were modified, where the keys are the fieldnames and the values just simple booleans. |
protected
string
|
$oldPrimaryKey |
|
#
Stores the old primary key, just in case somebody wants to change it |
protected
array
|
$_arrInFilters | array('htmlspecialchars', 'addslashes') |
#
List of funcion names of the filters used when data is stored to the db. |
protected
array
|
$_arrOutFilters | array('stripslashes', 'htmldecode') |
#
List of funcion names of the filtersused when data is retrieved from the db |
protected
string
|
$_metaObject |
|
#
Class name of meta object |
protected
string
|
$_lastSQL |
|
#
Last executed SQL statement |
$_className,
$_oCache,
$_settings,
$db,
$lasterror,
$primaryKey,
$properties,
$secondDb,
$table,
$virgin
|