Abstract content type from which every content type should inherit.
| package | Core |
|---|---|
| subpackage | Content Type |
__construct(string $rawSettings, integer $id, array $contentTypes) : void
stringthe raw settings in an XML structure or as plaintext
integerID of the content type, e.g. 3 if CMS_TEASER[3] is used
arrayarray containing the values of all content types
buildDirectoryList(string $uploadPath) : array
stringpath to upload directory (optional, default: root upload path of client)
arraywith directory information (keys: name, path, sub)generateDirectoryList(array $dirs) : string
arraydirectory information
stringHTML code showing a directory listgenerateEditCode() : string
stringescaped HTML code which should be shown if content type is
editedgenerateViewCode() : string
stringescaped HTML code which sould be shown if content type is
shown in frontend_encodeForOutput(string $code) : string
stringcode to encode
stringencoded code_isActiveDirectory(array $dirData) : boolean
Overwrite in subclasses if you use generateDirectoryList!
arraydirectory information
booleanwhether the directory is the currently active directory_isSubdirectory(string $subDir, string $dir) : boolean
stringthe potential subdirectory
stringthe parent directory
booleanwhether the given $subDir is a subdirectory of $dir_readSettings() : void
_shouldDirectoryBeExpanded(array $dirData) : boolean
Overwrite in subclasses if you use getDirectoryList!
arraydirectory information
booleanwhether the directory should be shown expanded_storeSettings() : void
$_cfg : array
$_cfgClient : array
$_client : integer
$_contentTypes : array
$_formFields : array
$_id : integer
3 if CMS_TEASER[3] is used.
$_idArt : integer
$_idArtLang : integer
$_idCat : integer
$_lang : integer
$_prefix : string
'teaser'.
$_rawSettings : string
$_session : \Contenido_Session
$_settings : array
$_settingsType : string
$_type : string
'CMS_TEASER'.
$_uploadPath : string
$_useXHTML : boolean
SETTINGS_TYPE_PLAINTEXT
SETTINGS_TYPE_XML