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, cApiSearchTracking, cApiShortUrl, cApiStat, cApiSystemProperty, cApiArticle, cApiTemplate, cApiTemplateConfiguration, cApiType, cApiUpload, cApiUploadMeta, cApiUser, cApiUserPasswordRequest, cApiUserProperty, Newsletter, NewsletterJob, cApiArticleLanguage, NewsletterLog, NewsletterRecipient, NewsletterRecipientGroup, NewsletterRecipientGroupMember, PifaField, PifaForm, PimPlugin, PimPluginRelations, Workflow, WorkflowAction, cApiArticleSpecification, WorkflowAllocation, WorkflowArtAllocation, 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
|
|
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. |
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
boolean
|
|
public
|
|
public
boolean
|
|
public
array
|
|
public
stdClass
|
|
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
|
|
public
mixed
|
|
protected
|
|
public
object
|
#
getMetaObject( )
Return meta object instance. This object might be retrieved from a global cache ($_metaObjectCache). |
_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
List of funcion names of the filters used when data is stored to the db. |
#
array(
'htmlspecialchars',
'addslashes'
)
|
protected
array
|
$_arrOutFilters
List of funcion names of the filtersused when data is retrieved from the db |
#
array(
'stripslashes',
'htmldecode'
)
|
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
|