Class Structure
This class handles all hooks and functions for the structur.
If something will print out, this is a fasade-wrapper function
for the class general\View (stored in private $view).
-
MatthiasWeb\RealMediaLibrary\base\Base
-
MatthiasWeb\RealMediaLibrary\attachment\Structure
implements
MatthiasWeb\RealMediaLibrary\api\IStructure
Methods summary
public
|
#
__construct( integer $root = null, array $data = null )
Start reading a structure. If you pass a $root parameter the parameter is not
automatically respected. You should then use your own implementation or filters
to respect the root. Use this constructor to add your filters and respect your
custom Structure class implementation.
Start reading a structure. If you pass a $root parameter the parameter is not
automatically respected. You should then use your own implementation or filters
to respect the root. Use this constructor to add your filters and respect your
custom Structure class implementation.
Parameters
- $root
- The root folder defined for the structure
- $data
- Custom data for the structure
Implementation of
|
public
|
#
initialLoad( )
Checks, if the SQL result is available and load it if not.
Checks, if the SQL result is available and load it if not.
Implementation of
|
public
|
#
resetData( integer $root = null, boolean $fetchData = true )
Resets the data of the structure.
Resets the data of the structure.
Parameters
- $root
- The root folder
- $fetchData
- Determine, if the data should be refetched
See
Implementation of
|
public
|
#
byId( $id, $nullForRoot = true )
|
public
|
|
public
|
#
getRows( )
Get the SQL query result instead of IFolder objects.
Get the SQL query result instead of IFolder objects.
Returns
object[] The SQL result
Implementation of
|
public
|
#
getParsed( )
Get all SQL query results as IFolder objects.
Get all SQL query results as IFolder objects.
Returns
IFolder[] The folders
Implementation of
|
public
IFolder[]
|
#
getTree( )
Get all SQL query results placed to a tree. That means it is a "hierarchical"
result where you work with ->getChildren(). The first level contains the top folders.
Get all SQL query results placed to a tree. That means it is a "hierarchical"
result where you work with ->getChildren(). The first level contains the top folders.
Returns
IFolder[] The folders
Implementation of
|
public
object[]
|
#
getPlainTree( )
Get all SQL query results placed to a tree. It is fully resolved with all hierarchical
plain objects of the folders.
Get all SQL query results placed to a tree. It is fully resolved with all hierarchical
plain objects of the folders.
Returns
object[]
Implementation of
|
public
|
#
getCntAttachments( )
Get the attachment count for this structure.
Get the attachment count for this structure.
Returns
integer Count
Implementation of
|
public
|
|
public
|
#
getCntRoot( )
Get the attachment count for the "/ Unorganized" folder for this structure.
Get the attachment count for the "/ Unorganized" folder for this structure.
Returns
integer Count
Implementation of
|
public
|
#
getView( )
Get the view class instance.
Get the view class instance.
|
public
|
#
getData( )
Get the custom data.
Returns
array Data
Implementation of
|
public
|
#
setData( array $data )
Set the custom data.
Parameters
Implementation of
|
public static
|
|