$blogs
$blogs :
The structure should be accessible within one or more blogs. For those purposes use the wp standard method switch_to_blog();
This is an array of Structure objects.
This class handles all hooks and functions for the structure.
If something will print out, this is a facade-wrapper function for the class View (stored in private $view).
__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.
integer | $root | The root folder defined for the structure |
array | $data | Custom data for the structure |
byId(integer $id,boolean $nullForRoot = true): \MatthiasWeb\RealMediaLibrary\api\IFolder|null
Get a folder by id.
integer | $id | The id of the folder |
boolean | $nullForRoot | If set to false and $id == -1 then the Root instance is returned |
byAbsolutePath(string $path): \MatthiasWeb\RealMediaLibrary\api\IFolder|null
Get a folder by absolute path.
string | $path | The path |
getParsed(): array<mixed,\MatthiasWeb\RealMediaLibrary\api\IFolder>
Get all SQL query results as IFolder objects.
The folders
getTree(): array<mixed,\MatthiasWeb\RealMediaLibrary\api\IFolder>
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.
The folders
getInstance(): \MatthiasWeb\RealMediaLibrary\attachment\Structure
Get instance.