Methods

contentDeleteOrder()

contentDeleteOrder()

contentRestoreOldCustomNr()

contentRestoreOldCustomNr()

contentOrder()

contentOrder(  $attachmentId,  $nextId,  $lastIdInView = false)

Parameters

$attachmentId
$nextId
$lastIdInView

contentOrderBy()

contentOrderBy(  $orderby,  $writeMetadata = true)

Parameters

$orderby
$writeMetadata

contentIndex()

contentIndex(  $delete = true)

Parameters

$delete

contentReindex()

contentReindex()

contentEnableOrder()

contentEnableOrder()

getAttachmentNextTo()

getAttachmentNextTo(  $attachmentId)

Parameters

$attachmentId

getContentAggregationNr()

getContentAggregationNr(  $function = 'MAX')

Parameters

$function

getContentNrOf()

getContentNrOf(  $attachmentId)

Parameters

$attachmentId

getContentOldCustomNrCount()

getContentOldCustomNrCount()

item_move_finished()

item_move_finished(integer  $folderId,array<mixed,integer>  $ids,\MatthiasWeb\RealMediaLibrary\api\IFolder  $folder,boolean  $isShortcut)

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

Parameters

integer $folderId
array<mixed,integer> $ids
\MatthiasWeb\RealMediaLibrary\api\IFolder $folder
boolean $isShortcut

posts_clauses()

posts_clauses(array<mixed,string>  $pieces,\WP_Query  $query): array<mixed,string>

JOIN the order table and orderby the nr.

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

Parameters

array<mixed,string> $pieces
\WP_Query $query

Returns

array<mixed,string>

mla_media_modal_query_final_terms()

mla_media_modal_query_final_terms(\WP_Query  $query): \WP_Query

Media Library Assistant extension.

Parameters

\WP_Query $query

Returns

\WP_Query

delete_all_order()

delete_all_order()

Deletes the complete order. Use it with CAUTION!