Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • PHP
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SIWECOS
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cCodeGeneratorAbstract
  • cCodeGeneratorFactory
  • cCodeGeneratorStandard
  • cContentTypeAbstract
  • cContentTypeAbstractTabbed
  • cContentTypeDate
  • cContentTypeFilelist
  • cContentTypeHead
  • cContentTypeHtml
  • cContentTypeHtmlhead
  • cContentTypeImg
  • cContentTypeImgdescr
  • cContentTypeImgeditor
  • cContentTypeLink
  • cContentTypeLinkdescr
  • cContentTypeLinkeditor
  • cContentTypeLinktarget
  • cContentTypeRaw
  • cContentTypeTeaser
  • cContentTypeText
  • cTypeGenerator
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cCodeGeneratorStandard

CONTENIDO standard code generator.

cCodeGeneratorAbstract
Extended by cCodeGeneratorStandard
Package: Core\ContentType
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Murat Purc <murat@purc.de>
Located at classes/code_generator/class.code.generator.standard.php
Methods summary
public string
# _generate( boolean $contype = true, boolean $editable = true, integer|null $version = NULL )

Generates the code for a specific article (article for a client in a language).

Generates the code for a specific article (article for a client in a language).

Parameters

$contype
boolean
$contype [optional] Flag to enable/disable replacement of CMS_TAGS[]
$editable
boolean
$editable [optional]
$version
integer|null
$version [optional]

Returns

string
The generated code

Throws

cDbException
cException
cInvalidArgumentException

See

cCodeGeneratorAbstract::_generate()
protected
# _processNoConfigurationError( integer $idcatart )

Will be invoked, if code generation wasn't able to find a configured article or category.

Will be invoked, if code generation wasn't able to find a configured article or category.

Creates a error message and writes this into the code cache.

Parameters

$idcatart
integer
$idcatart category article id

Throws

cDbException
cInvalidArgumentException
protected string
# _processCodeTitleTag( )

Processes and adds or replaces title tag for an article. Also calls the CEC 'Contenido.Content.CreateTitletag' for user defined title creation if none is given.

Processes and adds or replaces title tag for an article. Also calls the CEC 'Contenido.Content.CreateTitletag' for user defined title creation if none is given.

Returns

string

See

cCodeGeneratorAbstract::_processCodeTitleTag()
protected string
# _processCodeMetaTags( )

Processes and adds or replaces all meta tags for an article. Also calls the CEC 'Contenido.Content.CreateMetatags' for user defined meta tags creation.

Processes and adds or replaces all meta tags for an article. Also calls the CEC 'Contenido.Content.CreateMetatags' for user defined meta tags creation.

Returns

string
protected
# _saveGeneratedCode( integer $idcatart, string $code = '', boolean $flagCreateCode = true )

Saves the generated code if layout flag is false and save flag is true.

Saves the generated code if layout flag is false and save flag is true.

Parameters

$idcatart
integer
$idcatart Category article id
$code
string
$code [optional] parameter for setting code manually instead of using the generated layout code
$flagCreateCode
boolean
$flagCreateCode [optional] whether the create code flag in cat_art should be set or not (optional)

Throws

cDbException
cInvalidArgumentException
protected array
# _getBasicMetaTags( )

Collects and return basic meta tags/elements.

Collects and return basic meta tags/elements.

Returns

array
List of assozative meta tag values
protected array
# _updateMetaRobots( array $metaTags, boolean|null $index, boolean|null $follow )

This method allows to set new values for the robots meta element. If NULL is given for $index or $follow, existing settings are not overwritten. If article should be indexed and followed, 'all' will be set.

This method allows to set new values for the robots meta element. If NULL is given for $index or $follow, existing settings are not overwritten. If article should be indexed and followed, 'all' will be set.

Parameters

$metaTags
array
$metaTags array of meta elements to amend
$index
boolean|null
$index if article should be indexed
$follow
boolean|null
$follow if links in article should be followed

Returns

array
protected array
# _extractMetaElement( array $metaTags, string $type, string $nameOrEquiv )

Extracts a meta element of type $type (either 'name' or 'http-equiv') and name or HTTP header equivalent $nameOrEquiv from the given array of meta elements. Both, the reduced array of meta elements and the meta element to be extracted are returned as an array. If the meta element to be extracted could not be found, NULL will be returned in its place.

Extracts a meta element of type $type (either 'name' or 'http-equiv') and name or HTTP header equivalent $nameOrEquiv from the given array of meta elements. Both, the reduced array of meta elements and the meta element to be extracted are returned as an array. If the meta element to be extracted could not be found, NULL will be returned in its place.

Parameters

$metaTags
array
$metaTags
$type
string
$type either 'name' or 'http-equiv'
$nameOrEquiv
string
$nameOrEquiv

Returns

array
Methods inherited from cCodeGeneratorAbstract
__construct(), _getContentTypeClassName(), _getContentTypeCodeFilePathName(), _getTemplateConfigurationId(), _getTemplateData(), _getUsedCmsTypesData(), _processCmsContainer(), _processCmsTags(), _processCmsValueTags(), _processFrontendDebug(), _resetModule(), generate(), getArtLangObject(), setFrontendDebugOptions()
Properties summary
protected integer $_idtplcfg
#
Properties inherited from cCodeGeneratorAbstract
$_client, $_cssData, $_db, $_feDebugOptions, $_idart, $_idartlang, $_idcat, $_jsData, $_lang, $_layout, $_layoutCode, $_moduleCode, $_modulePrefix, $_moduleSuffix, $_oArtLang, $_pageTitle, $_save, $_tplName
CMS CONTENIDO 4.10.1 API documentation generated by ApiGen 2.8.0