Classes and interfaces

cArray

Array helper class.

« More »

Classes and interfaces

cAuth

This class contains functions for global authentication in CONTENIDO.

« More »

cAuthHandlerAbstract

This class contains the abstract methods for the authentication in CONTENIDO.

« More »

cAuthHandlerBackend

This class contains the methods for the backend authentication in CONTENIDO.

« More »

cAuthHandlerFrontend

This class contains the methods for the frontend authentication in CONTENIDO.

« More »

Functions

mailLogBulkEditingFunctions()

mailLogBulkEditingFunctions() 

Takes an associative array where the keys represent the mail addresses and the values optionally represent the mailer name and returns an HTML representation in the following form: Vorname Nachname <vorname.nachname@domain.tld> Vorname2 Nachname2 <vorname2.nachname2@domain2.tld>

mailLogDecodeAddresses(array $addresses) : string

Parameters

$addresses

array

associative array containing the mail addresses as keys and the mailer names as values

Returns

stringHTML code showing the given mail addresses and names

Classes and interfaces

cFileCache

This class contains functions for the file cache in CONTENIDO.

« More »

cOutputCache

This class contains functions for the output cache in CONTENIDO.

« More »

cOutputCacheHandler

This class contains functions for the output cache handler in CONTENIDO.

« More »

Functions

Change the template of a category

conChangeTemplateForCat(int $idcat, int $idtpl) 

Parameters

$idcat

int

Category Id

$idtpl

int

Template Id

Copy article language entry.

conCopyArtLang(int $srcidart, int $dstidart, int $newtitle, int $useCopyLabel) 
global array $cfg
global int $lang

Parameters

$srcidart

int

$dstidart

int

$newtitle

int

$useCopyLabel

int

Copy article entry.

conCopyArticle(int $srcidart, int $targetcat, string $newtitle, bool $useCopyLabel) : bool
global object $auth

Parameters

$srcidart

int

$targetcat

int

$newtitle

string

$useCopyLabel

bool

Returns

bool

Copies container configuration entries from source container configuration to destination container configuration.

conCopyContainerConf(int $srcidtplcfg, int $dstidtplcfg) 

Parameters

$srcidtplcfg

int

$dstidtplcfg

int

Copies content entries from source article language to destination article language.

conCopyContent(int $srcidartlang, int $dstidartlang) 

Parameters

$srcidartlang

int

$dstidartlang

int

Copies meta tag entries from source article language to destination article language.

conCopyMetaTags(int $srcidartlang, int $dstidartlang) 

Parameters

$srcidartlang

int

$dstidartlang

int

Copies template configuration entry from source template configuration.

conCopyTemplateConfiguration(int $srcidtplcfg) 

Parameters

$srcidtplcfg

int

Recursive function to create an location string

conCreateLocationString(int $idcat, string $seperator, string $catStr, bool $makeLink, string $linkClass, int $firstTreeElementToUse, int $uselang, bool $final, bool $usecache) : string

Parameters

$idcat

int

ID of the starting category

$seperator

string

Seperation string

$catStr

string

Category location string (by reference)

$makeLink

bool

Create location string with links

$linkClass

string

Stylesheet class for the links

$firstTreeElementToUse

int

First navigation Level location string should be printed out (first level = 0!!)

$uselang

int

Id of language

$final

bool

$usecache

bool

Returns

stringLocation string

Fetch all deeper categories by a given id

conDeeperCategoriesArray(int $idcat) : array

Parameters

$idcat

int

Id of category

Returns

arrayArray with all deeper categories

Delete an Article and all other related entries

conDeleteart(int $idart) 

Parameters

$idart

int

Article Id

Edit an existing article

conEditArt(mixed $idcat, $idcatnew, $idart, $isstart, $idtpl, $idartlang, $idlang, $title, $summary, $artspec, $created, $lastmodified, $author, $online, $datestart, $dateend, $artsort, $keyart, $searchable, $sitemapprio, $changefreq) : void

Parameters

$idcat

mixed

many

$idcatnew

$idart

$isstart

$idtpl

$idartlang

$idlang

$title

$summary

$artspec

$created

$lastmodified

$author

$online

$datestart

$dateend

$artsort

$keyart

$searchable

$sitemapprio

