IP_match
SaveKeywordsforart
_error_report
addArtspec
addslashes_deep
array_csort
array_search_recursive
backToMainArea
buildArticleSelect
buildCategorySelect
buildCategorySelectRights
buildHeapTable
buildTree
buildUserOrGroupPermsFromRequest
cDie
cError
cIDNADecode
cIDNAEncode
cInclude
cInitializeArrayKey
cWarning
callPluginStore
capiImgScale
capiImgScaleGetMD5CacheFile
capiImgScaleHQ
capiImgScaleImageMagick
capiImgScaleLQ
capiStrCleanURLCharacters
capiStrRecodeString
capiStrReplaceDiacritics
capiStrTrimAfterWord
capiStrTrimHard
capiStrTrimSentence
capi_cat_getlevelnode
checkImageEditingPosibility
checkLangInClients
checkMySQLConnectivity
checkPathInformation
cleanupSessions
compareUrlStrings
conChangeTemplateForCat
conCopyArtLang
conCopyArticle
conCopyContainerConf
conCopyContent
conCopyTemplateConfiguration
conCreateLocationString
conDeeperCategoriesArray
conDeleteart
conEditArt
conEditFirstTime
conFetchCategoryTree
conFlagOnOffline
conGenerateCode
conGenerateCodeForAllArts
conGenerateCodeForAllArtsInCategory
conGenerateCodeForAllArtsUsingTemplate
conGenerateCodeForAllartsUsingLayout
conGenerateCodeForAllartsUsingMod
conGenerateCodeForArtInAllCategories
conGenerateCodeForClient
conGenerateKeywords
conGetAvailableMetaTagTypes
conGetCategoryAssignments
conGetContentFromArticle
conGetMetaValue
conGetTopmostCat
conLock
conMakeArticleIndex
conMakeCatOnline
conMakeOnline
conMakePublic
conMakeStart
conMoveArticles
conSaveContentEntry
conSetCodeFlag
conSetMetaValue
conSyncArticle
contenido_include
copyRightsForElement
createFile
createRandomName
createRightsForElement
dbDumpArea
dbDumpAreasAsArray
dbDumpData
dbDumpNavSub
dbDumpStructure
dbGetColumns
dbGetIndexes
dbGetPrimaryKeyName
dbInsertData
dbTableExists
dbUpdateSequence
dbUpgradeData
dbUpgradeTable
define_if
deleteArtspec
deleteRightsForElement
deleteSystemProperty
displayFiles
displayPlugin
domxml_new_doc
domxml_new_xmldoc
domxml_open_file
domxml_open_mem
domxml_xslt_stylesheet
domxml_xslt_stylesheet_doc
domxml_xslt_stylesheet_file
emptyLogFile
endAndLogTiming
extractNumber
fakeheader
fileEdit
fileValidateFilename
formGenerateCheckbox
formGenerateField
generateDisplayFilePath
getAllClientsAndLanguages
getArtLang
getArtspec
getAvailableContentTypes
getCanonicalDay
getCanonicalMonth
getClientName
getEffectiveSetting
getEffectiveSettingsByType
getEncodingByLanguage
getExpandCollapseButton
getExpandCollapseButton
getFileContent
getFileExtension
getFileInformation
getFileType
getFiles
getGroupOrUserName
getIDForArea
getLanguageNamesByClient
getLanguagesByClient
getNamedFrame
getParentAreaId
getPhpModuleInfo
getSystemProperties
getSystemPropertiesByType
getSystemProperty
getTemplateSelect
getmicrotime
html_doc
html_doc_file
htmldecode
htmlentities_iso88592
human_readable_size
i18n
i18nEmulateGettext
i18nGetAvailableLanguages
i18nInit
i18nMatchBrowserAccept
i18nRegisterDomain
i18nStripAcceptLanguages
includePlugins
isAnimGif
isArtInMultipleUse
isGroup
isIPv4
isImageMagickAvailable
isRunningFromWeb
isStartArticle
isValidMail
is_alphanumeric
is_dbfs
langActivateDeactivateLanguage
langDeleteLanguage
langDuplicateFromFirstLanguage
langEditLanguage
langGetTextDirection
langNewLanguage
langRenameLanguage
layDeleteLayout
layEditLayout
locale_arsort
markSubMenuItem
mi18n
modDeleteModule
modEditModule
modTestModule
notifyOnError
phpInfoToHtml
plugin_include
prCreateURLNameLocationString
prResolvePathViaCategoryNames
prResolvePathViaURLNames
recCats
recursive_copy
removeFileInformation
renameFile
rereadClients
saverights
saverights
saverightsarea
saverightsarea
scanDirectory
scanPlugins
sendBugReport
sendEncodingHeader
sendPostRequest
setArtspecDefault
setArtspecOnline
setHelpContext
setSystemProperty
set_magic_quotes_gpc
showLocation
showTable
showTree
sort_pre_post
startTiming
statCreateLocationString
statDisplayTopChooser
statDisplayYearlyTopChooser
statGetAvailableMonths
statGetAvailableYears
statResetStatistic
statReturnCanonicalMonth
statsArchive
statsDisplayInfo
statsOverviewAll
statsOverviewTop
statsOverviewTopYear
statsOverviewYear
strCopyCategory
strCopyTree
strDeeperCategoriesArray
strDeleteCategory
strHasArticles
strHasStartArticle
strMakePublic
strMakeVisible
strMoveCatTargetallowed
strMoveDownCategory
strMoveSubtree
strMoveUpCategory
strNewCategory
strNewTree
strNextBackwards
strNextDeeper
strNextDeeperAll
strNextPost
strOrderedPostTreeList
strRemakeTreeTable
strRemakeTreeTableFindNext
strRenameCategory
strShowTreeTable
strSyncCategory
str_ireplace_once
str_ireplace_once_reverse
str_rpos
stripslashes_deep
system_have_perm
tplAutoFillModules
tplBrowseLayoutForContainers
tplDeleteTemplate
tplDuplicateTemplate
tplEditTemplate
tplGetContainerDefault
tplGetContainerMode
tplGetContainerName
tplGetContainerTypes
tplGetInUsedData
tplIsTemplateInUse
tplPreparseLayout
tplcfgDuplicate
trans
trim_array
updateFileInformation
uplCreateFriendlyName
uplDirectoryListRecursive
uplGetFileExtension
uplGetFileIcon
uplGetFileTypeDescription
uplGetThumbnail
uplHasFiles
uplHasSubdirs
uplRecursiveDBDirectoryList
uplRecursiveDirectoryList
uplRecursiveRmDirIfEmpty
uplRenameDirectory
uplRender
uplRender
uplSearch
uplSyncDirectory
uplSyncDirectoryDBFS
upldelete
uplmkdir
writeSystemValuesOutput
xmldoc
xmldocfile
xpath_eval
xpath_new_context
xpath_register_ns
CONTENIDO_STRIPSLASHES
IP_match(string $network, string $mask, string $ip) : boolean
string
string
string
booleanSaveKeywordsforart($keycode, $idart, $place, $lang)
| deprecated | since 22.08.2005 This function is called everytime when the code of an article is generated. In this case indexing can cause performance problems. Indexing an article is treated now in function conSaveContentEntry. |
|---|
_error_report($error)
addArtspec(string $artspectext, $online) : void
stringarticle specification text
addslashes_deep(mixed $value) : array
mixedEither a string or a multi-dimensional array of values
arrayarray_csort()
array_search_recursive($search, $array, $partial, $strict)
backToMainArea(bool $send)
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| copyright | four for business AG <www.4fb.de> |
boolRedirect Yes/No
buildArticleSelect(String $sName, String $iIdCat, $sValue) : String
StringName of the SelectBox
StringValue of the SelectBox
StringHTMLbuildCategorySelect(String $sName, String $sValue, Integer $sLevel, String $sStyle) : String
StringName of the SelectBox
StringValue of the SelectBox
IntegerValue of highest level that should be shown
StringOptional style informations for select
StringHTMLbuildCategorySelectRights() : String
StringHTMLbuildHeapTable(string $sHeapTable, \DB_Contenido $db) : void
buildTree($rootItem, $items)
buildUserOrGroupPermsFromRequest(bool $bAddUserToClient) : array
| todo | Do we really need to add other perms, if the user/group gets the 'sysadmin' permission? |
|---|
boolFlag to add current user to current client, if no client is specified.
arraycDie(\$file $file, \$line $line, \$message $message)
\$fileFile name (use FILE)
\$lineLine number (use LINE)
\$messageMessage to display
cError(\$file $file, \$line $line, \$message $message)
\$fileFile name (use FILE)
\$lineLine number (use LINE)
\$messageMessage to display
cIDNADecode($targetEncoding, $string)
cIDNAEncode($sourceEncoding, $string)
cInclude(string $sWhere, string $sWhat, bool $bForce) : void
| see | \contenido_include |
|---|
stringThe area which should be included
stringThe filename of the include
boolIf true, force the file to be included
cInitializeArrayKey($aArray, $sKey, $mDefault)
cWarning(\$file $file, \$line $line, \$message $message)
\$fileFile name (use FILE)
\$lineLine number (use LINE)
\$messageMessage to display
callPluginStore(\$entity $entity)
Example: callPluginStore("frontendusers");
\$entityName of the directory to scan
capiImgScale(string $img, int $maxX, int $maxY, boolean $crop, boolean $expand, int $cacheTime, boolean $wantHQ, int $quality, boolean $keepType) : string: string
If scaling, the aspect ratio is maintained.
This function chooses the best method to scale, depending on the system environment and/or the parameters.
Returns the path to the scaled temporary image.
Note that this function does some very poor caching; it calculates an md5 hash out of the image plus the maximum X and Y sizes, and uses that as the file name. If the file is older than 10 minutes, regenerate it.
stringThe path to the image (relative to the frontend)
intThe maximum size in x-direction
intThe maximum size in y-direction
booleanIf true, the image is cropped and not scaled.
booleanIf true, the image is expanded (e.g. really scaled). If false, the image will only be made smaller.
intThe number of minutes to cache the image, use 0 for unlimited
booleanIf true, try to force high quality mode
intThe quality of the output file
booleanIf true and a png file is source, output file is also png
string!!!URL!!! to the resulting image (http://...)stringPath to the resulting imagecapiImgScaleGetMD5CacheFile($sImg, $iMaxX, $iMaxY, $bCrop, $bExpand) : string
stringPath to the resulting imagecapiImgScaleHQ(string $img, int $maxX, int $maxY, boolean $crop, boolean $expand, int $cacheTime, int $quality, boolean $keepType) : string
If scaling, the aspect ratio is maintained.
Note: GDLib 2.x is required!
Returns the path to the scaled temporary image.
Note that this function does some very poor caching; it calculates an md5 hash out of the image plus the maximum X and Y sizes, and uses that as the file name. If the file is older than the specified cache time, regenerate it.
stringThe path to the image (relative to the frontend)
intThe maximum size in x-direction
intThe maximum size in y-direction
booleanIf true, the image is cropped and not scaled.
booleanIf true, the image is expanded (e.g. really scaled). If false, the image will only be made smaller.
intThe number of minutes to cache the image, use 0 for unlimited
intThe quality of the output file
booleanIf true and a png file is source, output file is also png
string!!!URL!!! to the resulting image (http://...)capiImgScaleImageMagick(string $img, int $maxX, int $maxY, boolean $crop, boolean $expand, int $cacheTime, int $quality, boolean $keepType) : string
If scaling, the aspect ratio is maintained.
Note: ImageMagick is required!
Returns the path to the scaled temporary image.
Note that this function does some very poor caching; it calculates an md5 hash out of the image plus the maximum X and Y sizes, and uses that as the file name. If the file is older than the specified cache time, regenerate it.
stringThe path to the image (relative to the frontend)
intThe maximum size in x-direction
intThe maximum size in y-direction
booleanIf true, the image is cropped and not scaled.
booleanIf true, the image is expanded (e.g. really scaled). If false, the image will only be made smaller.
intThe number of minutes to cache the image, use 0 for unlimited
intThe quality of the output file
booleanIf true and a png file is source, output file is also png
string!!!URL!!! to the resulting image (http://...)capiImgScaleLQ(string $img, int $maxX, int $maxY, boolean $crop, boolean $expand, int $cacheTime, int $quality, boolean $keepType) : string
If scaling, the aspect ratio is maintained.
Returns the path to the scaled temporary image.
Note that this function does some very poor caching; it calculates an md5 hash out of the image plus the maximum X and Y sizes, and uses that as the file name. If the file is older than 10 minutes, regenerate it.
stringThe path to the image (relative to the frontend)
intThe maximum size in x-direction
intThe maximum size in y-direction
booleanIf true, the image is cropped and not scaled.
booleanIf true, the image is expanded (e.g. really scaled). If false, the image will only be made smaller.
intThe number of minutes to cache the image, use 0 for unlimited
intThe quality of the output file
booleanIf true and a png file is source, output file is also png
string!!!URL!!! to the resulting image (http://...capiStrCleanURLCharacters(\$sString $sString, \$bReplace $bReplace) : string
This function removes or converts all characters which can make an URL invalid.
Clean characters include: - All characters between 32 and 126 which are not alphanumeric and aren't one of the following: _-.
| author | Timo A. Hummel |
|---|---|
| copyright | four for business AG, http://www.4fb.de |
\$sStringstring The string to operate on
\$bReplacestring If true, all "unclean" characters are replaced
stringThe resulting stringcapiStrRecodeString(\$sString $sString, \$targetEncoding $sourceEncoding, \$sourceEncoding $targetEncoding) : string
This function tries to detect which function to use (either recode or iconv).
If $sourceEncoding and $targetEncoding are the same, this function returns immediately.
For more information about encodings, refer to http://en.wikipedia.org/wiki/Character_encoding
For more information about the supported encodings in recode, refer to http://www.delorie.com/gnu/docs/recode/recode_toc.html
Note: depending on whether recode or iconv is used, the supported charsets differ. The following ones are commonly used and are most likely supported by both converters:
| todo | Check if the charset names are the same for both converters |
|---|---|
| todo | Implement a converter and charset checker to ensure compilance. |
| author | Timo A. Hummel |
| copyright | four for business AG, http://www.4fb.de |
\$sStringstring The string to operate on
\$targetEncodingstring The target encoding (if false, use source encoding)
\$sourceEncodingstring The source encoding (default: ISO-8859-1)
stringThe resulting stringcapiStrReplaceDiacritics(\$sString $sString, \$sourceEncoding $sourceEncoding, $targetEncoding) : string
For german umlauts, this function converts the umlauts to their ASCII equalients (e.g. ä => ae).
For more information about diacritics, refer to http://en.wikipedia.org/wiki/Diacritic
For other languages, the diacritic marks are removed, if possible.
| author | Timo A. Hummel |
|---|---|
| copyright | four for business AG, http://www.4fb.de |
\$sStringstring The string to operate on
\$sourceEncodingstring The source encoding (default: ISO-8859-1)
stringThe resulting stringcapiStrTrimAfterWord(\$string $string, \$maxlen $maxlen) : string
Warning: Currently, this function uses a regular ASCII-Whitespace to do the seperation test. If you are using ' ' to create spaces, this function will fail.
Example: $string = "This is a simple test"; echo capiStrTrimAfterWord ($string, 15);
This would output "This is a", since this function respects word boundaries and doesn't operate beyond the limit given by $maxlen.
\$stringstring The string to operate on
\$maxlenint The maximum number of characters
stringThe resulting stringcapiStrTrimHard(\$string $string, \$maxlen $maxlen, $fillup) : string
Example: $string = "This is a simple test"; echo capiStrTrimHard ($string, 15);
This would output "This is a si...", since the string is longer than $maxlen and the resulting string matches 15 characters including the dots.
\$stringstring The string to operate on
\$maxlenint The maximum number of characters
stringThe resulting stringcapiStrTrimSentence(\$string $string, \$approxlen $approxlen, \$hard $hard) : string
The algorythm inside calculates the sentence length to the previous and next sentences. The distance to the next sentence which is smaller will be taken to trim the string to match the approximate length parameter.
Example:
$string = "This contains two sentences. "; $string .= "Lets play around with them. ";
echo capiStrTrimSentence($string, 40); echo capiStrTrimSentence($string, 50);
The first example would only output the first sentence, the second example both sentences.
Explanation:
To match the given max length closely, the function calculates the distance to the next and previous sentences. Using the maxlength of 40 characters, the distance to the previous sentence would be 8 characters, and to the next sentence it would be 19 characters. Therefore, only the previous sentence is displayed.
The second example displays the second sentence also, since the distance to the next sentence is only 9 characters, but to the previous it is 18 characters.
If you specify the boolean flag "$hard", the limit parameter creates a hard limit instead of calculating the distance.
This function ensures that at least one sentence is returned.
\$stringstring The string to operate on
\$approxlenint The approximate number of characters
\$hardboolean If true, use a hard limit for the number of characters (default: false)
stringThe resulting stringcapi_cat_getlevelnode(\$int $idcat, \$minLevel $minLevel) : int
Example:
Given you are in the leaf "News A" (idcat 17), and you want to get out in which "main" tree you are, you can call the function like this:
capi_cat_getlevelnode(17,1);
The example would return "Category A" (idcat 15). If you specify an invalid level, the results are undefined.
\$intidcat The category number
\$minLevelint The level to extract
intThe category node on a specific levelcheckImageEditingPosibility()
return mixed information about installed image editing extensions/tools
checkLangInClients(array $aClients, integer $iLang, array $aCfg, object $oDb) : boolean
arrayintegerarrayobjectboolean- status (if language id corresponds to list of clients true otherwise false)checkMySQLConnectivity()
checkPathInformation(string $strConUrl, string $strBrowserUrl) : string
must be done
stringcontenido fullhtmlPath
stringcurrent browser string
stringstatus of path comparementcleanupSessions()
compareUrlStrings($arrConUrl, $arrBrowserUrl, $isIP)
checks two path informations against each other to get potential nonconformities
conChangeTemplateForCat(int $idcat, int $idtpl) : void
| author | Jan Lengowski |
|---|---|
| copyright | four for business AG <www.4fb.de> |
intCategory Id
intTemplate Id
conCopyArtLang($srcidart, $dstidart, $newtitle, $bUseCopyLabel)
conCopyArticle($srcidart, $targetcat, $newtitle, $bUseCopyLabel)
conCopyContainerConf($srcidtplcfg, $dstidtplcfg)
conCopyContent($srcidartlang, $dstidartlang)
conCopyTemplateConfiguration($srcidtplcfg)
conCreateLocationString(int $idcat, string $seperator, string $cat_str, boolean $makeLink, string $linkClass, integer $firstTreeElementToUse, $uselang, $final, $usecache) : string
| author | Jan Lengowski |
|---|---|
| author | Marco Jahn |
| copyright | four for business AG <www.4fb.de> |
intID of the starting category
stringSeperation string
stringCategory location string (by reference)
booleancreate location string with links
stringstylesheet class for the links
integerfirst navigation level location string should be printed out (first level = 0!!)
stringlocation stringconDeeperCategoriesArray($idcat_start) : array
| author | Olaf Niemann <olaf.niemann@4fb-de> Jan Lengowski <jan.lengowski@4fb.de> |
|---|---|
| copyright | four for business AG <www.4fb.de> |
arrayArray with all deeper categoriesconDeleteart(int $idart)
| author | Olaf Niemann <olaf.niemann@4fb-de> Jan Lengowski <jan.lengowski@4fb.de> |
|---|---|
| copyright | four for business AG <www.4fb.de> |
intArticle Id
conEditArt(mixed $idcat, $idcatnew, $idart, $is_start, $idtpl, $idartlang, $idlang, $title, $summary, $artspec, $created, $lastmodified, $author, $online, $datestart, $dateend, $artsort, $keyart) : void
| author | Olaf Niemann |
|---|---|
| copyright | four for business AG <www.4fb.de> |
mixedmany
conEditFirstTime(mixed $idcat, $idcatnew, $idart, $is_start, $idtpl, $idartlang, $idlang, $title, $summary, $artspec, $created, $lastmodified, $author, $online, $datestart, $dateend, $artsort, $keyart) : int
| author | Olaf Niemann <Olaf.Niemann@4fb.de> |
|---|---|
| copyright | four for business AG <http://www.4fb.de> |
mixedmany
intId of the new articleconFetchCategoryTree($client, $lang)
conFlagOnOffline()
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| copyright | four for business AG 2003 |
conGenerateCode(int $idcat, int $idart, int $lang, int $client, int $layout)
| author | Jan Lengowski |
|---|---|
| copyright | four for business AG <www.4fb.de> |
intId of category
intId of article
intId of language
intId of client
intLayout-ID of alternate Layout (if false, use associated layout)
conGenerateCodeForAllArts()
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| copyright | four for business AG 2003 |
conGenerateCodeForAllArtsInCategory(int $idcat)
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| copyright | four for business AG 2003 |
intCategory ID
conGenerateCodeForAllArtsUsingTemplate(int $idtpl)
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| copyright | four for business AG 2003 |
intTemplate-Id
conGenerateCodeForAllartsUsingLayout(int $idlay)
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| copyright | four for business AG 2003 |
intLayout-ID
conGenerateCodeForAllartsUsingMod(int $idmod)
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| copyright | four for business AG 2003 |
intModule id
conGenerateCodeForArtInAllCategories(int $idart)
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| copyright | four for business AG 2003 |
intArticle ID
conGenerateCodeForClient()
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| copyright | four for business AG 2003 |
conGenerateKeywords(\$client $client, \$lang $lang) : void
| author | Willi Man Created : 12.05.2004 Modified : 13.05.2004 |
|---|---|
| copyright | four for business AG 2003 |
\$clientClient
\$langLanguage of a client
conGetAvailableMetaTagTypes()
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| copyright | four for business AG 2003 |
conGetCategoryAssignments(\idart $idart, \db $db) : array
\idartint Article ID
\dbobject Optional; if specified, uses the given db object
arrayFlat array which contains all category id'sconGetContentFromArticle(\$article_lang $article_lang) : array
| author | Willi Man Created : 12.05.2004 Modified : 13.05.2004 |
|---|---|
| copyright | four for business AG 2003 |
\$article_langArticleLanguageId of an article (idartlang)
arrayArray with content of an article indexed by content-typesconGetMetaValue(\$idartlang $idartlang, \$idmetatype $idmetatype)
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| copyright | four for business AG 2003 |
\$idartlangID of the article
\$idmetatypeMetatype-ID
conGetTopmostCat($idcat, $minLevel)
conLock(int $idart, \ing $lang)
intArticle Id
\ingLanguage Id
conMakeArticleIndex($idartlang, integer $idart)
added by stese removed from function conSaveContentEntry before Touch the article to update last modified date
| see | \conSaveContentEntry |
|---|
integer
conMakeCatOnline(int $idcat, int $lang, int $status)
| author | Jan Lengowski |
|---|---|
| copyright | four for business AG <www.4fb.de> |
intid of the category
intid of the language
intstatus of the category
conMakeOnline(int $idart, \ing $lang)
| author | Olaf Niemann <olaf.niemann@4fb-de> Jan Lengowski <jan.lengowski@4fb.de> |
|---|---|
| copyright | four for business AG <www.4fb.de> |
intArticle Id
\ingLanguage Id
conMakePublic(int | int $idcat, $lang, $public)
Almost the same function as strMakePublic in functions.str.php (conDeeperCategoriesArray instead of strDeeperCategoriesArray)
| author | Olaf Niemann <olaf.niemann@4fb-de> Jan Lengowski <jan.lengowski@4fb.de> |
|---|---|
| copyright | four for business AG <www.4fb.de> |
intintArticle Id
conMakeStart(int $idcatart, $is_start) : void
| author | Olaf Niemann <olaf.niemann@4fb-de> Jan Lengowski <jan.lengowski@4fb.de> |
|---|---|
| copyright | four for business AG <www.4fb.de> |
intIdcatart of the article
conMoveArticles()
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| copyright | four for business AG 2003 |
conSaveContentEntry(integer $idartlang, string $type, integer $typeid, string $value, $bForce) : void
| author | Olaf Niemann <olaf.niemann@4fb.de> Jan Lengowski <jan.lengowski@4fb.de> |
|---|---|
| copyright | four for business AG <www.4fb.de> |
integeridartlang of the article
stringType of content element
integerSerial number of the content element
stringContent
conSetCodeFlag(int $idcatart)
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| copyright | four for business AG 2003 |
intContenido Category-Article-ID
conSetMetaValue(\$idartlang $idartlang, \$idmetatype $idmetatype, \$value $value)
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| copyright | four for business AG 2003 |
\$idartlangID of the article
\$idmetatypeMetatype-ID
\$valueValue of the meta tag
conSyncArticle($idart, $srclang, $dstlang)
contenido_include(string $sWhere, string $sWhat, bool $bForce, string $bReturnPath) : void
Example: contenido_include('classes', 'class.backend.php');
Currently defined areas:
frontend Path to the current frontend conlib Path to conlib pear Path to the bundled pear copy classes Path to the contenido classes (see NOTE below) cronjobs Path to the cronjobs external Path to the external tools includes Path to the contenido includes scripts Path to the contenido scripts
NOTE: Since Contenido (since v 4.8.15) provides autoloading of required class files, there is no need to load Contenido class files of by using contenido_include() or cInclude().
stringThe area which should be included
stringThe filename of the include
boolIf true, force the file to be included
stringFlag to return the path instead of including the file
copyRightsForElement(string $area, int $iditem, int $newiditem, int $idlang)
| author | Martin Horwath |
|---|---|
| copyright | dayside.net <dayside.net> |
stringmain area name
intID of element to copy
intID of the new element
intID of lang parameter
createFile(string $filename, string $path) : \(void | \bool)
Exits the script, if filename is not valid or creation (touch or chmod) fails!
stringThe file to create
stringPath to the file
\(void\bool)Either true on success or nothingcreateRandomName(\$nameLength $nameLength) : string
Example: echo createRandomName(8);
\$nameLengthLength of the generated string
stringrandom namecreateRightsForElement(string $area, int $iditem, int $idlang)
| author | Martin Horwath |
|---|---|
| copyright | dayside.net <dayside.net> |
stringmain area name
intID of new element
intID of lang parameter
dbDumpArea($db, $id)
| deprecated | |
|---|---|
| since | 2008-07-11 |
dbDumpAreasAsArray($arrayname, $db)
| deprecated | |
|---|---|
| since | 2008-07-11 |
dbDumpData($table)
| deprecated | |
|---|---|
| since | 2008-07-11 |
dbDumpNavSub($arrayname, $db, $nextidarea)
| deprecated | |
|---|---|
| since | 2008-07-11 |
dbDumpStructure($db, $table, $return)
| deprecated | |
|---|---|
| since | 2008-07-11 |
dbGetColumns(\DB_Contenido $db, string $table) : array | bool
\DB_Contenido
string
arrayboolEither assoziative column array or falsedbGetIndexes(\DB_Contenido $db, string $table) : array
\DB_Contenido
string
arrayAssoziative array where the key and the value is the index namedbGetPrimaryKeyName(\DB_Contenido $db, string $table) : string
dbInsertData($table, $data)
| deprecated | |
|---|---|
| since | 2008-07-11 |
dbTableExists(\DB_Contenido $db, string $table) : bool
dbUpdateSequence(string $sequencetable, string $table, \DB_Contenido | bool $db)
Retrieves the primary key field of the table, retrieves the highes value and saves the value in the sequence table.
stringName of sequence table
stringName of table
dbUpgradeData($table, $valuesArray)
| deprecated | |
|---|---|
| since | 2008-07-11 |
dbUpgradeTable(\DB_Contenido $db, string $table, string $field, string $type, string $null, string $key, string $default, string $extra, string $upgradeStatement, bool $bRemoveIndexes) : bool
Function logic: 1 .) Check, if the table exists 2a.) If not, create it with the field specification, exit 2b.) If the table exists, check, if the field exist 3 .) If not, try to find the field using previous names (if specified in $field like "name1,name2") 4a.) If the field hasn't been found, create the field as specified, exit 4b.) If the field has been found using a previous name (if specified) rename the column to $field 5 .) As the field has been found, check, if the field's type is matching 5a.) If the type is matching, exit 5b.) If the field's content type is not matching, try to convert first (e.g. string to int or int to string), then use the upgrade statement if applicable
Note about the upgrade statement: - the code must be eval'able - the code needs to read $oldVal (old field value) and needs to set $newVal (value to which the field will be set) - $oldVal might be empty if the field didn't exist - $tableValues['fieldname'] contains the already existing values
stringName of table to create/update
stringName of field to create/update
stringData type of field. Feasible values are all possible data types e. g. int(10), varchar(32), datetime, varchar(255), text, tinyint(1)
stringParameter to forbid null values, feasible values "", "NULL" or "YES" where "NULL" or "YES" allows null values and "" doesn't
stringThe field will be added as a primary key, if value is "PRI", otherwhise the value should be empty ""
stringThe default value for the field. Feasible is each possible value depending on passed $type
stringAdditional info for the field, e. g. "auto_increment", if the field should have the AUTO_INCREMENT attribute and empty otherwise.
stringNOT USED AT THE MOMENT
boolFlag to remove all indexes
booldefine_if($constant, $value)
deleteArtspec(integer $idartspec) : void
integerarticle specification id
deleteRightsForElement(string $area, int $iditem, int $idlang)
| author | Martin Horwath |
|---|---|
| copyright | dayside.net <dayside.net> |
stringmain area name
intID of new element
intID of lang parameter
deleteSystemProperty(string $type, string $name)
stringThe type of the item
stringThe name of the item
displayFiles($aFiles, $aSelected, $oForm, $sCaption, $sField, $sDisabled)
displayPlugin($entity, $form)
domxml_new_doc($version)
domxml_new_xmldoc($version)
domxml_open_file($filename, $mode, $error)
domxml_open_mem($str, $mode, $error)
domxml_xslt_stylesheet($xslstring)
domxml_xslt_stylesheet_doc($dom_document)
domxml_xslt_stylesheet_file($xslfile)
emptyLogFile() : string
clears Contenido standard errorlog.txt
| author | Marco Jahn |
|---|
stringreturns message if clearing was successfull or notendAndLogTiming(\uuid $uuid)
\uuidint UUID which has been used for timing
extractNumber(string $string)
| author | Olaf Niemann <olaf.niemann@4fb-de> Jan Lengowski <jan.lengowski@4fb.de> |
|---|---|
| copyright | four for business AG <www.4fb.de> |
stringString var by reference
fakeheader($time)
fileEdit(string $filename, string $sCode, string $path) : \(string | \void)
Exits the script, if file could not opened!
stringThe file to write the content
stringFile content to write
stringPath to the file
\(string\void)Either content of file o nothingfileValidateFilename(string $filename, bool $notifyAndExitOnFailure) : \(void | \bool)
Exits the script, if second parameter is set to true and validation fails!
stringThe filename to validate
boolFlag to display notification and to exit further script execution, ifd validation fails
\(void\bool)Either validation result or nothing (depends on second parameter)formGenerateCheckbox(\$name $name, \$value $value, \$checked $checked, $caption) : \Generated
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| copyright | four for business AG <http://www.4fb.de> |
\$nameName of the checkbox
\$valueValue of the checkbox
\$checkedInitially checked?
\Generatedfield codeformGenerateField(\$type $type, \$name $name, \$initvalue $initvalue, \$size $width, \$maxlen $maxlen) : \Generated
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| copyright | four for business AG <http://www.4fb.de> |
\$typeEither "text", "password" or "textbox"
\$nameName of the field
\$initvalueInit value of the field
\$sizeSize of the field
\$maxlenMaximum length of the field
\Generatedfield codegenerateDisplayFilePath(string $sDisplayPath, int $iLimit) : string
| author | Timo Trautmann (4fb) |
|---|
stringintstring- string, which contains short path name and tooltipp if neccessarygetAllClientsAndLanguages() : array
arrayIndexed array where the value is an assoziative array as follows: - $arr[0]['idlang'] - $arr[0]['langname'] - $arr[0]['idclient'] - $arr[0]['clientname']getArtLang(\$idart $idart, \$idlang $idlang) : mixed
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| copyright | four for business AG 2003 |
\$idartID of the article
\$idlangID of the language
mixedidartlang of the article or false if nothing was foundgetArtspec() : 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
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| copyright | four for business AG |
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) : string
stringclient namegetEffectiveSetting(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($sType) : 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.
arrayValuegetEncodingByLanguage(\DB_Contenido $oDb, int $iLang, array $cfg) : string
The parameter $oDb has to be an instance of DB_Contenido (global $db in con) and $cfg is the equivalent to global $cfg array in contenido. If no encoding is found or any parameter is not valid, the function will return false, otherwise the encoding as string like it is stored in database. modified 18.03.2008 - Removed special mySQl behaviour (using db object instead) Timo Trautmann
\DB_Contenido
int
array
stringgetExpandCollapseButton($item, $catName)
getExpandCollapseButton($item)
getFileContent(string $filename, string $path) : \(string | \void)
Exits the script, if file could not opened!
stringThe file to get the content
stringPath to the file
\(string\void)Either content of file o nothinggetFileExtension(string $filename) : \extension
stringName of the file
\extensionon success, false if no extension could be extracted.getFileInformation(integer $iIdClient, string $sFilename, string $sType, object $oDb) : array
| author | Timo Trautmann |
|---|
integerstringstringobjectarrayIndexes: idsfi - Primary key of database record created - Datetime when file was created lastmodified - Datetime when file was last modified author - Author of file (Contenido Backend User) modifiedby - Last modifier of file (Contenido Backend User) description - Description which was inserted for this filegetFileType(string $filename) : string
stringThe file to get the type
stringFiletypegetFiles($sPath, $sFileType, $sNoti)
getGroupOrUserName($uid)
getIDForArea(mixed $area) : int
mixedArea name
intgetLanguageNamesByClient(int $client) : array
int
arrayList of languages where the key is the language id and value the language namegetLanguagesByClient($client)
getNamedFrame(\$frame $frame) : string
\$frameFrame number
stringCanonical name of the framegetParentAreaId(mixed $area) : int
mixed
intgetPhpModuleInfo(\$modulName $moduleName) : array
parses phpinfo() output (1) get informations for a specific module (parameter $modulname) (2) get informations for all modules (no parameter for $modulname needed)
if a specified extension doesn't exists or isn't activated an array will be returned: Array ( [error] => extension is not available )
to get specified information on one module use (1): getPhpModuleInfo($moduleName = 'gd');
to get all informations use (2): getPhpModuleInfo($moduleName);
EXAMPLE OUTPUT (1): Array ( [GD Support] => Array ( [0] => enabled ) ... )
EXAMPLE OUTPUT (2): Array ( [yp] => Array ( [YP Support] => Array ( [0] => enabled )
)
... }
foreach ($moduleSettings as $setting => $value) $setting contains the modul settings $value contains the settings as an array ($value[0] => Local Value && $value[1] => Master Value)
| author | Marco Jahn |
|---|
\$modulNamestring specify modul name or if not get all settings
arraysee above for examplegetSystemProperties(boolean $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; |
|---|
booleanbGetPropId - if true special mode is activated which generates for each property a third array, which also contains idsystemprop value
arraygetSystemPropertiesByType($sType) : array
arrayValuegetSystemProperty(string $type, string $name) : mixed
stringThe type of the item
stringThe name of the item
mixedboolean false if nothing was found, orgetTemplateSelect()
getmicrotime()
html_doc($html_doc, $from_file)
html_doc_file($filename)
htmldecode($string)
htmlentities_iso88592(string $sInput) : string
string
stringhuman_readable_size($number)
i18n(\$string $string, \$domain $domain) : string
gettext wrapper (for future extensions). Usage: i18n("Your text which has to be translated");
\$stringstring The string to translate
\$domainstring The domain to look up
stringReturns the translationi18nEmulateGettext(\$string $string, \$domain $domain) : string
Emulates GNU gettext
\$stringstring The string to translate
\$domainstring The domain to look up
stringReturns the translationi18nGetAvailableLanguages() : array
Returns the available_languages array to prevent globals.
arrayAll available languagesi18nInit(string $localePath, string $langCode)
Initializes the i18n stuff.
| global | string $i18nLanguage |
|---|---|
| global | array $i18nDomains |
string
string
i18nMatchBrowserAccept($accept) : string
Tries to match the language given by $accept to one of the languages in the system.
stringThe locale key for the given accept stringi18nRegisterDomain(\$localePath $domain, \$domain $localePath) : string
Registers a new i18n domain.
\$localePathstring Path to the locales
\$domainstring Domain to bind to
stringReturns the translationi18nStripAcceptLanguages($accept) : array
Strips all unnecessary information from the $accept string. Example: de,nl;q=0.7,en-us;q=0.3 would become an array with de,nl,en-us
arrayArray with the short form of the accept languagesincludePlugins(\$entity $entity)
Example: includePlugins("frontendusers");
\$entityName of the directory to scan
isAnimGif(string $sFile) : boolean
stringfile path
booleantrue (gif is animated)/ false (single frame gif)isArtInMultipleUse(int $idart) : bool
intArticle-Id
boolArticle assigned to multiple categoriesisGroup($uid)
isIPv4(string $strHostAdress) : boolean
stringip adress
booleanif string is a valid ip or notisImageMagickAvailable() : boolean
booleantrue if ImageMagick is availableisRunningFromWeb() : boolean
booleantrue if the script is running from the webisStartArticle($idartlang, $idcat, $idlang, $db)
isValidMail($sEMail, $bStrict)
is_alphanumeric(mixed $test, bool $umlauts) : bool
mixedValue to test
bool[Use german Umlaute] Optional
boolValue is alphanumericis_dbfs($file)
langActivateDeactivateLanguage($idlang, $active)
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| author | Olaf Niemann <Olaf.Niemann@4fb.de> |
| copyright | four for business AG <www.4fb.de> |
langDeleteLanguage($idlang, $idclient)
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| author | Olaf Niemann <Olaf.Niemann@4fb.de> |
| copyright | four for business AG <www.4fb.de> |
langDuplicateFromFirstLanguage($client, $idlang)
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| author | Olaf Niemann <Olaf.Niemann@4fb.de> |
| copyright | four for business AG <www.4fb.de> |
langEditLanguage($idlang, $langname, $encoding, $active, $direction)
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| author | Olaf Niemann <Olaf.Niemann@4fb.de> |
| copyright | four for business AG <www.4fb.de> |
langGetTextDirection($idlang, $db)
langNewLanguage(string $name, $client)
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| author | Olaf Niemann <Olaf.Niemann@4fb.de> |
| copyright | four for business AG <www.4fb.de> |
stringName of the language
langRenameLanguage($idlang, $name)
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| author | Olaf Niemann <Olaf.Niemann@4fb.de> |
| copyright | four for business AG <www.4fb.de> |
layDeleteLayout($idlay)
layEditLayout(int $idlay, string $name, string $description, string $code) : int
| author | Olaf Niemann |
|---|---|
| copryright | four for business AG <www.4fb.de> |
intId of the Layout
stringName of the Layout
stringDescription of the Layout
stringLayout HTML Code
int$idlay Id of the new or edited Layoutlocale_arsort($locale, $array)
markSubMenuItem(int $menuitem, bool $return)
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| copyright | four for business AG <www.4fb.de> |
intWhich menuitem to mark
boolReturn or echo script
mi18n(string $string) : string
| global | int $cCurrentModule |
|---|---|
| global | string $lang |
| global | cApiModuleTranslationCollection $mi18nTranslator |
stringstring to translate
stringtranslated stringmodDeleteModule($idmod)
modEditModule($idmod, $name, $description, $input, $output, $template, $type)
modTestModule($code, $id, $output)
notifyOnError($errortitle, $errormessage)
phpInfoToHtml() : string
plugin_include(string $sWhere, string $sWhat) : void
Example: plugin_include('formedit', 'classes/class.formedit.php');
stringThe name of the plugin
stringThe filename of the include
prCreateURLNameLocationString(int $idcat, string $seperator, string $cat_str, boolean $makeLink, string $linkClass, integer $firstTreeElementToUse, $uselang, $final, $usecache) : string
| author | Jan Lengowski |
|---|---|
| author | Marco Jahn |
| copyright | four for business AG <www.4fb.de> |
intID of the starting category
stringSeperation string
stringCategory location string (by reference)
booleancreate location string with links
stringstylesheet class for the links
integerfirst navigation level location string should be printed out (first level = 0!!)
stringlocation stringprResolvePathViaCategoryNames(\$path $path, $iLangCheck) : integer
Warning: If you use this function, try to pass a "good" path. This function doesn't guarantee that the matches are logically best-matches.
This function operates on the actual category names.
\$pathstring Path to resolve
integerClosest matching category ID (idcat)prResolvePathViaURLNames(\$path $path) : integer
Warning: If you use this function, try to pass a "good" path. This function doesn't guarantee that the matches are logically best-matches.
This function operates on the category aliases. It compares the given path with the urlpaths generated by function prCreateURLNameLocationString() based on category aliases.
\$pathstring Path to resolve
integerClosest matching category ID (idcat)recCats($aCats, $sInsertQuery, $iNextTreeId, $aAllCats, $iLevel)
recursive_copy($from_path, $to_path)
removeFileInformation(integer $iIdClient, string $sFilename, string $sType, object $oDb) : void
| author | Timo Trautmann |
|---|
integerstringstringobjectrenameFile(string $sOldFile, string $sNewFile, string $path) : \(void | \string)
Exits the script, if new filename is not valid or renaming fails!
stringOld filename
stringNew filename
stringPath to the file
\(void\string)Either new filename or nothingrereadClients()
saverights()
saverights()
saverightsarea()
saverightsarea()
scanDirectory($sDirectory, $bRecursive)
scanPlugins(\$entity $entity) : string
Example: scanPlugins("frontendusers");
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!
\$entityName of the directory to scan
stringclient namesendBugReport() : string
send users bugreport contains 4 attachements (1) errorlog.txt (2) install.log.txt (3) systemvariablen.html (generaten of writeSystemValuesOutput()) (4) phpinfo.html (generated of phpInfoToHtml())
to avoid errors when filesize attachement (1) or (2) is 0kb temporarily attachements with a specified message will be created
return value: - error code (0-3) 0) mail send successfull (no errors or missing data) 1) not all fields are filled out 2) email adress is not valid 3) user hasn't agreed to the declaration of consent
| author | Marco Jahn |
|---|
stringreturns several server and Contenido settingssendEncodingHeader(\DB_Contenido $db, array $cfg, int $lang)
| since | 4.6.18 |
|---|---|
| version | 1.0.0 |
| author | Holger Librenz |
\DB_Contenido
arrayglobal cfg-array
intglobal language id
sendPostRequest(\$host $host, \$pathhost $path, \$data $data, \$referer $referer, \$port $port)
Example: sendPostRequest("hostname", "serverpath/test.php", $data);
\$hostHostname or domain
\$pathhostPath on the host or domain
\$dataData to send
\$refererReferer (optional)
\$portPort (default: 80)
setArtspecDefault(integer $idartspec) : void
while creating a new article this defined article specification will be default setting
integerarticle specification id
setArtspecOnline(integer $idartspec, integer $online) : void
flag to switch if an article specification should be shown the frontend or not
integerarticle specification id
integer0/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($code)
showLocation($area)
showTable($tablename)
showTree($iIdcat, $aWholelist)
sort_pre_post($arr)
startTiming(\function $function, \parameters $parameters) : int
\functionstring Name of the function
\parametersarray All parameters for the function to measure
intuuid for this measure processstatCreateLocationString(int $idcat, string $seperator, string $cat_str) : void
Performs a recursive call, if parent category doesn't matches to 0
intThe category id
stringSeparator for location string
stringThe location string variable (reference)
statDisplayTopChooser($default) : string
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| copyright | four for business AG <http://www.4fb.de> |
none
stringReturns a drop down stringstatDisplayYearlyTopChooser($default) : string
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| copyright | four for business AG <http://www.4fb.de> |
none
stringReturns a drop down stringstatGetAvailableMonths(mixed $year, $client, $lang) : array
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| copyright | four for business AG <http://www.4fb.de> |
mixedmany
arrayArray of strings with months.statGetAvailableYears(mixed $client, $lang) : array
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| copyright | four for business AG <http://www.4fb.de> |
mixedmany
arrayArray of strings with years.statResetStatistic(int $client) : void
intId of client
statReturnCanonicalMonth(int $month) : string
Wrapper for function getCanonicalMonth()
intThe digit representation of a month
stringTextual representation of a monthstatsArchive(\$yearmonth $yearmonth) : \none
\$yearmonthString with the desired archive date (YYYYMM)
\nonestatsDisplayInfo(int $id, string $type, int $x, int $y, int $w, int $h) : string
intEither article or directory id
stringThe type
intStyle top position
intStyle left position
intStyle width
intStyle height
stringComposed info layerstatsOverviewAll(\$yearmonth $yearmonth) : \none
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| modified | Timo A. Hummel <Timo.Hummel@4fb.de> |
| copyright | four for business AG <http://www.4fb.de> |
\$yearmonthSpecifies the year and month from which to retrieve the statistics, specify "current" to retrieve the current entries
\nonestatsOverviewTop(\$yearmonth $yearmonth, \$top $top) : \none
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| copyright | four for business AG <http://www.4fb.de> |
\$yearmonthSpecifies the year and month from which to retrieve the statistics, specify "current" to retrieve the current entries
\$topSpecifies the amount of pages to display
\nonestatsOverviewTopYear(\$year $year, \$top $top) : \none
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| copyright | four for business AG <http://www.4fb.de> |
\$yearSpecifies the year from which to retrieve the statistics
\$topSpecifies the amount of pages to display
\nonestatsOverviewYear(\$year $year) : \none
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| modified | Timo A. Hummel <Timo.Hummel@4fb.de> |
| copyright | four for business AG <http://www.4fb.de> |
\$yearSpecifies the year to retrieve the statistics for
\nonestrCopyCategory(int $idcat, int $destidcat, bool $remakeTree, bool $bUseCopyLabel) : void
intId of category to copy
intId of destination category
boolFlag to rebuild category tree
boolFlag to add copy label to the new categories
strCopyTree(int $idcat, int $destcat, bool $remakeTree, bool $bUseCopyLabel) : void
intId of category to copy
intId of destination category
boolFlag to rebuild category tree
boolFlag to add copy label to the new categories
strDeeperCategoriesArray($idcat_start)
strDeleteCategory(int $idcat) : void
Only categories having no child categories and having no articles will be deleted!
intId of category to delete
strHasArticles(int $tmp_idcat) : bool
intID of category
boolstrHasStartArticle(int $idcat, int $idlang) : bool
intId of category
intThe language id
boolstrMakePublic(int $idcat, int $lang, int $public) : void
intCategory id
intLanguage id
intPublic status
strMakeVisible(int $idcat, int $lang, int $visible) : void
intCategory id
intLanguage id
intVisible status
strMoveCatTargetallowed(int $idcat, int $source) : bool
intId of category to move
intId of source category
boolstrMoveDownCategory(int $idcat) : void
intId of category to move downwards
strMoveSubtree(int $idcat, int $parentid_new) : void
intId of category
intId of destination parent category
strMoveUpCategory(int $idcat) : void
intId of category to move upwards
strNewCategory(int $tmp_parentid, string $catname, bool $remakeTree, string $catalias, bool $bVisible, bool $bPublic, int $iIdtplcfg) : \(int | \void)
intId of parent category
stringThe category name
boolFlag to rebuild category tree structure
stringAlias of category
boolFlag about visible status
boolFlag about public status
intId of template configuration
\(int\void)Id of new generated category or nothing on failurestrNewTree(string $catname, string $catalias, bool $bVisible, bool $bPublic, int $iIdtplcfg) : \(int | \void)
stringThe category name
stringAlias of category
boolFlag about visible status
boolFlag about public status
intId of template configuration
\(int\void)Id of new generated category or nothing on failurestrNextBackwards($tmp_idcat)
strNextDeeper($tmp_idcat, $ignore_lang)
strNextDeeperAll($tmp_idcat, $ignore_lang)
strNextPost($tmp_idcat)
strOrderedPostTreeList($idcat, $poststring)
strRemakeTreeTable() : void
strRemakeTreeTableFindNext($tmp_idcat, $tmp_level)
@deprecated
strRenameCategory(int $idcat, int $lang, string $newcategoryname, string $newcategoryalias) : void
intCategory id
intLanguage id
stringNew category name
stringNew category alias
strShowTreeTable() : void
strSyncCategory(int $idcatParam, int $sourcelang, int $targetlang, bool $bMultiple) : void
intId of category to synchronize
intId of source language
intId of target language
boolFlag to synchronize child languages
str_ireplace_once(\$find $find, \$replace $replace, \$subject $subject) : string
Caution: This function only takes strings as parameters, not arrays!
\$findstring String to find
\$replacestring String to replace
\$subjectstring String to process
stringProcessed stringstr_ireplace_once_reverse(\$find $find, \$replace $replace, \$subject $subject) : string
Caution: This function only takes strings as parameters, not arrays!
\$findstring String to find
\$replacestring String to replace
\$subjectstring String to process
stringProcessed stringstr_rpos(\$haystack $haystack, \$needle $needle, \$start $start) : string
NOTE: The original strrpos-Function of PHP4 only finds a single character as needle.
\$haystackstring String to search in
\$needlestring String to search for
\$startinteger Offset
stringProcessed stringstripslashes_deep(mixed $value) : array
mixedEither a string or a multi-dimensional array of values
arraysystem_have_perm(integer $client) : boolean
check if the user has a right for a defined client
| author | Marco Jahn |
|---|
integerclient id
booleanwether user has access or nottplAutoFillModules($idtpl)
tplBrowseLayoutForContainers($idlay) : string
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| copyright | four for business AG <www.4fb.> |
string&-seperated String of all containerstplDeleteTemplate(int $idtpl) : \$new_idtpl
| author | Olaf Niemann <Olaf.Niemann@4fb.de> |
|---|---|
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
| copyright | four for business AG <www.4fb.> |
intID of the template to duplicate
\$new_idtplID of the duplicated templatetplDuplicateTemplate(int $idtpl) : \$new_idtpl
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| copyright | four for business AG <www.4fb.> |
intID of the template to duplicate
\$new_idtplID of the duplicated templatetplEditTemplate($changelayout, $idtpl, $name, $description, $idlay, $c, $default)
| author | Olaf Niemann <Olaf.Niemann@4fb.de> |
|---|---|
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
| copyright | four for business AG <www.4fb.de> |
tplGetContainerDefault($idlay, int $container) : array
intContainer number
arrayAllowed container typestplGetContainerMode($idlay, int $container) : string
intContainer number
stringContainer nametplGetContainerName($idlay, int $container) : string
intContainer number
stringContainer nametplGetContainerTypes($idlay, int $container) : array
intContainer number
arrayAllowed container typestplGetInUsedData(int $idtpl) : array
| author | Munkh-Ulzii Balidar |
|---|---|
| copyright | four for business AG <www.4fb.de> |
intTemplate ID
array- category name, article nametplIsTemplateInUse(int $idtpl) : bool
| author | Jan Lengowski <Jan.Lengowski@4fb.de> |
|---|---|
| copyright | four for business AG <www.4fb.de> modified Munkh-Ulzii Balidar, improved the sql query without while loop |
intTemplate ID
boolis template in usetplPreparseLayout($idlay) : \none
\nonetplcfgDuplicate(int $idtplcfg) : int
intTemplate Configuration ID
intnew template configuration IDtrans(\$string $string) : string
gettext wrapper (for future extensions). Usage: trans("Your text which has to be translated");
| deprecated | since 4.8.16 CL, use i18n instead, function will be deleted in one of next versions |
|---|
\$stringstring The string to translate
stringReturns the translationtrim_array(array $array) : array
arrayArray to trim
arrayTrimmed arrayupdateFileInformation(integer $iIdClient, string $sFilename, string $sType, string $sAuthor, string $sDescription, object $oDb, string $sFilenameNew) : void
It creates new database record for file meta informations if database record does not exist. Otherwise, existing record will be updated
| author | Timo Trautmann |
|---|
integerstringstringstringstringobjectstringuplCreateFriendlyName($filename)
uplDirectoryListRecursive($currentdir, $startdir, $files, $depth, $pathstring)
uplGetFileExtension($sFile)
uplGetFileIcon(\$file $file) : \Icon
\$fileFilename to retrieve the extension for
\Iconfor the file typeuplGetFileTypeDescription(\$extension $extension) : \Text
\$extensionExtension to use
\Textfor the file typeuplGetThumbnail($file, $maxsize)
uplHasFiles($dir)
uplHasSubdirs($dir)
uplRecursiveDBDirectoryList($directory, $rootitem, $level)
uplRecursiveDirectoryList($directory, $rootitem, $level, $sParent, $iRenameLevel)
uplRecursiveRmDirIfEmpty($dir)
uplRenameDirectory($oldpath, $newpath, $parent)
uplRender($path, $sortby, $sortmode, $startpage, $thumbnailmode)
uplRender($searchfor, $sortby, $sortmode, $startpage, $thumbnailmode)
uplSearch($searchfor)
uplSyncDirectory(string $path)
stringSpecifies the path to scan
uplSyncDirectoryDBFS(string $path)
stringSpecifies the path to scan
upldelete($path, $files)
uplmkdir($path, $name)
writeSystemValuesOutput($usage) : string
parse system and Contenido output into a string
| author | Marco Jahn |
|---|
stringreturns a string containing several server and Contenido settingsxmldoc($str)
xmldocfile($filename)
xpath_eval($xpath_context, $eval_str, $contextnode)
xpath_new_context($dom_document)
xpath_register_ns($xpath_context, $prefix, $namespaceURI)
CONTENIDO_STRIPSLASHES
Description: Makes available those super global arrays that are made available in versions of PHP after v4.1.0
Requirements:
| con_php_req | 5.0 |
|---|---|
| package | Contenido Backend includes |
| version | 1.0.1 |
| author | Martin Horwath |
| copyright | four for business AG <www.4fb.de> |
| license | http://www.contenido.org/license/LIZENZ.txt |
| link | http://www.4fb.de |
| link | http://www.contenido.org |
| since | file available since contenido release <= 4.6 {@internal created unkown modified 2008-06-25, Frederic Schneider, add stripslashes_deep and contenido_stripslashes constant modified 2008-06-26 Removed $_SERVER and $_ENV because this global vars are read only modified 2009-11-06, Murat Purc, replaced deprecated functions (PHP 5.3 ready) and removed code for PHP older than 4.1.0 modified 2011-02-04, Murat Purc, fixed potential attac by manipulated request variables (see http://forum.contenido.org/viewtopic.php?f=11&t=30812) $Id: globals_off.inc.php 2 2011-07-20 12:00:48Z oldperl $: }} |