Interface IFolderContent
This interface provides elementary action methods for folder content. All folder types (Folder, Collection, Gallery, ...) have implemented this interface. Also the root ("Unorganized") is a folder and implements this interface.
Direct known implementers
Indirect known implementers
MatthiasWeb\RealMediaLibrary\folder\BaseFolder
,
MatthiasWeb\RealMediaLibrary\folder\Collection
,
MatthiasWeb\RealMediaLibrary\folder\Creatable
,
MatthiasWeb\RealMediaLibrary\folder\Folder
,
MatthiasWeb\RealMediaLibrary\folder\Gallery
,
MatthiasWeb\RealMediaLibrary\folder\Root
,
MatthiasWeb\RealMediaLibrary\order\Sortable
Since: 3.3.1
Located at api/IFolderContent.interface.php
Methods summary
public
true
|
#
contentOrder( $attachmentId, $nextId, $lastIdInView = false )
See API function for more information. |
public
|
|
public
|
#
contentReindex( )
This function retrieves the order of the order table and removes empty spaces, for example: 0 1 5 7 8 9 10 => 0 1 2 3 4 5 6 |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
getContentCustomOrder( )
The content custom order defines the state of the content order functionality: |
public
|
#
getAttachmentNextTo( integer $attachmentId )
Get the next attachment id for a specific attachment. It returns false if the attachment is at the end or the folder has no custom content order. |
public
|
#
getContentOrderNumbers( boolean $fromCache = true, boolean $indexMode = true )
Get the whole order table. |
public
|
|
public
integer|boolean
|
#
getContentNrOf( integer $attachmentId )
Get the order number for a specific attachment in this folder. |
public
|
#
getContentOldCustomNrCount( )
Get the old custom order number count so we can decide if already available. |