$changefreq

Create a new Article

conEditFirstTime(mixed $idcat, $idcatnew, $idart, $isstart, $idtpl, $idartlang, $idlang, $title, $summary, $artspec, $created, $lastmodified, $author, $online, $datestart, $dateend, $artsort, $keyart, $searchable, $sitemapprio, $changefreq) : int

Parameters

$idcat

mixed

many

$idcatnew

$idart

$isstart

$idtpl

$idartlang

$idlang

$title

$summary

$artspec

$created

$lastmodified

$author

$online

$datestart

$dateend

$artsort

$keyart

$searchable

$sitemapprio

$changefreq

Returns

intId of the new article

Returns category tree structure.

conFetchCategoryTree(int $client, int $lang) : array

Parameters

$client

int

Uses global set client if not set

$lang

int

Uses global set language if not set

Returns

array

Set articles on/offline for the time management function

conFlagOnOffline() 

Create code for all articles

conGenerateCodeForAllArts() 

Generate code for all articles in a category

conGenerateCodeForAllArtsInCategory(int $idcat) 

Parameters

$idcat

int

Category ID

Generate code for all articles using one template

conGenerateCodeForAllArtsUsingTemplate(int $idtpl) 

Parameters

$idtpl

int

Template-Id

Create code for all arts using the same layout

conGenerateCodeForAllartsUsingLayout(int $idlay) 

Parameters

$idlay

int

Layout-ID

Create code for all articles using the same module

conGenerateCodeForAllartsUsingMod(int $idmod) 

Parameters

$idmod

int

Module id

Create code for one article in all categorys

conGenerateCodeForArtInAllCategories(int $idart) 

Parameters

$idart

int

Article ID

Generate code for the active client

conGenerateCodeForClient() 

Returns all categories in which the given article is in.

conGetCategoryAssignments(int $idart, \cDb | null $db) : array

Parameters

$idart

int

Article ID

$db

\cDbnull

If specified, uses the given db object (NOT used)

Returns

arrayFlat array which contains all category id's

conGetTopmostCat()

conGetTopmostCat(int $idcat, int $minLevel) : int
todo Returns something....
global array $cfg
global int $client
global int $lang

Parameters

$idcat

int

$minLevel

int

Returns

int

Checks if a article is locked or not

conIsLocked(int $idart, int $lang) : bool

Parameters

$idart

int

Article Id

$lang

int

Language Id

Returns

bool

Toggle the lock status of an article

conLock(int $idart, \ing $lang) 

Parameters

$idart

int

Article Id

$lang

\ing

Language Id

Freeze/Lock more articles.

conLockBulkEditing(array $idarts, int $idlang, bool $lock) 

Parameters

$idarts

array

All articles

$idlang

int

$lock

bool

Generate index of article content.

conMakeArticleIndex($idartlang, integer $idart) 

added by stese removed from function conSaveContentEntry before Touch the article to update last modified date

see \global\conSaveContentEntry

Parameters

$idartlang

$idart

integer

Toggle the online status of a category

conMakeCatOnline(int $idcat, int $lang, int $status) 

Parameters

$idcat

int

Id of the category

$lang

int

Id of the language

$status

int

Status of the category

Toggle the online status of an article

conMakeOnline(int $idart, \ing $lang) 

Parameters

$idart

int

Article Id

$lang

\ing

Language Id

Set the status from articles to online or offline.

conMakeOnlineBulkEditing(array $idarts, int $idlang, bool $online) 

Parameters

$idarts

array

All articles

$idlang

int

$online

bool

Toggle the public status of a category

conMakePublic(int | int $idcat, $lang, bool $public) 

Almost the same function as strMakePublic in functions.str.php (conDeeperCategoriesArray instead of strDeeperCategoriesArray)

Parameters

$idcat

intint

Category Id

$lang

$public

bool

Public status of the Article

Set a start-article

conMakeStart(int $idcatart, bool $isstart) 
fixme Do we still need the isstart. The old start compatibility has already been removed...

Parameters

$idcatart

int

Idcatart of the article

$isstart

bool

Start article flag

Move articles for the time management function

conMoveArticles() 

Deletes old category article entries and other related entries from other tables.

conRemoveOldCategoryArticle(int $idcat, int $idart, int $idartlang, int $client, int $lang) 
global array $cfgClient

