IP_match
addArtspec
array_csort
array_search_recursive
backToMainArea
buildArticleSelect
buildCategorySelect
buildStackString
cDeprecated
cDie
cError
cIDNADecode
cIDNAEncode
cInitializeArrayKey
cWarning
callPluginStore
checkMySQLConnectivity
cleanupSessions
createRandomName
defineIfNotDefined
define_if
deleteArtspec
deleteSystemProperty
displayDatetime
displayPlugin
endAndLogTiming
fakeheader
getAllClientsAndLanguages
getArtspec
getAvailableContentTypes
getCanonicalDay
getCanonicalMonth
getClientName
getEffectiveSetting
getEffectiveSettingsByType
getFileExtension
getGroupOrUserName
getIDForArea
getLanguageNamesByClient
getLanguagesByClient
getNamedFrame
getParentAreaId
getPhpModuleInfo
getSystemProperties
getSystemPropertiesByType
getSystemProperty
getmicrotime
htmldecode
humanReadableSize
human_readable_size
includePlugins
ipMatch
isAlphanumeric
isArtInMultipleUse
isGroup
isImageMagickAvailable
isRunningFromWeb
isUtf8
isValidMail
is_alphanumeric
is_dbfs
is_utf8
locale_arsort
markSubMenuItem
notifyOnError
recursive_copy
rereadClients
scanPlugins
sendEncodingHeader
sendPostRequest
setArtspecDefault
setArtspecOnline
setHelpContext
setSystemProperty
set_magic_quotes_gpc
showLocation
showTable
startTiming
str_ireplace_once
str_ireplace_once_reverse
str_rpos
trim_array
updateClientCache
$constant
IP_match($network, $mask, $ip)
| deprecated | [2012-08-02] Use ipMatch() instead |
|---|
addArtspec(string $artspectext, int $online) : void
stringspecification text
intOnline status (1 or 0)
array_csort()
| deprecated | [2012-08-02] Use cArray::csort() instead |
|---|
array_search_recursive($search, $array, $partial, $strict)
| deprecated | [2012-08-02] Use cArray::searchRecursive() instead |
|---|
backToMainArea(bool $send)
boolRedirect Yes/No
buildArticleSelect(string $sName, string $iIdCat, string $sValue) : string
stringName of the SelectBox
stringcategory id
stringValue of the SelectBox
stringHTMLbuildCategorySelect(string $sName, string $sValue, int $sLevel, string $sStyle) : string
stringName of the SelectBox
stringValue of the SelectBox
intValue of highest level that should be shown
stringOptional style informations for select
stringHTMLbuildStackString(int $startlevel) : string
"\tfunction1() called in file $filename($line)" "\tfunction2() called in file $filename($line)" ...
intThe startlevel. Note that 0 is always buildStackString and 1 is the function called buildStackString (e.g. cWarning)
stringcDeprecated($message) : void
cDie(string $file, int $line, string $message)
Logs the message and calls die().
stringFile name (use FILE)
intLine number (use LINE)
stringMessage to display
cError(\Multiple $file, $line, $message)
Examples:
// New version
cWarning('Some error message');
// Old version
cWarning(__FILE__, __LINE__, 'Some error message');
\Multipleparameters
cIDNADecode($targetEncoding, $string)
| deprecated | [2011-08-24] This function is not supported any longer |
|---|
cIDNAEncode($sourceEncoding, $string)
| deprecated | [2011-08-24] This function is not supported any longer |
|---|
cInitializeArrayKey($aArray, $sKey, $mDefault)
| deprecated | 2012-09-05 use function located in cArray instead of this function |
|---|
cWarning()
Examples:
// New version
cWarning('Some warning message');
// Old version
cWarning(__FILE__, __LINE__, 'Some warning message');
callPluginStore(string $entity)
stringName of the directory to scan
checkMySQLConnectivity()
| deprecated | [2012-01-18] cDb performs the check for itself. This method is no longer needed |
|---|
cleanupSessions()
As we are probably soon rewriting the session management, this hack is OK.
| deprecated | [2012-07-??] PHP will handle cleaning up sessions |
|---|
createRandomName(int $nameLength) : string
intLength of the generated string
stringRandom namedefineIfNotDefined(string $constant, mixed $value)
stringName of constant to define
mixedIt's value
define_if($constant, $value)
| deprecated | [2012-08-02] Use defineIfNotDefined() instead |
|---|
deleteArtspec(int $idartspec) : void
intarticle specification id
deleteSystemProperty(string $type, string $name) : bool
stringThe type of the item
stringThe name of the item
booldisplayDatetime(mixed $timestamp, bool $date, bool $time) : string
mixeda timestamp. If no value is given the current time will be used.
boolif true the date will be included in the string
boolif true the time will be included in the string
stringthe formatted timestring.displayPlugin($entity, $form)
| deprecated | [2012-02-26] Function does not work and is not longer supported |
|---|
endAndLogTiming($uuid)
int UUID which has been used for timing
fakeheader($time)
| deprecated | [2012-03-05] This function is not longer supported. |
|---|
getAllClientsAndLanguages() : array
arrayIndexed array where the value is an assoziative array as
follows:
- $arr[0]['idlang']
- $arr[0]['langname']
- $arr[0]['idclient']
- $arr[0]['clientname']
getArtspec() : array
arraylist of article specificationsgetAvailableContentTypes(int $idartlang) : void
Creates an array $a_content[type][number] = content string f.e. $a_content['CMS_HTML'][1] = content string Same for array $a_description
intLanguage specific ID of the arcticle
getCanonicalDay(int $iDay) : string
intThe day number of date(w)
stringDayname of current languagegetCanonicalMonth(int $month) : string
int
stringgetClientName($idclient)
| deprecated | [2012-06-21] Use cApiClientCollection->getClientname() |
|---|
getEffectiveSetting(string $type, string $name, string $default) : mixed
The order is: System => Client => Group => User
System properties can be overridden by the group, and group properties can be overridden by the user.
stringThe type of the item
stringThe name of the item
stringOptional default value
mixedboolean false if nothing was foundgetEffectiveSettingsByType(string $type) : array
The order is: System => Client => Group => User
System properties can be overridden by the group, and group properties can be overridden by the user.
stringThe type of the item
arrayValuegetFileExtension($filename)
| deprecated | [2012-06-20] Use getFileType() from functions.file.php |
|---|
getGroupOrUserName($uid)
getIDForArea(int | string $area) : int
intstringArea name or id
intstringgetLanguageNamesByClient(int $client) : array
int
arrayList of languages where the key is the language id and value
the language namegetLanguagesByClient(int $client) : array
int
arraygetNamedFrame(int $frame) : string
intFrame number
stringCanonical name of the framegetParentAreaId(mixed $area) : int
mixed
intgetPhpModuleInfo($moduleName)
| deprecated | [2012-03-10] This function is not longer supported. |
|---|
getSystemProperties(bool $bGetPropId) : array
Array format:
$array[$type][$name] = $value;
| modified | Timo Trautmann 22.02.2008 Support for editing name and type editing by primaray key idsystemprop if bGetPropId is set: $array[$type][$name][value] = $value; $array[$type][$name][idsystemprop] = $idsystemprop; |
|---|
boolIf true special mode is activated which generates for each property a third array, which also contains idsystemprop value
arraygetSystemPropertiesByType(string $type) : array
stringThe type of the properties
arrayAssoziative array like $arr[name] = valuegetSystemProperty(string $type, string $name) : string
stringThe type of the item
stringThe name of the item
stringbool property value or false if nothing was foundgetmicrotime()
htmldecode($string)
humanReadableSize($number)
human_readable_size($number)
| deprecated | [2012-08-02] Use humanReadableSize() instead |
|---|
includePlugins($entity)
Name of the directory to scan
ipMatch(string $network, string $mask, string $ip) : boolean
string
string
string
booleanisAlphanumeric(mixed $test, bool $umlauts) : bool
mixedValue to test
bool[Use german Umlaute] Optional
boolValue is alphanumericisArtInMultipleUse(int $idart) : bool
intArticle-Id
boolArticle assigned to multiple categoriesisGroup($uid)
isImageMagickAvailable()
| deprecated | [2012-06-21] Use capiIsImageMagickAvailable() from functions.api.images.php |
|---|
isRunningFromWeb() : bool
boolTrue if the script is running from the webisUtf8(string $input) : bool
string
boolisValidMail(string $email, bool $strict)
string
boolNo more used!
is_alphanumeric($test, $umlauts)
| deprecated | [2012-08-02] Use isAlphanumeric() instead |
|---|
is_dbfs($file)
| deprecated | [2012-06-20] Use cApiDbfs::isDbfs() |
|---|
is_utf8($input)
| deprecated | [2012-08-02] Use isUtf8() instead |
|---|
locale_arsort($locale, $array)
| deprecated | [2012-08-02] Use cArray::sortWithLocale() instead |
|---|
markSubMenuItem(int $menuitem, bool $return)
intWhich menuitem to mark
boolReturn or echo script
notifyOnError($errortitle, $errormessage)
| deprecated | 2012-09-04 Use cWarning or the like. |
|---|
recursive_copy($from_path, $to_path)
| deprecated | [2012-06-20] Use getFileType() from functions.file.php |
|---|
rereadClients()
| deprecated | no longer needed |
|---|
scanPlugins(string $entity) : void
Result: $cfg['plugins']['frontendusers'] => array with all found plugins
Note: Plugins are only "found" if the following directory structure if found:
entity/ plugin1/plugin1.php plugin2/plugin2.php
The plugin's directory and file name have to be the same, otherwise the function won't find them!
stringName of the directory to scan
sendEncodingHeader(\cDb $db, array $cfg, int $lang, string $contentType)
Based on this informations it will send an HTTP header for right encoding.
arrayGlobal cfg-array
intGlobal language id
stringMime type
sendPostRequest($host, $path, $data, $referer, $port)
| deprecated | 2011-08-23 This function is not supported any longer |
|---|
setArtspecDefault(int $idartspec) : void
While creating a new article this defined article specification will be default setting
intArticle specification id
setArtspecOnline(int $idartspec, int $online) : void
Flag to switch if an article specification should be shown the frontend or not
intarticle specification id
int0/1 switch the status between on an offline
setHelpContext($area)
setSystemProperty(string $type, string $name, string $value, int $idsystemprop)
| modified | Timo Trautmann 22.02.2008 Support for editing name and type |
|---|
stringThe type of the item
stringThe name of the item
stringThe value of the item
intThe sysprop id, use optional. If set it allows to modify type name and value
set_magic_quotes_gpc(string $code)
stringString by reference
showLocation($area)
| deprecated | [2011-09-02] This function is not supported any longer |
|---|
showTable($tablename)
| deprecated | [2011-08-23] This function is not supported any longer |
|---|
startTiming(string $function, array $parameters) : int
stringName of the function
arrayAll parameters for the function to measure
intuuid for this measure processstr_ireplace_once($find, $replace, $subject)
| deprecated | [2012-08-02] Use cString::iReplaceOnce() instead |
|---|
str_ireplace_once_reverse($find, $replace, $subject)
| deprecated | [2012-08-02] Use cString::iReplaceOnceReverse() instead |
|---|
str_rpos($haystack, $needle, $start)
| deprecated | [2012-08-02] Use cString::posReverse() instead |
|---|
trim_array($array)
| deprecated | [2012-08-02] Use cArray::trim() instead |
|---|
updateClientCache(\number $idclient, string $htmlpath, string $frontendpath)
Reinitializes the $cfgClient array and fills it wih updated information if provided.
\numberclient id which will be updated
stringnew HTML path. Starting with "http://"
stringpath the to the frontend
$constant