__construct()
_inFilter()
cApiModule()
deleteProperty()
deletePropertyById()
escape()
export()
exportPackage()
get()
getField()
getMetaObject()
getPackageOverview()
getProperty()
getTranslatedName()
getUsedTemplates()
import()
importPackage()
isLoaded()
isOldModule()
loadBy()
loadByPrimaryKey()
loadByRecordSet()
moduleInUse()
parseModuleForStrings()
set()
setField()
setFilters()
setProperty()
setTranslatedName()
store()
toArray()
toObject()
_getPropertiesCollectionInstance()
_getSecondDBInstance()
_loadByWhereClause()
_makeFileDirectoryStructure()
_onLoad()
_outFilter()
_setMetaObject()
_shouldLoadFromFiles()
_shouldStoreToFile()
_parseImportFile()
_setInputFromPhpFile()
_setOutputFromPhpFile()
$primaryKey
$values
$virgin
$_arrInFilters
$_arrOutFilters
$_className
$_error
$_metaObject
$_oCache
$_packageStructure
$_settings
$cache
$db
$lasterror
$lifetime
$modifiedValues
$oldPrimaryKey
$properties
$secondDb
$table
$aUsedTemplates
Module access class
Base class with common features for database based items and item collections.
author | Timo A. Hummel <Timo.Hummel@4fb.de> |
---|---|
author | Murat Purc |
version | 0.3 |
copyright | four for business 2003 |
__construct(mixed $mId)
mixed
Specifies the ID of item to load
\Contenido_ItemException |
If table name or primary key is not set |
---|
_inFilter(mixed $mData) : mixed
see | \setFilters |
---|---|
inherited_from | \Item::_inFilter() |
mixed
Data to filter
mixed
Filtered datacApiModule($mId)
deprecated | [2011-03-15] Old constructor function for downwards compatibility |
---|
deleteProperty(string $sType, string $sName) : bool
inherited_from | \Item::deleteProperty() |
---|
string
Specifies the type
string
Specifies the name
bool
deletePropertyById(int $idprop) : bool
inherited_from | \Item::deletePropertyById() |
---|
int
Id of property
bool
escape(string $sString) : string
inherited_from | \Contenido_ItemBaseAbstract::escape() |
---|---|
inherited_from | \Item::escape() |
string
The string to escape
string
Escaped stringexport(\$filename $filename, \$return $return)
\$filename
string Filename to return
\$return
boolean if false, the result is immediately sent to the browser
exportPackage(string $sPackageFileName, bool $bReturn)
string
Filename to return
bool
if false, the result is immediately sent to the browser
get(string $sField) : mixed
inherited_from | \Item::get() |
---|
string
Specifies the field to retrieve
mixed
Value of the fieldgetField($field) : mixed
mixed
Value of the fieldgetMetaObject()
inherited_from | \Item::getMetaObject() |
---|
getPackageOverview($sFile)
getProperty(string $sType, string $sName) : mixed
inherited_from | \Item::getProperty() |
---|
string
Specifies the type
string
Specifies the name
mixed
Value of the given property or falsegetTranslatedName() : string
string
Translated module name or originalgetUsedTemplates() : array
array
template dataimport($sFile)
importPackage(string $sFile, array $aOptions) : bool
string
Filename of data file (including path)
array
Optional. An array of arrays specifying, how the items of the xml file will be imported. If specified, has to contain an array of this structure: $aOptions["items"][
bool
Returns true, if import has been successfully finishedisLoaded() : bool
inherited_from | \Item::isLoaded() |
---|
bool
isOldModule() : boolean
boolean
true if this module is an old oneloadBy(string $sField, mixed $mValue, bool $bSafe) : bool
inherited_from | \Item::loadBy() |
---|
string
Specifies the field
mixed
Specifies the value
bool
Use inFilter or not
bool
True if the load was successfulloadByPrimaryKey($id) : bool
bool
True if the load was successfulloadByRecordSet(array $aRecordSet)
inherited_from | \Item::loadByRecordSet() |
---|
array
The recordset of the item
moduleInUse($module, $bSetData) : bool
bool
Specifies if the module is in useparseModuleForStrings() : array
array
Found strings for this moduleset(string $sField, string $mValue, bool $bSafe)
inherited_from | \Item::set() |
---|
string
Field name
string
Value to set
bool
Flag to run defined inFilter on passed value
setField(string $sField, string $mValue, bool $bSafe)
inherited_from | \Item::setField() |
---|
string
Field name
string
Value to set
bool
Flag to run defined inFilter on passed value
setFilters(array $aInFilters, array $aOutFilters) : void
Examples:
$obj->setFilters(array('addslashes'), array('stripslashes')); $obj->setFilters(array('htmlencode', 'addslashes'), array('stripslashes', 'htmlencode'));
inherited_from | \Item::setFilters() |
---|
array
Array with function names
array
Array with function names
setProperty(string $sType, string $sName, mixed $mValue) : bool
inherited_from | \Item::setProperty() |
---|
string
Specifies the type
string
Specifies the name
mixed
Specifies the value
bool
setTranslatedName(\$name $name) : \none
\$name
string Translated name of the module
\none
store($bJustStore) : bool
bool
toArray() : array | false
inherited_from | \Item::toArray() |
---|
array
false
_getPropertiesCollectionInstance() : \PropertyCollection
inherited_from | \Contenido_ItemBaseAbstract::_getPropertiesCollectionInstance() |
---|---|
inherited_from | \Item::_getPropertiesCollectionInstance() |
_getSecondDBInstance() : \DB_Contenido
inherited_from | \Contenido_ItemBaseAbstract::_getSecondDBInstance() |
---|---|
inherited_from | \Item::_getSecondDBInstance() |
_loadByWhereClause(string $sWhere) : bool
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.
inherited_from | \Item::_loadByWhereClause() |
---|
string
The where clause like 'idart = 123 AND idlang = 1'
bool
True if the load was successful_makeFileDirectoryStructure()
_onLoad() : void
Inherited classes should override this function if desired.
_outFilter(mixed $mData) : mixed
see | \setFilters |
---|---|
inherited_from | \Item::_outFilter() |
mixed
Data to filter
mixed
Filtered data_setMetaObject($sObjectName)
inherited_from | \Item::_setMetaObject() |
---|
_shouldLoadFromFiles()
_shouldStoreToFile()
_parseImportFile(string $sFile, string $sType, $sEncoding) : bool
string
Filename including path of import xml file
string
Import type, "module" or "package"
bool
Returns true, if file has been parsed_setInputFromPhpFile()
_setOutputFromPhpFile()
$primaryKey : string
inherited_from | \Contenido_ItemBaseAbstract::$$primaryKey |
---|---|
inherited_from | \Item::$$primaryKey |
$values : array
inherited_from | \Item::$$values |
---|
$virgin : bool
inherited_from | \Contenido_ItemBaseAbstract::$$virgin |
---|---|
inherited_from | \Item::$$virgin |
$_arrInFilters : array
inherited_from | \Item::$$_arrInFilters |
---|
$_arrOutFilters : array
inherited_from | \Item::$$_arrOutFilters |
---|
$_className : string
inherited_from | \Contenido_ItemBaseAbstract::$$_className |
---|---|
inherited_from | \Item::$$_className |
$_error
$_oCache : \Contenido_ItemCache
inherited_from | \Contenido_ItemBaseAbstract::$$_oCache |
---|---|
inherited_from | \Item::$$_oCache |
$_packageStructure : array
$_settings : array
inherited_from | \Contenido_ItemBaseAbstract::$$_settings |
---|---|
inherited_from | \Item::$$_settings |
$cache : array
inherited_from | \Contenido_ItemBaseAbstract::$$cache |
---|---|
inherited_from | \Item::$$cache |
$db : \DB_Contenido
inherited_from | \Contenido_ItemBaseAbstract::$$db |
---|---|
inherited_from | \Item::$$db |
$lasterror : string
inherited_from | \Contenido_ItemBaseAbstract::$$lasterror |
---|---|
inherited_from | \Item::$$lasterror |
$lifetime : int
inherited_from | \Contenido_ItemBaseAbstract::$$lifetime |
---|---|
inherited_from | \Item::$$lifetime |
$modifiedValues : array
inherited_from | \Item::$$modifiedValues |
---|
$oldPrimaryKey : string
inherited_from | \Item::$$oldPrimaryKey |
---|
$properties : \PropertyCollection
inherited_from | \Contenido_ItemBaseAbstract::$$properties |
---|---|
inherited_from | \Item::$$properties |
$secondDb : \DB_Contenido
inherited_from | \Contenido_ItemBaseAbstract::$$secondDb |
---|---|
inherited_from | \Item::$$secondDb |
$table : string
inherited_from | \Contenido_ItemBaseAbstract::$$table |
---|---|
inherited_from | \Item::$$table |
$aUsedTemplates : array