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 )
Constructor to create an instance of this class. |
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|string
|
|
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 |
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. |
public
string
|
#
__toString( )
This functions able to use a content type object directly for output See also CON-2587 |
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
|
'plaintext' |
#
Constant defining that the settings should be interpreted as plaintext. |
string |
SETTINGS_TYPE_XML
|
'xml' |
#
Constant defining that the settings should be interpreted as XML. |
protected
string
|
$_type | '' |
#
Name of the content type, e.g. 'CMS_TEASER'. |
protected
string
|
$_prefix | 'abstract' |
#
Prefix of the content type, e.g. 'teaser'. |
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 | array() |
#
The raw settings from the DB. |
protected
array|string
|
$_settings | array() |
#
The parsed settings. |
protected
array
|
$_formFields | array() |
#
List of form field names which are used by this content type! |