Documentation

Creatable

Table of Contents

Methods

deleted_realmedialibrary_meta()  : mixed
Delete the subOrderAutomatically metadata when deleting the subfolder order and also reset the subfolder order. It also handles the content order.
isValidChildrenType()  : mixed
orderSubfolders()  : mixed
persistCheckParent()  : mixed
reindexChildrens()  : mixed
relocate()  : mixed
resetSubfolderOrder()  : mixed
setParent()  : mixed
applySubfolderOrderBy()  : bool
Check if the current folders parent is automatically ordered by a criteria so the order can be applied. This should be called when the hierarchy of the folder is changed or when a new folder is added to that parent.

Methods

deleted_realmedialibrary_meta()

Delete the subOrderAutomatically metadata when deleting the subfolder order and also reset the subfolder order. It also handles the content order.

public static deleted_realmedialibrary_meta(array<string|int, int> $meta_ids, int $object_id, string $meta_key) : mixed
Parameters
$meta_ids : array<string|int, int>
$object_id : int
$meta_key : string

isValidChildrenType()

public isValidChildrenType(mixed $type) : mixed
Parameters
$type : mixed

orderSubfolders()

public orderSubfolders(mixed $orderby[, mixed $writeMetadata = true ]) : mixed
Parameters
$orderby : mixed
$writeMetadata : mixed = true

persistCheckParent()

public persistCheckParent() : mixed

reindexChildrens()

public reindexChildrens([mixed $resetData = false ]) : mixed
Parameters
$resetData : mixed = false

relocate()

public relocate(mixed $parentId[, mixed $nextFolderId = false ]) : mixed
Parameters
$parentId : mixed
$nextFolderId : mixed = false

resetSubfolderOrder()

public resetSubfolderOrder() : mixed

setParent()

public setParent(mixed $id[, mixed $ord = -1 ][, mixed $force = false ]) : mixed
Parameters
$id : mixed
$ord : mixed = -1
$force : mixed = false

applySubfolderOrderBy()

Check if the current folders parent is automatically ordered by a criteria so the order can be applied. This should be called when the hierarchy of the folder is changed or when a new folder is added to that parent.

protected applySubfolderOrderBy() : bool
Return values
bool

        
On this page

Search results