class TypeList (View source)

Properties

protected Type[] $types
protected stdClass[] $importerAttributes

Methods

static TypeList
getInstance()

No description

define(string $extension, string $name, int $type, string $customImporter = '', string $inlineFileViewer = '', string $editor = '', string $pkgHandle = '')

Register a file type.

defineMultiple(array $types)

Register multiple file types.

defineImporterAttribute($akHandle, $akName, $akType, $akIsEditable)

No description

defineImporterAttributeMultiple(array $importer_attributes)

No description

static stdClass|null
getImporterAttribute(string $akHandle)

No description

static Type
getType($ext)

Can take an extension or a filename Returns any registered information we have for the particular file type, based on its registration.

Details

static TypeList getInstance()

Return Value

TypeList

define(string $extension, string $name, int $type, string $customImporter = '', string $inlineFileViewer = '', string $editor = '', string $pkgHandle = '')

Register a file type.

Parameters

string $extension Comma-separated list of file extensions (lower case and without leading dots)
string $name File type name
int $type Generic file type (one of the \Concrete\Core\File\Type\Type\Type::T_... constants)
string $customImporter The handle of the custom importer
string $inlineFileViewer The handle of the inline viewer
string $editor The hHandle of the editor
string $pkgHandle The handle of the owner package

defineMultiple(array $types)

Register multiple file types.

Parameters

array $types Keys are the type names, values are the other parameters accepted by the define() method

defineImporterAttribute($akHandle, $akName, $akType, $akIsEditable)

Parameters

$akHandle
$akName
$akType
$akIsEditable

defineImporterAttributeMultiple(array $importer_attributes)

Parameters

array $importer_attributes

static stdClass|null getImporterAttribute(string $akHandle)

Parameters

string $akHandle

Return Value

stdClass|null

static Type getType($ext)

Can take an extension or a filename Returns any registered information we have for the particular file type, based on its registration.

Parameters

$ext

Return Value

Type