Parameters

$idcat

int

$idart

int

$idartlang

int

$client

int

$lang

int

Save a content element and generate index

conSaveContentEntry(int $idartlang, string $type, int $typeid, string $value, bool $bForce) : void

Parameters

$idartlang

int

idartlang of the article

$type

string

Type of content element

$typeid

int

Serial number of the content element

$value

string

Content

$bForce

bool

Not used: Was a flag to use existing db instance in global scope

Set code creation flag for one category article id to true

conSetCodeFlag(int $idcatart) 

Parameters

$idcatart

int

Category article id

Set code creation flag for several category article ids to true

conSetCodeFlagBulkEditing(array $idcatarts) 

Parameters

$idcatarts

array

List of category article ids

Synchronizes an article from source language to destination language.

conSyncArticle(int $idart, int $srclang, int $dstlang) : void

Parameters

$idart

int

Article id

$srclang

int

Source language id

$dstlang

int

Destination language id

Extract a number from a string

extractNumber(string $string) 

Parameters

$string

string

String var by reference

Checks if an article is a start article of a category.

isStartArticle(int $idartlang, int $idcat, int $idlang, \cDb | null $db) : bool
global array $cfg

Parameters

$idartlang

int

$idcat

int

$idlang

int

$db

\cDbnull

(NOT used)

Returns

bool

Classes and interfaces

cCodeGeneratorAbstract

CONTENIDO abstract code generator class.

« More »

cCodeGeneratorFactory

CONTENIDO code generator factory.

« More »

cCodeGeneratorStandard

CONTENIDO standard code generator.

« More »

cContentTypeAbstract

Abstract content type from which every content type should inherit.

« More »

cContentTypeAbstractTabbed

Abstract content type for content types which are edited in a tabbed popup.

« More »

cContentTypeDate

Content type CMS_DATE which allows the editor to select a date from a calendar and a date format.

« More »

cContentTypeFilelist

Content type CMS_FILELIST which lets the editor select some folders or files.

« More »

cContentTypeHead

Content type CMS_HEAD which lets the editor enter a single-line text.

« More »

cContentTypeHtml

Content type CMS_HTML which lets the editor enter HTML with the help of a WYSIWYG editor.

« More »

cContentTypeHtmlhead

Content type CMS_HTMLHEAD which lets the editor enter HTML with the help of a WYSIWYG editor.

« More »

cContentTypeImg

Content type CMS_IMG which displays the path to the selected image.

« More »

cContentTypeImgdescr

Content type CMS_IMGDESCR which displays the description of the selected image.

« More »

cContentTypeImgeditor

Content type CMS_IMGEDITOR which lets the editor select an image.

« More »

cContentTypeLinkdescr

Content type CMS_LINKDESCR which displays the link description.

« More »

cContentTypeLinkeditor

Content type CMS_LINKEDITOR which lets the editor select a link.

« More »

cContentTypeLinktarget

Content type CMS_LINKTARGET which displays the link target.

« More »

cContentTypeTeaser

Content type CMS_TEASER which lets the editor select articles in various ways which are displayed as teasers.

« More »

cContentTypeText

Content type CMS_TEXT which lets the editor enter a single-line text.

« More »

Classes and interfaces

cDb

This class contains functions for handling record sets and interaction with database in CONTENIDO.

« More »

cDbDriverAbstract

This class contains abstract method definitions for each database driver in CONTENIDO.

« More »

cDbDriverHandler

This class contains functions for database driver handling in CONTENIDO.

« More »

cDbDriverMysql

This class contains functions for database interaction based on MySQL in CONTENIDO.

« More »

cDbDriverMysqli

This class contains functions for database interaction based on MySQLi in CONTENIDO.

« More »

Classes and interfaces

cDebug

Debugger class

« More »

Classes and interfaces

cHTML

Base class for all CONTENIDO HTML classes

« More »

cHTMLAlignmentTable

cHTMLAlignmentTable class represents an alignment table.

« More »

cHTMLButton

cHTMLButton class represents a button.

« More »

cHTMLCheckbox

cHTMLCheckbox class represents a checkbox.

« More »

cHTMLDiv

cHTMLDiv class represents a div element.

