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
boolean
SaveKeywordsforart($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
string
article specification text
addslashes_deep(mixed $value) : array
mixed
Either a string or a multi-dimensional array of values
array
array_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> |
bool
Redirect Yes/No
buildArticleSelect(String $sName, String $iIdCat, $sValue) : String
String
Name of the SelectBox
String
Value of the SelectBox
String
HTMLbuildCategorySelect(String $sName, String $sValue, Integer $sLevel, String $sStyle) : String
String
Name of the SelectBox
String
Value of the SelectBox
Integer
Value of highest level that should be shown
String
Optional style informations for select
String
HTMLbuildCategorySelectRights() : String
String
HTMLbuildHeapTable(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? |
---|
bool
Flag to add current user to current client, if no client is specified.
array
cDie(\$file $file, \$line $line, \$message $message)
\$file
File name (use FILE)
\$line
Line number (use LINE)
\$message
Message to display
cError(\$file $file, \$line $line, \$message $message)
\$file
File name (use FILE)
\$line
Line number (use LINE)
\$message
Message to display
cIDNADecode($targetEncoding, $string)
cIDNAEncode($sourceEncoding, $string)
cInclude(string $sWhere, string $sWhat, bool $bForce) : void
see | \contenido_include |
---|
string
The area which should be included
string
The filename of the include
bool
If true, force the file to be included
cInitializeArrayKey($aArray, $sKey, $mDefault)
cWarning(\$file $file, \$line $line, \$message $message)
\$file
File name (use FILE)
\$line
Line number (use LINE)
\$message
Message to display
callPluginStore(\$entity $entity)
Example: callPluginStore("frontendusers");
\$entity
Name 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.
string
The path to the image (relative to the frontend)
int
The maximum size in x-direction
int
The maximum size in y-direction
boolean
If true, the image is cropped and not scaled.
boolean
If true, the image is expanded (e.g. really scaled). If false, the image will only be made smaller.
int
The number of minutes to cache the image, use 0 for unlimited
boolean
If true, try to force high quality mode
int
The quality of the output file
boolean
If true and a png file is source, output file is also png
string
!!!URL!!! to the resulting image (http://...)string
Path to the resulting imagecapiImgScaleGetMD5CacheFile($sImg, $iMaxX, $iMaxY, $bCrop, $bExpand) : string
string
Path 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.
string
The path to the image (relative to the frontend)
int
The maximum size in x-direction
int
The maximum size in y-direction
boolean
If true, the image is cropped and not scaled.
boolean
If true, the image is expanded (e.g. really scaled). If false, the image will only be made smaller.
int
The number of minutes to cache the image, use 0 for unlimited
int
The quality of the output file
boolean
If 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.
string
The path to the image (relative to the frontend)
int
The maximum size in x-direction
int
The maximum size in y-direction
boolean
If true, the image is cropped and not scaled.
boolean
If true, the image is expanded (e.g. really scaled). If false, the image will only be made smaller.
int
The number of minutes to cache the image, use 0 for unlimited
int
The quality of the output file
boolean
If 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.
string
The path to the image (relative to the frontend)
int
The maximum size in x-direction
int
The maximum size in y-direction
boolean
If true, the image is cropped and not scaled.
boolean
If true, the image is expanded (e.g. really scaled). If false, the image will only be made smaller.
int
The number of minutes to cache the image, use 0 for unlimited
int
The quality of the output file
boolean
If 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 |
\$sString
string The string to operate on
\$bReplace
string If true, all "unclean" characters are replaced
string
The 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 |
\$sString
string The string to operate on
\$targetEncoding
string The target encoding (if false, use source encoding)
\$sourceEncoding
string The source encoding (default: ISO-8859-1)
string
The 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 |
\$sString
string The string to operate on
\$sourceEncoding
string The source encoding (default: ISO-8859-1)
string
The 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.
\$string
string The string to operate on
\$maxlen
int The maximum number of characters
string
The 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.
\$string
string The string to operate on
\$maxlen
int The maximum number of characters
string
The 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.
\$string
string The string to operate on
\$approxlen
int The approximate number of characters
\$hard
boolean If true, use a hard limit for the number of characters (default: false)
string
The 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.
\$int
idcat The category number
\$minLevel
int The level to extract
int
The 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
array
integer
array
object
boolean
- status (if language id corresponds to list of clients true otherwise false)checkMySQLConnectivity()
checkPathInformation(string $strConUrl, string $strBrowserUrl) : string
must be done
string
contenido fullhtmlPath
string
current browser string
string
status 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> |
int
Category Id
int
Template 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> |
int
ID of the starting category
string
Seperation string
string
Category location string (by reference)
boolean
create location string with links
string
stylesheet class for the links
integer
first navigation level location string should be printed out (first level = 0!!)
string
location 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> |
array
Array 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> |
int
Article 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> |
mixed
many
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> |
mixed
many
int
Id 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> |
int
Id of category
int
Id of article
int
Id of language
int
Id of client
int
Layout-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 |
int
Category ID
conGenerateCodeForAllArtsUsingTemplate(int $idtpl)
author | Jan Lengowski <Jan.Lengowski@4fb.de> |
---|---|
copyright | four for business AG 2003 |
int
Template-Id
conGenerateCodeForAllartsUsingLayout(int $idlay)
author | Jan Lengowski <Jan.Lengowski@4fb.de> |
---|---|
copyright | four for business AG 2003 |
int
Layout-ID
conGenerateCodeForAllartsUsingMod(int $idmod)
author | Jan Lengowski <Jan.Lengowski@4fb.de> |
---|---|
copyright | four for business AG 2003 |
int
Module id
conGenerateCodeForArtInAllCategories(int $idart)
author | Jan Lengowski <Jan.Lengowski@4fb.de> |
---|---|
copyright | four for business AG 2003 |
int
Article 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 |
\$client
Client
\$lang
Language of a client
conGetAvailableMetaTagTypes()
author | Timo A. Hummel <Timo.Hummel@4fb.de> |
---|---|
copyright | four for business AG 2003 |
conGetCategoryAssignments(\idart $idart, \db $db) : array
\idart
int Article ID
\db
object Optional; if specified, uses the given db object
array
Flat 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_lang
ArticleLanguageId of an article (idartlang)
array
Array 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 |
\$idartlang
ID of the article
\$idmetatype
Metatype-ID
conGetTopmostCat($idcat, $minLevel)
conLock(int $idart, \ing $lang)
int
Article Id
\ing
Language 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> |
int
id of the category
int
id of the language
int
status 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> |
int
Article Id
\ing
Language 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> |
intint
Article 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> |
int
Idcatart 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> |
integer
idartlang of the article
string
Type of content element
integer
Serial number of the content element
string
Content
conSetCodeFlag(int $idcatart)
author | Jan Lengowski <Jan.Lengowski@4fb.de> |
---|---|
copyright | four for business AG 2003 |
int
Contenido Category-Article-ID
conSetMetaValue(\$idartlang $idartlang, \$idmetatype $idmetatype, \$value $value)
author | Timo A. Hummel <Timo.Hummel@4fb.de> |
---|---|
copyright | four for business AG 2003 |
\$idartlang
ID of the article
\$idmetatype
Metatype-ID
\$value
Value 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().
string
The area which should be included
string
The filename of the include
bool
If true, force the file to be included
string
Flag 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> |
string
main area name
int
ID of element to copy
int
ID of the new element
int
ID of lang parameter
createFile(string $filename, string $path) : \(void | \bool)
Exits the script, if filename is not valid or creation (touch or chmod) fails!
string
The file to create
string
Path to the file
\(void
\bool)
Either true on success or nothingcreateRandomName(\$nameLength $nameLength) : string
Example: echo createRandomName(8);
\$nameLength
Length of the generated string
string
random namecreateRightsForElement(string $area, int $iditem, int $idlang)
author | Martin Horwath |
---|---|
copyright | dayside.net <dayside.net> |
string
main area name
int
ID of new element
int
ID 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
array
bool
Either assoziative column array or falsedbGetIndexes(\DB_Contenido $db, string $table) : array
\DB_Contenido
string
array
Assoziative 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.
string
Name of sequence table
string
Name 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
string
Name of table to create/update
string
Name of field to create/update
string
Data type of field. Feasible values are all possible data types e. g. int(10), varchar(32), datetime, varchar(255), text, tinyint(1)
string
Parameter to forbid null values, feasible values "", "NULL" or "YES" where "NULL" or "YES" allows null values and "" doesn't
string
The field will be added as a primary key, if value is "PRI", otherwhise the value should be empty ""
string
The default value for the field. Feasible is each possible value depending on passed $type
string
Additional info for the field, e. g. "auto_increment", if the field should have the AUTO_INCREMENT attribute and empty otherwise.
string
NOT USED AT THE MOMENT
bool
Flag to remove all indexes
bool
define_if($constant, $value)
deleteArtspec(integer $idartspec) : void
integer
article specification id
deleteRightsForElement(string $area, int $iditem, int $idlang)
author | Martin Horwath |
---|---|
copyright | dayside.net <dayside.net> |
string
main area name
int
ID of new element
int
ID of lang parameter
deleteSystemProperty(string $type, string $name)
string
The type of the item
string
The 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 |
---|
string
returns message if clearing was successfull or notendAndLogTiming(\uuid $uuid)
\uuid
int 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> |
string
String var by reference
fakeheader($time)
fileEdit(string $filename, string $sCode, string $path) : \(string | \void)
Exits the script, if file could not opened!
string
The file to write the content
string
File content to write
string
Path 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!
string
The filename to validate
bool
Flag 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> |
\$name
Name of the checkbox
\$value
Value of the checkbox
\$checked
Initially checked?
\Generated
field 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> |
\$type
Either "text", "password" or "textbox"
\$name
Name of the field
\$initvalue
Init value of the field
\$size
Size of the field
\$maxlen
Maximum length of the field
\Generated
field codegenerateDisplayFilePath(string $sDisplayPath, int $iLimit) : string
author | Timo Trautmann (4fb) |
---|
string
int
string
- string, which contains short path name and tooltipp if neccessarygetAllClientsAndLanguages() : array
array
Indexed 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 |
\$idart
ID of the article
\$idlang
ID of the language
mixed
idartlang of the article or false if nothing was foundgetArtspec() : array
array
list 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 |
int
Language specific ID of the arcticle
getCanonicalDay(int $iDay) : string
int
The day number of date(w)
string
Dayname of current languagegetCanonicalMonth(int $month) : string
int
string
getClientName($idclient) : string
string
client 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.
string
The type of the item
string
The name of the item
string
Optional default value
mixed
boolean 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.
array
ValuegetEncodingByLanguage(\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
string
getExpandCollapseButton($item, $catName)
getExpandCollapseButton($item)
getFileContent(string $filename, string $path) : \(string | \void)
Exits the script, if file could not opened!
string
The file to get the content
string
Path to the file
\(string
\void)
Either content of file o nothinggetFileExtension(string $filename) : \extension
string
Name of the file
\extension
on success, false if no extension could be extracted.getFileInformation(integer $iIdClient, string $sFilename, string $sType, object $oDb) : array
author | Timo Trautmann |
---|
integer
string
string
object
array
Indexes: 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
string
The file to get the type
string
FiletypegetFiles($sPath, $sFileType, $sNoti)
getGroupOrUserName($uid)
getIDForArea(mixed $area) : int
mixed
Area name
int
getLanguageNamesByClient(int $client) : array
int
array
List of languages where the key is the language id and value the language namegetLanguagesByClient($client)
getNamedFrame(\$frame $frame) : string
\$frame
Frame number
string
Canonical name of the framegetParentAreaId(mixed $area) : int
mixed
int
getPhpModuleInfo(\$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 |
---|
\$modulName
string specify modul name or if not get all settings
array
see 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; |
---|
boolean
bGetPropId - if true special mode is activated which generates for each property a third array, which also contains idsystemprop value
array
getSystemPropertiesByType($sType) : array
array
ValuegetSystemProperty(string $type, string $name) : mixed
string
The type of the item
string
The name of the item
mixed
boolean 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
string
human_readable_size($number)
i18n(\$string $string, \$domain $domain) : string
gettext wrapper (for future extensions). Usage: i18n("Your text which has to be translated");
\$string
string The string to translate
\$domain
string The domain to look up
string
Returns the translationi18nEmulateGettext(\$string $string, \$domain $domain) : string
Emulates GNU gettext
\$string
string The string to translate
\$domain
string The domain to look up
string
Returns the translationi18nGetAvailableLanguages() : array
Returns the available_languages array to prevent globals.
array
All 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.
string
The locale key for the given accept stringi18nRegisterDomain(\$localePath $domain, \$domain $localePath) : string
Registers a new i18n domain.
\$localePath
string Path to the locales
\$domain
string Domain to bind to
string
Returns 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
array
Array with the short form of the accept languagesincludePlugins(\$entity $entity)
Example: includePlugins("frontendusers");
\$entity
Name of the directory to scan
isAnimGif(string $sFile) : boolean
string
file path
boolean
true (gif is animated)/ false (single frame gif)isArtInMultipleUse(int $idart) : bool
int
Article-Id
bool
Article assigned to multiple categoriesisGroup($uid)
isIPv4(string $strHostAdress) : boolean
string
ip adress
boolean
if string is a valid ip or notisImageMagickAvailable() : boolean
boolean
true if ImageMagick is availableisRunningFromWeb() : boolean
boolean
true if the script is running from the webisStartArticle($idartlang, $idcat, $idlang, $db)
isValidMail($sEMail, $bStrict)
is_alphanumeric(mixed $test, bool $umlauts) : bool
mixed
Value to test
bool
[Use german Umlaute] Optional
bool
Value 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> |
string
Name 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> |
int
Id of the Layout
string
Name of the Layout
string
Description of the Layout
string
Layout 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> |
int
Which menuitem to mark
bool
Return or echo script
mi18n(string $string) : string
global | int $cCurrentModule |
---|---|
global | string $lang |
global | cApiModuleTranslationCollection $mi18nTranslator |
string
string to translate
string
translated 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');
string
The name of the plugin
string
The 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> |
int
ID of the starting category
string
Seperation string
string
Category location string (by reference)
boolean
create location string with links
string
stylesheet class for the links
integer
first navigation level location string should be printed out (first level = 0!!)
string
location 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.
\$path
string Path to resolve
integer
Closest 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.
\$path
string Path to resolve
integer
Closest 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 |
---|
integer
string
string
object
renameFile(string $sOldFile, string $sNewFile, string $path) : \(void | \string)
Exits the script, if new filename is not valid or renaming fails!
string
Old filename
string
New filename
string
Path 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!
\$entity
Name of the directory to scan
string
client 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 |
---|
string
returns 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
array
global cfg-array
int
global language id
sendPostRequest(\$host $host, \$pathhost $path, \$data $data, \$referer $referer, \$port $port)
Example: sendPostRequest("hostname", "serverpath/test.php", $data);
\$host
Hostname or domain
\$pathhost
Path on the host or domain
\$data
Data to send
\$referer
Referer (optional)
\$port
Port (default: 80)
setArtspecDefault(integer $idartspec) : void
while creating a new article this defined article specification will be default setting
integer
article specification id
setArtspecOnline(integer $idartspec, integer $online) : void
flag to switch if an article specification should be shown the frontend or not
integer
article specification id
integer
0/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 |
---|
string
The type of the item
string
The name of the item
string
The value of the item
int
The 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
\function
string Name of the function
\parameters
array All parameters for the function to measure
int
uuid for this measure processstatCreateLocationString(int $idcat, string $seperator, string $cat_str) : void
Performs a recursive call, if parent category doesn't matches to 0
int
The category id
string
Separator for location string
string
The 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
string
Returns a drop down stringstatDisplayYearlyTopChooser($default) : string
author | Timo A. Hummel <Timo.Hummel@4fb.de> |
---|---|
copyright | four for business AG <http://www.4fb.de> |
none
string
Returns 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> |
mixed
many
array
Array 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> |
mixed
many
array
Array of strings with years.statResetStatistic(int $client) : void
int
Id of client
statReturnCanonicalMonth(int $month) : string
Wrapper for function getCanonicalMonth()
int
The digit representation of a month
string
Textual representation of a monthstatsArchive(\$yearmonth $yearmonth) : \none
\$yearmonth
String with the desired archive date (YYYYMM)
\none
statsDisplayInfo(int $id, string $type, int $x, int $y, int $w, int $h) : string
int
Either article or directory id
string
The type
int
Style top position
int
Style left position
int
Style width
int
Style height
string
Composed 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> |
\$yearmonth
Specifies the year and month from which to retrieve the statistics, specify "current" to retrieve the current entries
\none
statsOverviewTop(\$yearmonth $yearmonth, \$top $top) : \none
author | Timo A. Hummel <Timo.Hummel@4fb.de> |
---|---|
copyright | four for business AG <http://www.4fb.de> |
\$yearmonth
Specifies the year and month from which to retrieve the statistics, specify "current" to retrieve the current entries
\$top
Specifies the amount of pages to display
\none
statsOverviewTopYear(\$year $year, \$top $top) : \none
author | Timo A. Hummel <Timo.Hummel@4fb.de> |
---|---|
copyright | four for business AG <http://www.4fb.de> |
\$year
Specifies the year from which to retrieve the statistics
\$top
Specifies the amount of pages to display
\none
statsOverviewYear(\$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> |
\$year
Specifies the year to retrieve the statistics for
\none
strCopyCategory(int $idcat, int $destidcat, bool $remakeTree, bool $bUseCopyLabel) : void
int
Id of category to copy
int
Id of destination category
bool
Flag to rebuild category tree
bool
Flag to add copy label to the new categories
strCopyTree(int $idcat, int $destcat, bool $remakeTree, bool $bUseCopyLabel) : void
int
Id of category to copy
int
Id of destination category
bool
Flag to rebuild category tree
bool
Flag 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!
int
Id of category to delete
strHasArticles(int $tmp_idcat) : bool
int
ID of category
bool
strHasStartArticle(int $idcat, int $idlang) : bool
int
Id of category
int
The language id
bool
strMakePublic(int $idcat, int $lang, int $public) : void
int
Category id
int
Language id
int
Public status
strMakeVisible(int $idcat, int $lang, int $visible) : void
int
Category id
int
Language id
int
Visible status
strMoveCatTargetallowed(int $idcat, int $source) : bool
int
Id of category to move
int
Id of source category
bool
strMoveDownCategory(int $idcat) : void
int
Id of category to move downwards
strMoveSubtree(int $idcat, int $parentid_new) : void
int
Id of category
int
Id of destination parent category
strMoveUpCategory(int $idcat) : void
int
Id of category to move upwards
strNewCategory(int $tmp_parentid, string $catname, bool $remakeTree, string $catalias, bool $bVisible, bool $bPublic, int $iIdtplcfg) : \(int | \void)
int
Id of parent category
string
The category name
bool
Flag to rebuild category tree structure
string
Alias of category
bool
Flag about visible status
bool
Flag about public status
int
Id 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)
string
The category name
string
Alias of category
bool
Flag about visible status
bool
Flag about public status
int
Id 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
int
Category id
int
Language id
string
New category name
string
New category alias
strShowTreeTable() : void
strSyncCategory(int $idcatParam, int $sourcelang, int $targetlang, bool $bMultiple) : void
int
Id of category to synchronize
int
Id of source language
int
Id of target language
bool
Flag to synchronize child languages
str_ireplace_once(\$find $find, \$replace $replace, \$subject $subject) : string
Caution: This function only takes strings as parameters, not arrays!
\$find
string String to find
\$replace
string String to replace
\$subject
string String to process
string
Processed stringstr_ireplace_once_reverse(\$find $find, \$replace $replace, \$subject $subject) : string
Caution: This function only takes strings as parameters, not arrays!
\$find
string String to find
\$replace
string String to replace
\$subject
string String to process
string
Processed stringstr_rpos(\$haystack $haystack, \$needle $needle, \$start $start) : string
NOTE: The original strrpos-Function of PHP4 only finds a single character as needle.
\$haystack
string String to search in
\$needle
string String to search for
\$start
integer Offset
string
Processed stringstripslashes_deep(mixed $value) : array
mixed
Either a string or a multi-dimensional array of values
array
system_have_perm(integer $client) : boolean
check if the user has a right for a defined client
author | Marco Jahn |
---|
integer
client id
boolean
wether 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.> |
int
ID of the template to duplicate
\$new_idtpl
ID of the duplicated templatetplDuplicateTemplate(int $idtpl) : \$new_idtpl
author | Jan Lengowski <Jan.Lengowski@4fb.de> |
---|---|
copyright | four for business AG <www.4fb.> |
int
ID of the template to duplicate
\$new_idtpl
ID 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
int
Container number
array
Allowed container typestplGetContainerMode($idlay, int $container) : string
int
Container number
string
Container nametplGetContainerName($idlay, int $container) : string
int
Container number
string
Container nametplGetContainerTypes($idlay, int $container) : array
int
Container number
array
Allowed container typestplGetInUsedData(int $idtpl) : array
author | Munkh-Ulzii Balidar |
---|---|
copyright | four for business AG <www.4fb.de> |
int
Template 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 |
int
Template ID
bool
is template in usetplPreparseLayout($idlay) : \none
\none
tplcfgDuplicate(int $idtplcfg) : int
int
Template Configuration ID
int
new 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 |
---|
\$string
string The string to translate
string
Returns the translationtrim_array(array $array) : array
array
Array to trim
array
Trimmed 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 |
---|
integer
string
string
string
string
object
string
uplCreateFriendlyName($filename)
uplDirectoryListRecursive($currentdir, $startdir, $files, $depth, $pathstring)
uplGetFileExtension($sFile)
uplGetFileIcon(\$file $file) : \Icon
\$file
Filename to retrieve the extension for
\Icon
for the file typeuplGetFileTypeDescription(\$extension $extension) : \Text
\$extension
Extension to use
\Text
for 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)
string
Specifies the path to scan
uplSyncDirectoryDBFS(string $path)
string
Specifies the path to scan
upldelete($path, $files)
uplmkdir($path, $name)
writeSystemValuesOutput($usage) : string
parse system and Contenido output into a string
author | Marco Jahn |
---|
string
returns 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 $: }} |