Abstract content type from which every content type should inherit.
package | Core |
---|---|
subpackage | Content Type |
__construct(string $rawSettings, integer $id, array $contentTypes) : void
string
the raw settings in an XML structure or as plaintext
integer
ID of the content type, e.g. 3 if CMS_TEASER[3] is used
array
array containing the values of all content types
buildDirectoryList(string $uploadPath) : array
string
path to upload directory (optional, default: root upload path of client)
array
with directory information (keys: name, path, sub)generateDirectoryList(array $dirs) : string
array
directory information
string
HTML code showing a directory listgenerateEditCode() : string
string
escaped HTML code which should be shown if content type is
editedgenerateViewCode() : string
string
escaped HTML code which sould be shown if content type is
shown in frontend_encodeForOutput(string $code) : string
string
code to encode
string
encoded code_isActiveDirectory(array $dirData) : boolean
Overwrite in subclasses if you use generateDirectoryList!
array
directory information
boolean
whether the directory is the currently active directory_isSubdirectory(string $subDir, string $dir) : boolean
string
the potential subdirectory
string
the parent directory
boolean
whether the given $subDir is a subdirectory of $dir_readSettings() : void
_shouldDirectoryBeExpanded(array $dirData) : boolean
Overwrite in subclasses if you use getDirectoryList!
array
directory information
boolean
whether 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