« More »

cHTMLForm

cHTMLForm class represents a form.

« More »

cHTMLFormElement

cHTMLFormElement class represents a form element.

« More »

cHTMLHiddenField

cHTMLHiddenField class represents a hidden form field.

« More »

cHTMLIFrame

cHTMLIFrame class represents an iframe.

« More »

cHTMLImage

cHTMLImage class represents an image.

« More »

cHTMLLabel

cHTMLLabel class represents a form label.

« More »

cHTMLList

cHTMLList class represents a list.

« More »

cHTMLListItem

cHTMLListItem class represents a list item.

« More »

cHTMLOptionElement

cHTMLOptionElement class represents a select option element.

« More »

cHTMLParagraph

cHTMLParagraph class represents a paragraph.

« More »

cHTMLPasswordbox

cHTMLPasswordbox class represents a password form field.

« More »

cHTMLRadiobutton

cHTMLRadiobutton class represents a radio button.

« More »

cHTMLScript

cHTMLScript class represents a script.

« More »

cHTMLSelectElement

cHTMLSelectElement class represents a select element.

« More »

cHTMLSpan

cHTMLSpan class represents a span element.

« More »

cHTMLTable

cHTMLTable class represents a table.

« More »

cHTMLTableBody

cHTMLTableBody class represents a table body.

« More »

cHTMLTableData

cHTMLTableData class represents a table date.

« More »

cHTMLTableHead

cHTMLTableHead class represents a table head.

« More »

cHTMLTableHeader

cHTMLTableHeader class represents a table header.

« More »

cHTMLTableRow

cHTMLTableRow class represents a table row.

« More »

cHTMLTextarea

cHTMLTextarea class represents a textarea.

« More »

cHTMLTextbox

cHTMLTextbox class represents a textbox.

« More »

cHTMLUpload

cHTMLUpload class represents a file upload element.

« More »

Functions

IP_match()

IP_match($network, $mask, $ip) 
deprecated [2012-08-02] Use ipMatch() instead

Parameters

$network

$mask

$ip

Add new article specification

addArtspec(string $artspectext, int $online) : void

Parameters

$artspectext

string

specification text

$online

int

Online status (1 or 0)

array_csort()

array_csort() 
deprecated [2012-08-02] Use cArray::csort() instead

array_search_recursive()

array_search_recursive($search, $array, $partial, $strict) 
deprecated [2012-08-02] Use cArray::searchRecursive() instead

Parameters

$search

$array

$partial

$strict

Redirect to main area

backToMainArea(bool $send) 

Parameters

$send

bool

Redirect Yes/No

Build a Article select Box

buildArticleSelect(string $sName, string $iIdCat, string $sValue) : string

Parameters

$sName

string

Name of the SelectBox

$iIdCat

string

category id

$sValue

string

Value of the SelectBox

Returns

stringHTML

Build a Category / Article select Box

buildCategorySelect(string $sName, string $sValue, int $sLevel, string $sStyle) : string

Parameters

$sName

string

Name of the SelectBox

$sValue

string

Value of the SelectBox

$sLevel

int

Value of highest level that should be shown

$sStyle

string

Optional style informations for select

Returns

stringHTML

Returns a formatted string with a stack trace ready for output.

buildStackString(int $startlevel) : string

"\tfunction1() called in file $filename($line)" "\tfunction2() called in file $filename($line)" ...

Parameters

$startlevel

int

The startlevel. Note that 0 is always buildStackString and 1 is the function called buildStackString (e.g. cWarning)

Returns

string

Writes a note to deprecatedlog.txt

cDeprecated($message) : void

Parameters

$message

CONTENIDO die-alternative.

cDie(string $file, int $line, string $message) 

Logs the message and calls die().

Parameters

$file

string

File name (use FILE)

$line

int

Line number (use LINE)

$message

string

Message to display

CONTENIDO error

cError(\Multiple $file, $line, $message) 

Examples:

// New version
cWarning('Some error message');
// Old version
cWarning(__FILE__, __LINE__, 'Some error message');

Parameters

$file

\Multiple

parameters

$line

$message

cIDNADecode()

cIDNADecode($targetEncoding, $string) 
deprecated [2011-08-24] This function is not supported any longer

Parameters

$targetEncoding

