Class cContentTypeFilelist
Content type CMS_FILELIST which lets the editor select some folders or files. The corresponding files are then shown in the frontend.
- cContentTypeAbstract
- cContentTypeAbstractTabbed
- cContentTypeFilelist
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Dominik Ziegler
Author: Timo Trautmann
Author: Simon Sprankel
Located at classes/content_types/class.content.type.filelist.php
public
|
#
__construct( string $rawSettings, integer $id, array $contentTypes )
Constructor to create an instance of this class. |
public static
array
|
|
protected
|
#
_readSettings( )
Reads all settings from the $_rawSettings attribute (XML or plaintext) and stores them in the $_settings attribute (associative array or plaintext). |
public
string
|
#
generateViewCode( )
Generates the code which should be shown if this content type is shown in the frontend. |
public
array
|
|
public
string
|
#
generateFileListCode( )
Function is called in edit- and viewmode in order to generate code for output. |
private
array
|
#
_getAllSubdirectories( string $directoryPath, array $directories )
Gets all subdirectories recursively. |
private
array
|
|
private
boolean
|
|
private
|
#
_fillFileListTemplateEntry( array $fileData,
Method to fill single entry (file) of the file list. |
public
string
|
|
private
string
|
|
private
string
|
|
private
string
|
|
private
string
|
|
private
string
|
|
private
string
|
|
private
string
|
|
private
string
|
|
protected
boolean
|
#
_isActiveDirectory( array $dirData )
Checks whether the directory defined by the given directory information is the currently active directory. |
protected
boolean
|
#
_shouldDirectoryBeExpanded( array $dirData )
Checks whether the directory defined by the given directory information should be shown expanded. |
private
string
|
|
private
string
|
#
_generateExistingFileSelect( )
Generate a select box containing the already existing files in the manual tab. |
public
string
|
#
generateFileSelect( string $directoryPath = '' )
Generate a select box containing all files for the manual tab. |
public
string
|
#
generateAjaxDirectoryList( array $dirs )
Generates a directory list from the given directory information (which is
typically built by |
_generateActionCode(),
_generateTabMenuCode(),
_getRawSettings()
|
SETTINGS_TYPE_PLAINTEXT,
SETTINGS_TYPE_XML
|
private
array
|
$_fileExtensions | array(
'gif',
'jpeg',
'jpg',
'png',
'doc',
'xls',
'pdf',
'txt',
'zip',
'ppt'
) |
#
Default file extensions. |
private
array
|
$_metaDataIdents | array(
'description' => 'Description',
'medianame' => 'Media name',
'copyright' => 'Copyright',
'keywords' => 'Keywords',
'internal_notice' => 'Internal notes'
) |
#
Meta data identifiers. |
private
array
|
$_dateFields | array(
'ctime' => 'creationdate',
'mtime' => 'modifydate'
) |
#
Date fields. |
protected static
array
|
$_translations | array(
"LABEL_FILESIZE",
"LABEL_UPLOAD_DATE"
) |
#
Placeholders for labels in frontend. Important: This must be a static array! |
$_cfg,
$_cfgClient,
$_client,
$_contentTypes,
$_formFields,
$_id,
$_idArt,
$_idArtLang,
$_idCat,
$_lang,
$_prefix,
$_rawSettings,
$_session,
$_settings,
$_settingsType,
$_type,
$_uploadPath,
$_useXHTML
|