contenido\includes\functions.con2.php
Project:
Contenido Content Management System
Description: Contenido Content Functions
Requirements:
- Author
- Timo A. Hummel
- Con_notice
- Please add only stuff which is relevant for the frontend AND the backend. This file should NOT contain any backend editing functions to improve frontend performance:
- Con_php_req
- 5.0
- Copyright
- four for business AG
- License
- http://www.contenido.org/license/LIZENZ.txt
- Link
- http://www.4fb.de
- Link
- http://www.contenido.org
- Package
- Contenido Backend includes
- Since
- file available since contenido release <= 4.6 {@internal created 2003-12-15 modified 2008-06-25, Timo Trautmann, user meta tags and system meta tags were merged, not replaced modified 2008-06-25, Frederic Schneider, add security fix modified 2008-08-29, Murat Purc, add new chain execution modified 2009-03-27, Andreas Lindner, Add title tag generation via chain modified 2009-10-29, Murat Purc, removed deprecated functions (PHP 5.3 ready) modified 2009-12-18, Murat Purc, fixed meta tag generation, see [#CON-272] modified 2009-10-27, Murat Purc, fixed/modified CEC_Hook, see [#CON-256] modified 2010-12-09, Dominik Ziegler, fixed multiple replacements of title tags [#CON-373] $Id: functions.con2.php 1243 2010-12-09 11:21:26Z dominik.ziegler $: }}
- Version
- 1.3.7
Functions
conGenerateCode(int $idcat, int $idart, int $lang, int $client, int $layout = false) : voidGenerates the code for one article
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $idcat | int | Id of category |
| $idart | int | Id of article |
| $lang | int | Id of language |
| $client | int | Id of client |
| $layout | int | Layout-ID of alternate Layout (if false, use associated layout) |
- Author
- Jan Lengowski
- Copyright
- four for business AG
conGenerateKeywords( $client, $lang) : void(re)generate keywords for all articles of a given client (with specified language)
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $client | Client | |
| $lang | Language of a client |
- Author
- Willi Man Created : 12.05.2004 Modified : 13.05.2004
- Copyright
- four for business AG 2003
conGetAvailableMetaTagTypes() : voidReturns all available meta tag types
Details
- Author
- Timo A. Hummel
- Copyright
- four for business AG 2003
conGetContentFromArticle( $article_lang) : arrayget content from article
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $article_lang | ArticleLanguageId of an article (idartlang) |
| Type | Description |
|---|---|
| array | Array with content of an article indexed by content-types |
- Author
- Willi Man Created : 12.05.2004 Modified : 13.05.2004
- Copyright
- four for business AG 2003
conGetMetaValue( $idartlang, $idmetatype) : voidGet the meta tag value for a specific article
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $idartlang | ID of the article | |
| $idmetatype | Metatype-ID |
- Author
- Timo A. Hummel
- Copyright
- four for business AG 2003
conSetMetaValue( $idartlang, $idmetatype, $value) : voidSet the meta tag value for a specific article
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $idartlang | ID of the article | |
| $idmetatype | Metatype-ID | |
| $value | Value of the meta tag |
- Author
- Timo A. Hummel
- Copyright
- four for business AG 2003
getArtLang( $idart, $idlang) : mixedReturns the idartlang for a given article and language
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $idart | ID of the article | |
| $idlang | ID of the language |
| Type | Description |
|---|---|
| mixed | idartlang of the article or false if nothing was found |
- Author
- Timo A. Hummel
- Copyright
- four for business AG 2003