Type
class Type (View source)
Constants
T_IMAGE |
Image file type. |
T_VIDEO |
Video file type. |
T_TEXT |
Text file type. |
T_AUDIO |
Audio file type. |
T_DOCUMENT |
Document file type. |
T_APPLICATION |
Application file type. |
T_UNKNOWN |
Other/unknown file type. |
Properties
string deprecated | $pkgHandle | Handle of the owner package (empty string if not available). |
|
int deprecated | $type | Generic category type (one of the \Concrete\Core\File\Type\Type::T_... constants). |
|
string deprecated | $name | Name (empty string if generic type). |
|
string deprecated | $extension | Single file extension. |
|
string deprecated | $customImporter | Handle of the custom importer (empty string if not available). |
|
string deprecated | $editor | Handle of the editor (empty string if not available). |
|
string deprecated | $view | Handle of the inline viewer (empty string if not available). |
Methods
Get the handle of the owner package (empty string if not available).
Set the handle of the owner package (empty string if not available).
Get the generic category type (one of the \Concrete\Core\File\Type\Type::T_... constants).
Set the generic category type (one of the \Concrete\Core\File\Type\Type::T_... constants).
Get the name of the generic category type.
Get the name (empty string if generic type).
Get the display name (localized).
Get the single file extension.
Set the single file extension.
Get the handle of the custom importer (empty string if not available).
Set the handle of the custom importer (empty string if not available).
Get the handle of the editor (empty string if not available).
Get the handle of the inline viewer (empty string if not available).
Get the inspector for this file type (if available).
Get the list of all the file extensions used by approved file versions.
Get the list of all the file types used by approved file versions.
Get the list of all the available type IDs.
Returns a thumbnail for this type of file.
Does the file type support thumbnails.
Is the file type an SVG.
Get the name of a generic file type.
Details
string
getPackageHandle()
Get the handle of the owner package (empty string if not available).
Type
setPackageHandle(string $value)
Set the handle of the owner package (empty string if not available).
int
getGenericType()
Get the generic category type (one of the \Concrete\Core\File\Type\Type::T_... constants).
Type
setGenericType(int $value)
Set the generic category type (one of the \Concrete\Core\File\Type\Type::T_... constants).
string
getGenericDisplayType()
Get the name of the generic category type.
string
getName()
Get the name (empty string if generic type).
Type
setName($value)
Set the name (empty string if generic type).
string
getDisplayName()
Get the display name (localized).
string
getExtension()
Get the single file extension.
Type
setExtension(string $value)
Set the single file extension.
string
getCustomImporter()
Get the handle of the custom importer (empty string if not available).
Type
setCustomImporter(string $value)
Set the handle of the custom importer (empty string if not available).
string
getEditor()
Get the handle of the editor (empty string if not available).
Type
setEditor(string $value)
Set the handle of the editor (empty string if not available).
string
getView()
Get the handle of the inline viewer (empty string if not available).
Type
setView(string $value)
Set the handle of the inline viewer (empty string if not available).
Inspector|null
getCustomInspector()
Get the inspector for this file type (if available).
static string[]
getUsedExtensionList()
Get the list of all the file extensions used by approved file versions.
static int[]
getUsedTypeList()
Get the list of all the file types used by approved file versions.
static int[]
getTypeList()
Get the list of all the available type IDs.
string
getThumbnail(bool $fullImageTag = true)
Returns a thumbnail for this type of file.
bool|null
supportsThumbnails()
Does the file type support thumbnails.
bool|null
isSVG()
Is the file type an SVG.
static string|null
getGenericTypeText(int $type)
Get the name of a generic file type.