$string

cIDNAEncode()

cIDNAEncode($sourceEncoding, $string) 
deprecated [2011-08-24] This function is not supported any longer

Parameters

$sourceEncoding

$string

cInitializeArrayKey()

cInitializeArrayKey($aArray, $sKey, $mDefault) 
deprecated 2012-09-05 use function located in cArray instead of this function

Parameters

$aArray

$sKey

$mDefault

CONTENIDO warning

cWarning() 

Examples:

// New version
cWarning('Some warning message');
// Old version
cWarning(__FILE__, __LINE__, 'Some warning message');

Calls the plugin's store methods.

callPluginStore(string $entity) 

Parameters

$entity

string

Name of the directory to scan

checkMySQLConnectivity()

checkMySQLConnectivity() 
deprecated [2012-01-18] cDb performs the check for itself. This method is no longer needed

Small hack to clean up unused sessions.

cleanupSessions() 

As we are probably soon rewriting the session management, this hack is OK.

deprecated [2012-07-??] PHP will handle cleaning up sessions

Creates a random name (example: Passwords).

createRandomName(int $nameLength) : string

Parameters

$nameLength

int

Length of the generated string

Returns

stringRandom name

Defines a constant if not defined before.

defineIfNotDefined(string $constant, mixed $value) 

Parameters

$constant

string

Name of constant to define

$value

mixed

It's value

define_if()

define_if($constant, $value) 
deprecated [2012-08-02] Use defineIfNotDefined() instead

Parameters

$constant

$value

Delete specified article specification

deleteArtspec(int $idartspec) : void

Parameters

$idartspec

int

article specification id

Remove a system property entry

deleteSystemProperty(string $type, string $name) : bool

Parameters

$type

string

The type of the item

$name

string

The name of the item

Returns

bool

Returns a formatted date and/or timestring according to the current settings

displayDatetime(mixed $timestamp, bool $date, bool $time) : string

Parameters

$timestamp

mixed

a timestamp. If no value is given the current time will be used.

$date

bool

if true the date will be included in the string

$time

bool

if true the time will be included in the string

Returns

stringthe formatted timestring.

displayPlugin()

displayPlugin($entity, $form) 
deprecated [2012-02-26] Function does not work and is not longer supported

Parameters

$entity

$form

Ends the timing process and logs it to the timings file

endAndLogTiming($uuid) 

Parameters

$uuid

int UUID which has been used for timing

fakeheader()

fakeheader($time) 
deprecated [2012-03-05] This function is not longer supported.

Parameters

$time

Returns a list with all clients and languages.

getAllClientsAndLanguages() : array

Returns

arrayIndexed array where the value is an assoziative array as follows:
        - $arr[0]['idlang']
        - $arr[0]['langname']
        - $arr[0]['idclient']
        - $arr[0]['clientname']
        

Retrieve list of article specifications for current client and language

getArtspec() : array

Returns

arraylist of article specifications

Extracts the available content-types from the database

