Class BaseFolder
Abstract base class for folders. It handles the available fields and getters / setters. The class is completely documentated in the implemented interface.
- MatthiasWeb\RealMediaLibrary\base\Base
-
MatthiasWeb\RealMediaLibrary\folder\BaseFolder implements MatthiasWeb\RealMediaLibrary\api\IFolder
Direct known subclasses
Indirect known subclasses
MatthiasWeb\RealMediaLibrary\folder\Collection
,
MatthiasWeb\RealMediaLibrary\folder\Folder
,
MatthiasWeb\RealMediaLibrary\folder\Gallery
,
MatthiasWeb\RealMediaLibrary\folder\Root
,
MatthiasWeb\RealMediaLibrary\order\Sortable
Methods summary
public
|
#
anyParentHas( string $column, mixed $value = null, string $valueFormat = "%s", boolean $includeSelf = false, integer $until = null )
Get all parents which meets a given column value or column value is not empty. |
public
|
#
anyParentHasMetadata( string $meta_key, mixed $meta_value = null, string $valueFormat = "%s", boolean $includeSelf = false, integer $until = null )
Get all parents which meets a given meta key value or meta key value is not empty. |
public
|
#
anyChildrenHas( string $column, mixed $value = null, string $valueFormat = "%s", boolean $includeSelf = false )
Get all children which meets a given column value or column value is not empty. |
public
|
#
anyChildrenHasMetadata( string $meta_key, mixed $meta_value = null, string $valueFormat = "%s", boolean $includeSelf = false )
Get all chilren which meets a given meta key value or meta key value is not empty. |
public
|
#
hasChildren( string $name, boolean $returnObject = false )
Checks if this folder has a children with a given name. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
getAbsolutePath( boolean $force = false, $fromSetName = false )
Creates a absolute path. If the absolute path is empty or forced to, it will be updated in the database, too. |
public
|
|
public
IFolder[]
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
setRestrictions( string[] $restrictions = array() )
Set restrictions for this folder. Allowed restrictions for folders: |
public
|
|
public
|
|
public
|
Methods inherited from MatthiasWeb\RealMediaLibrary\base\Base
Methods inherited from MatthiasWeb\RealMediaLibrary\api\IFolder
getAllowedChildrenTypes()
,
getMaxOrder()
,
getRowData()
,
getType()
,
getTypeDescription()
,
getTypeName()
Methods inherited from MatthiasWeb\RealMediaLibrary\api\IFolderContent
contentDeleteOrder()
,
contentEnableOrder()
,
contentIndex()
,
contentOrder()
,
contentReindex()
,
contentRestoreOldCustomNr()
,
getAttachmentNextTo()
,
getContentAggregationNr()
,
getContentCustomOrder()
,
getContentNrOf()
,
getContentOldCustomNrCount()
,
getContentOrderNumbers()
,
isContentCustomOrderAllowed()
Methods inherited from MatthiasWeb\RealMediaLibrary\api\IFolderActions
insert()
,
read()
,
reindexChildrens()
,
relocate()
,
setName()
,
setParent()
,
updateThisAndChildrensAbsolutePath()
Properties summary
protected
|
$id
|
|
protected
|
$parent
|
|
protected
|
$name
|
|
protected
|
$cnt
|
|
protected
|
$order
|
|
protected
|
$slug
|
|
protected
|
$absolutePath
|
|
protected
|
$row
|
|
protected
|
$children
|
|
protected
array
|
$restrictions
|
#
array()
|
protected
integer
|
$restrictionsCount
|
#
0
|
protected
array
|
$systemReservedFolders
|
#
array("/", "..", ".")
|
protected
|
$contentCustomOrder
|
|
public
array
|
$orderNumbers
|
#
array()
|