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