Documentation

Sortable

Table of Contents

Methods

contentDeleteOrder()  : mixed
contentEnableOrder()  : mixed
contentIndex()  : mixed
contentOrder()  : mixed
contentOrderBy()  : mixed
contentReindex()  : mixed
contentRestoreOldCustomNr()  : mixed
delete_all_order()  : mixed
Deletes the complete order. Use it with CAUTION!
getAttachmentNextTo()  : mixed
getContentAggregationNr()  : mixed
getContentNrOf()  : mixed
getContentOldCustomNrCount()  : mixed
item_move_finished()  : mixed
When moving to a folder with content custom order, reindex the folder content.
mla_media_modal_query_final_terms()  : WP_Query
Media Library Assistant extension.
posts_clauses()  : array<string|int, string>
JOIN the order table and orderby the nr.

Methods

contentDeleteOrder()

public contentDeleteOrder() : mixed

contentEnableOrder()

public contentEnableOrder() : mixed

contentIndex()

public contentIndex([mixed $delete = true ]) : mixed
Parameters
$delete : mixed = true

contentOrder()

public contentOrder(mixed $attachmentId, mixed $nextId[, mixed $lastIdInView = false ]) : mixed
Parameters
$attachmentId : mixed
$nextId : mixed
$lastIdInView : mixed = false

contentOrderBy()

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

contentReindex()

public contentReindex() : mixed

contentRestoreOldCustomNr()

public contentRestoreOldCustomNr() : mixed

delete_all_order()

Deletes the complete order. Use it with CAUTION!

public static delete_all_order() : mixed

getAttachmentNextTo()

public getAttachmentNextTo(mixed $attachmentId) : mixed
Parameters
$attachmentId : mixed

getContentAggregationNr()

public getContentAggregationNr([mixed $function = 'MAX' ]) : mixed
Parameters
$function : mixed = 'MAX'

getContentNrOf()

public getContentNrOf(mixed $attachmentId) : mixed
Parameters
$attachmentId : mixed

getContentOldCustomNrCount()

public getContentOldCustomNrCount() : mixed

item_move_finished()

When moving to a folder with content custom order, reindex the folder content.

public static item_move_finished(int $folderId, array<string|int, int> $ids, IFolder $folder, bool $isShortcut) : mixed
Parameters
$folderId : int
$ids : array<string|int, int>
$folder : IFolder
$isShortcut : bool
Tags
hooked

RML/Item/MoveFinished

mla_media_modal_query_final_terms()

Media Library Assistant extension.

public static mla_media_modal_query_final_terms(WP_Query $query) : WP_Query
Parameters
$query : WP_Query
Return values
WP_Query

posts_clauses()

JOIN the order table and orderby the nr.

public static posts_clauses(array<string|int, string> $pieces, WP_Query $query) : array<string|int, string>

It is only affected when $query = new \WP_Query([ 'post_status' => 'inherit', 'post_type' => 'attachment', 'rml_folder' => 4, 'orderby' => 'rml' ));

Parameters
$pieces : array<string|int, string>
$query : WP_Query
Return values
array<string|int, string>

        
On this page

Search results