getAvailableContentTypes(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

Parameters

$idartlang

int

Language specific ID of the arcticle

Get multi-language day

getCanonicalDay(int $iDay) : string

Parameters

$iDay

int

The day number of date(w)

Returns

stringDayname of current language

Returns multi-language month name (canonical) by its numeric value

getCanonicalMonth(int $month) : string

Parameters

$month

int

Returns

string

getClientName()

getClientName($idclient) 
deprecated [2012-06-21] Use cApiClientCollection->getClientname()

Parameters

$idclient

Returns the current effective setting for a property.

getEffectiveSetting(string $type, string $name, string $default) : mixed

The order is: System => Client => Group => User

System properties can be overridden by the group, and group properties can be overridden by the user.

Parameters

$type

string

The type of the item

$name

string

The name of the item

$default

string

Optional default value

Returns

mixedboolean false if nothing was found

Returns the current effective settings for a type of properties.

getEffectiveSettingsByType(string $type) : array

The order is: System => Client => Group => User

System properties can be overridden by the group, and group properties can be overridden by the user.

Parameters

$type

string

The type of the item

Returns

arrayValue

getFileExtension()

getFileExtension($filename) 
deprecated [2012-06-20] Use getFileType() from functions.file.php

Parameters

$filename

getGroupOrUserName()

getGroupOrUserName($uid) 

Parameters

$uid

Returns the id of passed area

getIDForArea(int | string $area) : int

Parameters

$area

intstring

Area name or id

Returns

intstring

Returns all languages (language ids and names) of an client

getLanguageNamesByClient(int $client) : array

Parameters

$client

int

Returns

arrayList of languages where the key is the language id and value the language name

Returns list of languages (language ids) by passed client.

getLanguagesByClient(int $client) : array

Parameters

$client

int

Returns

array

Returns the name of the numeric frame given

getNamedFrame(int $frame) : string

Parameters

$frame

int

Frame number

Returns

stringCanonical name of the frame

Returns the parent id of passed area

getParentAreaId(mixed $area) : int

Parameters

$area

mixed

Returns

int

getPhpModuleInfo()

getPhpModuleInfo($moduleName) 
deprecated [2012-03-10] This function is not longer supported.

Parameters

$moduleName

Retrieves all available system properties.

getSystemProperties(bool $bGetPropId) : array

Array format:

$array[$type][$name] = $value;

modified Timo Trautmann 22.02.2008 Support for editing name and type editing by primaray key idsystemprop if bGetPropId is set: $array[$type][$name][value] = $value; $array[$type][$name][idsystemprop] = $idsystemprop;

Parameters

$bGetPropId

bool

If true special mode is activated which generates for each property a third array, which also contains idsystemprop value

Returns

array

Gets system property entries

getSystemPropertiesByType(string $type) : array

Parameters

$type

string

The type of the properties

Returns

arrayAssoziative array like $arr[name] = value

Gets a system property entry

getSystemProperty(string $type, string $name) : string

Parameters

$type

string

The type of the item

$name

string

The name of the item

Returns

stringbool property value or false if nothing was found

getmicrotime()

getmicrotime() 

htmldecode()

htmldecode($string) 

Parameters

$string

humanReadableSize()

humanReadableSize($number) 

Parameters

$number

human_readable_size()

human_readable_size($number) 
deprecated [2012-08-02] Use humanReadableSize() instead

Parameters

$number

Includes plugins for a given entity.

includePlugins($entity) 

Parameters

$entity

Name of the directory to scan

IP match

ipMatch(string $network, string $mask, string $ip) : boolean

Parameters

$network

string

$mask

string

$ip

string

Returns

boolean

Checks if a value is alphanumeric

isAlphanumeric(mixed $test, bool $umlauts) : bool

Parameters

$test

mixed

Value to test

$umlauts

bool

[Use german Umlaute] Optional

Returns

boolValue is alphanumeric

Checks if an article is assigned to multiple categories

isArtInMultipleUse(int $idart) : bool

Parameters

$idart

int

Article-Id

Returns

boolArticle assigned to multiple categories

isGroup()

isGroup($uid) 

Parameters

$uid

isImageMagickAvailable()

isImageMagickAvailable() 
deprecated [2012-06-21] Use capiIsImageMagickAvailable() from functions.api.images.php

Checks if the script is being runned from the web

isRunningFromWeb() : bool

Returns

boolTrue if the script is running from the web

Returns wether a string is UTF-8 encoded or not

isUtf8(string $input) : bool

Parameters

$input

string

Returns

bool

Checks if passed email address is valid or not

isValidMail(string $email, bool $strict) 

Parameters

$email

string

$strict

bool

No more used!

is_alphanumeric()

is_alphanumeric($test, $umlauts) 
deprecated [2012-08-02] Use isAlphanumeric() instead

Parameters

$test

$umlauts

is_dbfs()

is_dbfs($file) 
deprecated [2012-06-20] Use cApiDbfs::isDbfs()

Parameters

$file

is_utf8()

is_utf8($input) 
deprecated [2012-08-02] Use isUtf8() instead

Parameters

$input

locale_arsort()

locale_arsort($locale, $array) 
deprecated [2012-08-02] Use cArray::sortWithLocale() instead

Parameters

$locale

$array

Write JavaScript to mark

markSubMenuItem(int $menuitem, bool $return) 

Parameters

$menuitem

int

Which menuitem to mark

$return

bool

Return or echo script

notifyOnError()

notifyOnError($errortitle, $errormessage) 
deprecated 2012-09-04 Use cWarning or the like.

Parameters

$errortitle

$errormessage

recursive_copy()

recursive_copy($from_path, $to_path) 
deprecated [2012-06-20] Use getFileType() from functions.file.php

Parameters

$from_path

$to_path

rereadClients()

rereadClients() 
deprecated no longer needed

Scans a given plugin directory and places the found plugins into the array $cfg['plugins'].

scanPlugins(string $entity) : void

Result: $cfg['plugins']['frontendusers'] => array with all found plugins

Note: Plugins are only "found" if the following directory structure if found:

entity/ plugin1/plugin1.php plugin2/plugin2.php

The plugin's directory and file name have to be the same, otherwise the function won't find them!

Parameters

$entity

string

Name of the directory to scan

Function checks current language and client settings by HTTP-Params and DB settings.

sendEncodingHeader(\cDb $db, array $cfg, int $lang, string $contentType) 

Based on this informations it will send an HTTP header for right encoding.

Parameters

$db

\cDb

NO MORE NEEDED

$cfg

array

Global cfg-array

$lang

int

Global language id

$contentType

string

Mime type

sendPostRequest()

sendPostRequest($host, $path, $data, $referer, $port) 
deprecated 2011-08-23 This function is not supported any longer

Parameters

$host

$path

$data

$referer

$port

Set a default article specification

setArtspecDefault(int $idartspec) : void

While creating a new article this defined article specification will be default setting

Parameters

$idartspec

int

Article specification id

Set article specifications online

setArtspecOnline(int $idartspec, int $online) : void

Flag to switch if an article specification should be shown the frontend or not

Parameters

$idartspec

int

article specification id

$online

int

0/1 switch the status between on an offline

setHelpContext()

setHelpContext($area) 

Parameters

$area

Sets a system property entry

setSystemProperty(string $type, string $name, string $value, int $idsystemprop) 
modified Timo Trautmann 22.02.2008 Support for editing name and type

Parameters

$type

string

The type of the item

$name

string

The name of the item

$value

string

The value of the item

$idsystemprop

int

The sysprop id, use optional. If set it allows to modify type name and value

Adds slashes to passed string if PHP setting for magic quotes is disabled

set_magic_quotes_gpc(string $code) 

Parameters

$code

string

String by reference

showLocation()

showLocation($area) 
deprecated [2011-09-02] This function is not supported any longer

Parameters

$area

showTable()

showTable($tablename) 
deprecated [2011-08-23] This function is not supported any longer

Parameters

$tablename

Starts the timing for a specific function

startTiming(string $function, array $parameters) : int

Parameters

$function

string

Name of the function

$parameters

array

All parameters for the function to measure

Returns

intuuid for this measure process

str_ireplace_once()

str_ireplace_once($find, $replace, $subject) 
deprecated [2012-08-02] Use cString::iReplaceOnce() instead

Parameters

$find

$replace

$subject

str_ireplace_once_reverse()

str_ireplace_once_reverse($find, $replace, $subject) 
deprecated [2012-08-02] Use cString::iReplaceOnceReverse() instead

Parameters

$find

$replace

$subject

str_rpos()

str_rpos($haystack, $needle, $start) 
deprecated [2012-08-02] Use cString::posReverse() instead

Parameters

$haystack

$needle

$start

trim_array()

trim_array($array) 
deprecated [2012-08-02] Use cArray::trim() instead

Parameters

$array

Loads the client information from the database and stores it in config.client.php.

updateClientCache(\number $idclient, string $htmlpath, string $frontendpath) 

Reinitializes the $cfgClient array and fills it wih updated information if provided.

Parameters

$idclient

\number

client id which will be updated

$htmlpath

string

new HTML path. Starting with "http://"

$frontendpath

string

path the to the frontend

Constants

 

$constant

$constant 

Classes and interfaces

cArticleCollector

This class contains functions for the article helper in CONTENIDO.

« More »

cFrontendHelper

This class contains functions for the frontend helper class in CONTENIDO.

« More »

Classes and interfaces

cString

String helper class.

« More »

Classes and interfaces

cMailer

Mailer class which should be used for all mail sending purposes.

« More »

Classes and interfaces

cI18n

Internationalization (i18n) class.

« More »