\Charcoal\CmsDocumentInterface

Summary

Methods
Constants
setName()
name()
setFile()
file()
path()
url()
mimetype()
filename()
filesize()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setName()

setName(mixed  $name) : self

Parameters

mixed $name

The document name (localized).

Returns

self

name()

name() : \Charcoal\Translator\Translation|string|null

Returns

\Charcoal\Translator\Translation|string|null

setFile()

setFile(string  $file) : self

Parameters

string $file

The file relative path / url (localized).

Returns

self

file()

file() : string

Returns

string

path()

path() : string

Returns

string

url()

url() : string

Returns

string

mimetype()

mimetype() : string

Returns

string

filename()

filename() : string

Get the filename (basename; without any path segment).

Returns

string

filesize()

filesize() : integer

Get the document's file size, in bytes.

Returns

integer