Class Item
Class Item Abstract class for database based items.
Direct known subclasses
ArticleForum, ArticleForumItem, cApiCategoryLanguage, cApiCategoryTree, cApiClient, cApiClientLanguage, cApiCommunication, cApiContainer, cApiContainerConfiguration, cApiContent, cApiContentVersion, cApiDbfs, cApiAction, cApiFile, cApiFileInformation, cApiFrameFile, cApiFrontendGroup, cApiFrontendGroupMember, cApiFrontendPermission, cApiFrontendUser, cApiGroup, cApiGroupMember, cApiGroupProperty, cApiActionlog, cApiInUse, cApiIso3166, cApiIso6392, cApiKeyword, cApiLanguage, cApiLayout, cApiMailLog, cApiMailLogSuccess, cApiMetaTag, cApiMetaTagVersion, cApiArea, cApiMetaType, cApiModule, cApiNavMain, cApiNavSub, cApiOnlineUser, cApiPathresolveCache, cApiProperty, cApiRight, cApiSearchTracking, cApiShortUrl, cApiArticle, cApiStat, cApiSystemProperty, cApiTemplate, cApiTemplateConfiguration, cApiType, cApiUpload, cApiUploadMeta, cApiUser, cApiUserPasswordRequest, cApiUserProperty, cApiArticleLanguage, Newsletter, NewsletterJob, NewsletterLog, NewsletterRecipient, NewsletterRecipientGroup, NewsletterRecipientGroupMember, PifaField, PifaForm, PimPlugin, PimPluginRelations, cApiArticleSpecification, Workflow, WorkflowAction, 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
|
#
__construct( string $sTable, string $sPrimaryKey )
Constructor to create an instance of this class. |
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
|
|
protected
|
|
public
mixed
|
|
public
mixed
|
|
public
boolean
|
|
public
boolean
|
|
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
|
|
public
mixed
|
|
protected
|
|
public
object
|
#
getMetaObject( )
Return meta object instance. This object might be retrieved from a global cache ($_metaObjectCache). |
__get(),
__set(),
_getPropertiesCollectionInstance(),
_getSecondDBInstance(),
_setLoaded(),
_setPrimaryKeyName(),
escape(),
getPrimaryKeyName(),
isLoaded()
|
_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 bools. |
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 filters used when data is retrieved from the db |
protected
string
|
$_metaObject |
|
#
Class name of meta object |
protected
string
|
$_lastSQL |
|
#
Last executed SQL statement |
$_className,
$_loaded,
$_oCache,
$_primaryKeyName,
$_settings,
$db,
$lasterror,
$properties,
$secondDb,
$table
|