|
static | sanitizeContent (string $content, ?string $oldContent=null, bool &$replaced=false) |
|
static | getFileInfo (int $objectId, bool $checkRights=true, bool $copyInLocalStorage=false) |
|
См. определение в файле disk.php строка 4
◆ getFileInfo()
static getFileInfo |
( |
int | $objectId, |
|
|
bool | $checkRights = true, |
|
|
bool | $copyInLocalStorage = false ) |
|
static |
Returns file's info by Disk's file id.
- Аргументы
-
int | $objectId | Disk's object if (file id). |
bool | $checkRights | True for checking permissions within Disk. |
bool | $copyInLocalStorage | If file in external folder then copies file in local user storage. |
- Возвращает
- array|null
См. определение в файле disk.php строка 72
◆ sanitizeContent()
static sanitizeContent |
( |
string | $content, |
|
|
?string | $oldContent = null, |
|
|
bool & | $replaced = false ) |
|
static |
Check disk's files within content for read access. If not, remove file's marks.
- Аргументы
-
string | $content | Content. |
string | null | $oldContent | Old content (if exists, found old files will not be replaced). |
bool | &$replaced | True if was replaced. |
- Возвращает
- string
См. определение в файле disk.php строка 17
◆ FILE_MASK_HREF
const FILE_MASK_HREF = '(file:)?#diskFile([\d]+)' |
◆ FILE_PREFIX_HREF
const FILE_PREFIX_HREF = '#diskFile' |