MagicDocumentHelper
class MagicDocumentHelper implements ItemInterface
Class MagicDocumentHelper
Traits
Constants
| TYPE_IMAGE |
|
| TYPE_VIDEO |
|
| TYPE_FILE |
|
| TYPE_MISC |
|
Methods
No description
No description
Information which is relevant for a attachment document and can be transmitted to frontend without security implications
No description
What is the nature/type of this document
Make this object easier to use in API
Returns the document_index
Return the xui element for the document
Get file link
Retrieves the file path for this document, in case any should exist
Returns the url to download this file
Returns a link to the document opening the doc viewer
Returns the webdav url that can be used to directly open the document belonging to this file.
No description
No description
Transforms the array structure of this option into a JSON string.
No description
Details
at line 332
string
__toString()
No description
at line 36
static MagicDocumentHelper
create(DocumentIndex $documentIndex)
No description
at line 48
enableExtendedAttachmentInfo($enabled = true)
No description
at line 278
array
getAttachmentInfo(bool $extendedInfo = false, bool $fullInfo = false)
Information which is relevant for a attachment document and can be transmitted to frontend without security implications
at line 199
string|null
getFileExtension()
No description
at line 224
string
getType()
What is the nature/type of this document
at line 341
static ParameterObject
getWebserviceParameterObject()
Make this object easier to use in API
at line 159
string
get_doclink_url(bool $with_domain = false)
deprecated
deprecated
Returns the url to the doclink
at line 44
DocumentIndex
get_document_index()
Returns the document_index
at line 191
Document|null
get_document_xui()
Return the xui element for the document
at line 130
string|null
get_file_link(array $params = [])
Get file link
at line 144
string|null
get_file_path()
Retrieves the file path for this document, in case any should exist
at line 69
string
get_file_url(string $relativePathToFile = null, bool $inline_disposition = true, string $name = null, bool $zipOnTheFly = false, int $width = null, int $height = null, string $resize_mode = null, bool $resize_cache = true, string $cache_hash = null, string $absolutePathToFile = null)
Returns the url to download this file
at line 174
string
get_preview_link($args = array())
Returns a link to the document opening the doc viewer
at line 247
string|null
get_webdav_url()
Returns the webdav url that can be used to directly open the document belonging to this file.
The webdav path will return false if the document does not implement XELOS\Modules\SystemDMS\Interfaces\FullyIntegratedInterface and thus has no file path to return an actual file. Please note, that editing is only available for native dms documents
at line 209
bool|null
isImage()
No description
at line 204
bool|null
isVideo()
No description
in
ItemTrait at line 13
array
jsonSerialize()
Transforms the array structure of this option into a JSON string.
at line 327
array
toArray(bool $extendedInfo = null)
No description