Module access class
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| version | 0.1 |
| copyright | four for business 2003 |
Item(string $table, string $primaryKey, $lifetime)
| inherited_from | \Item::Item() |
|---|
stringThe table to use as information source
stringThe primary key to use
_inFilter(mixed $data) : mixed
| see | \setFilters |
|---|---|
| access | private |
| inherited_from | \Item::_inFilter() |
mixedData to filter
mixedFiltered data_makeFileDirectoryStructure()
_onLoad() : \none
Function which is called whenever an item is loaded. Inherited classes should override this function if desired.
| inherited_from | \Item::_onLoad() |
|---|
\none_outFilter(mixed $data) : mixed
| see | \setFilters |
|---|---|
| access | private |
| inherited_from | \Item::_outFilter() |
mixedData to filter
mixedFiltered data_parseImportFile(string $sFile, $sType, $sEncoding)
@access private
stringFilename including path of import xml file @param string $sType Import type, "module" or "package" @return bool Returns true, if file has been parsed
_setMetaObject($objectname)
| inherited_from | \Item::_setMetaObject() |
|---|
_shouldLoadFromFiles()
_shouldStoreToFile()
cApiModule($loaditem)
Item to load
deleteProperty(string $type, string $name)
| inherited_from | \Item::deleteProperty() |
|---|
stringSpecifies the type
stringSpecifies the name
export($filename, $return)
string Filename to return
boolean if false, the result is immediately sent to the browser
exportPackage(string $sPackageFileName, bool $bReturn)
stringFilename to return
boolif false, the result is immediately sent to the browser
get(string $field) : mixed
| inherited_from | \Item::get() |
|---|
stringSpecifies the field to retrieve
mixedValue of the fieldgetField(string $field) : mixed
stringSpecifies the field to retrieve
mixedValue of the fieldgetMetaObject()
| inherited_from | \Item::getMetaObject() |
|---|
getPackageOverview($sFile)
getProperty(string $type, string $name) : boolean
| inherited_from | \Item::getProperty() |
|---|
stringSpecifies the type
stringSpecifies the name
booleanValue of the given propertygetTranslatedName() : string
stringTranslated module name or originalgetUsedTemplates() : array
arraytemplate dataimport($sFile)
importPackage(string $sFile, array $aOptions) : bool
stringFilename of data file (including path)
arrayOptional. 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"][
boolReturns true, if import has been successfully finishedisOldModule() : boolean
booleantrue if this module is an old oneloadBy(string $field, string $value, bool $bSafe) : bool
| inherited_from | \Item::loadBy() |
|---|
stringSpecifies the field
stringSpecifies the value
booluse inFilter or not
boolTrue if the load was successfulloadByPrimaryKey($id) : bool
boolTrue if the load was successfulmoduleInUse($module, $bSetData) : bool
boolSpecifies if the module is in useparseModuleForStrings() : array
arrayFound strings for this moduleset(string $field, string $value, $safe)
| inherited_from | \Item::set() |
|---|
stringSpecifies the field to set
stringSpecifies the value to set
setField(string $field, string $value, boolean $safe)
| inherited_from | \Item::setField() |
|---|
stringSpecifies the field to set
stringSpecifies the value to set
booleanSpeficies if we should translate characters
setFilters(array $arrInFilters, array $arrOutFilters) : void
Examples:
$obj->setFilters(array('addslashes'), array('stripslashes')); $obj->setFilters(array('htmlencode', 'addslashes'), array('stripslashes', 'htmlencode'));
| inherited_from | \Item::setFilters() |
|---|
arrayinFilters array with function names
arrayoutFilters array with function names
setProperty(string $type, string $name, string $value)
| inherited_from | \Item::setProperty() |
|---|
stringSpecifies the type
stringSpecifies the name
stringSpecifies the value
setTranslatedName($name) : \none
string Translated name of the module
\nonestore($bJustStore)
$_arrInFilters : array
| access | private |
|---|---|
| inherited_from | \Item::$$_arrInFilters |
$_arrOutFilters : array
| access | private |
|---|---|
| inherited_from | \Item::$$_arrOutFilters |
$_error
$_packageStructure
$cache : array
| access | private |
|---|---|
| inherited_from | \Item::$$cache |
$db : object
| access | private |
|---|---|
| inherited_from | \Item::$$db |
$lasterror : string
| access | private |
|---|---|
| inherited_from | \Item::$$lasterror |
$lifetime : int
| access | private |
|---|---|
| inherited_from | \Item::$$lifetime |
$modifiedValues : array
| access | private |
|---|---|
| inherited_from | \Item::$$modifiedValues |
$oldPrimaryKey : string
| access | private |
|---|---|
| inherited_from | \Item::$$oldPrimaryKey |
$primaryKey : object
| access | private |
|---|---|
| inherited_from | \Item::$$primaryKey |
$properties : object
| access | private |
|---|---|
| inherited_from | \Item::$$properties |
$table : string
| access | private |
|---|---|
| inherited_from | \Item::$$table |
$values : array
| access | private |
|---|---|
| inherited_from | \Item::$$values |
$virgin : boolean
If true, the object is virgin and no operations on it except load-Functions are allowed.
| access | private |
|---|---|
| inherited_from | \Item::$$virgin |
$aUsedTemplates : array