MagicDocumentHelper
class MagicDocumentHelper
Class MagicDocumentHelper
Methods
No description
Returns the url to the doclink
Returns the document_index
Return the xui element for the document
Get Information about this file
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.
Details
at line 21
__construct($document_index)
No description
at line 178
string
get_doclink_url(bool $with_domain = false)
Returns the url to the doclink
at line 38
DocumentIndex
get_document_index()
Returns the document_index
at line 210
Document
get_document_xui()
Return the xui element for the document
at line 147
array
get_file_info()
Get Information about this file
at line 119
string|null
get_file_link(array $params = [])
Get file link
at line 133
string
get_file_path()
Retrieves the file path for this document, in case any should exist
at line 58
string
get_file_url(mixed $file_path = false, bool $inline_disposition = true, bool $name = false, bool $zipOnTheFly = false, bool $width = false, bool $height = false, bool $resize_mode = false, bool $resize_cache = true, null $cache_hash = null)
Returns the url to download this file
at line 193
string
get_preview_link($args = array())
Returns a link to the document opening the doc viewer
at line 225
string
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