Class cContentTypeAbstract
Abstract content type from which every content type should inherit.
Direct known subclasses
cContentTypeAbstractTabbed, cContentTypeDate, cContentTypeHtml, cContentTypeRaw, cContentTypeTextIndirect known subclasses
cContentTypeFilelist, cContentTypeHead, cContentTypePifaForm, cContentTypeTeaser, cContentTypeUserForum, cContentTypeHtmlhead, cContentTypeImg, cContentTypeImgdescr, cContentTypeImgeditor, cContentTypeLink, cContentTypeLinkdescr, cContentTypeLinkeditor, cContentTypeLinktargetPackage: Core\ContentType
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Simon Sprankel
Located at classes/content_types/class.content.type.abstract.php
public
|
#
__construct( string $rawSettings, integer $id, array $contentTypes )
Initialises class attributes with values from cRegistry. |
protected
|
#
_readSettings( )
Reads all settings from the $_rawSettings attribute (XML or plaintext) and stores them in the $_settings attribute (associative array or plaintext). |
public
array
|
|
protected
|
#
_storeSettings( )
Stores all values from the $_POST array in the $_settings attribute (associative array) and saves them in the database (XML). |
protected
string
|
#
_encodeForOutput( string $code )
Since the content type code is evaled by php, the code has to be encoded. |
public
array
|
#
buildDirectoryList( string $uploadPath = '' )
Builds an array with directory information from the given upload path. |
public
string
|
#
generateDirectoryList( array $dirs )
Generates a directory list from the given directory information (which is typically built by cContentTypeAbstract::buildDirectoryList). |
protected
boolean
|
#
_isActiveDirectory( array $dirData )
Checks whether the directory defined by the given directory information is the currently active directory. Overwrite in subclasses if you use generateDirectoryList! |
protected
boolean
|
#
_shouldDirectoryBeExpanded( array $dirData )
Checks whether the directory defined by the given directory information should be shown expanded. Overwrite in subclasses if you use getDirectoryList! |
protected
boolean
|
#
_isSubdirectory( string $subDir, string $dir )
Checks whether the given $subDir is a subdirectory of the given $dir. |
abstract public
string
|
#
generateViewCode( )
Generates the code which should be shown if this content type is shown in the frontend. |
abstract public
string
|
|
public
boolean
|
string |
SETTINGS_TYPE_PLAINTEXT
Constant defining that the settings should be interpreted as plaintext. |
#
'plaintext'
|
string |
SETTINGS_TYPE_XML
Constant defining that the settings should be interpreted as XML. |
#
'xml'
|
protected
string
|
$_type
Name of the content type, e.g. 'CMS_TEASER'. |
#
''
|
protected
string
|
$_prefix
Prefix of the content type, e.g. 'teaser'. |
#
'abstract'
|
protected
string
|
$_settingsType
Whether the settings should be interpreted as plaintext or XML. |
|
protected
integer
|
$_id
ID of the content type, e.g. 3 if CMS_TEASER[3] is used. |
|
protected
array
|
$_contentTypes
Array containing the values of all content types. |
|
protected
array
|
$_cfg
CONTENIDO configuration array |
|
protected
integer
|
$_idArtLang
idartlang of corresponding article |
|
protected
integer
|
$_idArt
idart of corresponding article |
|
protected
integer
|
$_idCat
idcat of corresponding article |
|
protected
integer
|
$_client
CONTENIDO client id |
|
protected
integer
|
$_lang
CONTENIDO language id |
|
protected
|
$_session
CONTENIDO session object |
|
protected
array
|
$_cfgClient
CONTENIDO configuration array for currently active client |
|
protected
boolean
|
$_useXHTML
Whether to generate XHTML |
|
protected
string
|
$_uploadPath
The path to the upload directory. |
|
protected
string
|
$_rawSettings
The raw settings from the DB. |
#
array()
|
protected
array
|
$_settings
The parsed settings. |
#
array()
|
protected
array
|
$_formFields
List of form field names which are used by this content type! |
#
array()
|