|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
@template-extends \ilTree More...
Collaboration diagram for ILIAS\Tree\TreeBuilder:Public Member Functions | |
| __construct (int $tree_id) | |
| Create a new TreeBuilder instance. More... | |
| withTreeId (int $tree_id) | |
| Set the tree identifier. More... | |
| withRootId (int $root_id) | |
| Set the root node identifier. More... | |
| withDatabase (\ilDBInterface $db) | |
| Set the database interface. More... | |
| withLogger (LoggerInterface $logger) | |
| Set the logger. More... | |
| withSetting (Setting $setting) | |
| Set the settings. More... | |
| withEventHandler (\ilAppEventHandler $event_handler) | |
| Set the event handler. More... | |
| withObjectDataCache (\ilObjectDataCache $obj_data_cache) | |
| Set the object data cache. More... | |
| withObjectDefinition (\ilObjectDefinition $obj_definition) | |
| Set the object definition. More... | |
| withUser (\ilObjUser $user) | |
| Set the current user. More... | |
| withLanguage (Language $language) | |
| Set the language handler. More... | |
| forSetupEnvironment (\ilDBInterface $db, Setting $setting) | |
| Configure the builder for a setup environment with minimal dependencies. More... | |
| forMainTree () | |
| Configure the builder for a main tree (default repository tree). More... | |
| forSubTree (int $root_id) | |
| Configure the builder for a subtree. More... | |
| build () | |
| Build and return the ilTree instance. More... | |
Private Attributes | |
| int | $tree_id |
| int | $root_id = 0 |
| ilDBInterface | $db = null |
| LoggerInterface | $logger = null |
| Setting | $setting = null |
| ilAppEventHandler | $event_handler = null |
| ilObjectDataCache | $obj_data_cache = null |
| ilObjectDefinition | $obj_definition = null |
| ilObjUser | $user = null |
| Language | $language = null |
@template-extends \ilTree
Builder class for ilTree instances. Provides a fluent interface for constructing tree instances with various configurations.
Definition at line 39 of file TreeBuilder.php.
| ILIAS\Tree\TreeBuilder::__construct | ( | int | $tree_id | ) |
Create a new TreeBuilder instance.
| int | $tree_id | The tree identifier (required) |
Definition at line 57 of file TreeBuilder.php.
References ILIAS\Tree\TreeBuilder\$tree_id.
| ILIAS\Tree\TreeBuilder::build | ( | ) |
Build and return the ilTree instance.
Definition at line 228 of file TreeBuilder.php.
References ILIAS\UI\examples\Symbol\Glyph\Language\language(), ILIAS\Repository\logger(), and ILIAS\Repository\user().
Here is the call graph for this function:| ILIAS\Tree\TreeBuilder::forMainTree | ( | ) |
Configure the builder for a main tree (default repository tree).
Definition at line 204 of file TreeBuilder.php.
References ROOT_FOLDER_ID.
| ILIAS\Tree\TreeBuilder::forSetupEnvironment | ( | \ilDBInterface | $db, |
| Setting | $setting | ||
| ) |
Configure the builder for a setup environment with minimal dependencies.
This is a convenience method that sets up the builder with null/fallback values for dependencies that may not be available in setup contexts.
| \ilDBInterface | $db | Required database connection |
Definition at line 190 of file TreeBuilder.php.
References ILIAS\Tree\TreeBuilder\$db, ILIAS\Tree\TreeBuilder\$setting, ILIAS\UI\examples\Symbol\Glyph\Language\language(), and ILIAS\Repository\logger().
Here is the call graph for this function:| ILIAS\Tree\TreeBuilder::forSubTree | ( | int | $root_id | ) |
Configure the builder for a subtree.
| int | $root_id | The root node ID for the subtree |
Definition at line 217 of file TreeBuilder.php.
References ILIAS\Tree\TreeBuilder\$root_id.
| ILIAS\Tree\TreeBuilder::withDatabase | ( | \ilDBInterface | $db | ) |
Set the database interface.
| \ilDBInterface | $db | Database interface |
Definition at line 92 of file TreeBuilder.php.
References ILIAS\Tree\TreeBuilder\$db.
| ILIAS\Tree\TreeBuilder::withEventHandler | ( | \ilAppEventHandler | $event_handler | ) |
Set the event handler.
| \ilAppEventHandler | $event_handler | Event handler |
Definition at line 128 of file TreeBuilder.php.
References ILIAS\Tree\TreeBuilder\$event_handler.
| ILIAS\Tree\TreeBuilder::withLanguage | ( | Language | $language | ) |
Set the language handler.
Definition at line 176 of file TreeBuilder.php.
References ILIAS\Tree\TreeBuilder\$language, and ILIAS\UI\examples\Symbol\Glyph\Language\language().
Here is the call graph for this function:| ILIAS\Tree\TreeBuilder::withLogger | ( | LoggerInterface | $logger | ) |
Set the logger.
| LoggerInterface | $logger | Logger instance |
Definition at line 104 of file TreeBuilder.php.
References ILIAS\Tree\TreeBuilder\$logger, and ILIAS\Repository\logger().
Here is the call graph for this function:| ILIAS\Tree\TreeBuilder::withObjectDataCache | ( | \ilObjectDataCache | $obj_data_cache | ) |
Set the object data cache.
| \ilObjectDataCache | $obj_data_cache | Object data cache |
Definition at line 140 of file TreeBuilder.php.
References ILIAS\Tree\TreeBuilder\$obj_data_cache.
| ILIAS\Tree\TreeBuilder::withObjectDefinition | ( | \ilObjectDefinition | $obj_definition | ) |
Set the object definition.
| \ilObjectDefinition | $obj_definition | Object definition |
Definition at line 152 of file TreeBuilder.php.
References ILIAS\Tree\TreeBuilder\$obj_definition.
| ILIAS\Tree\TreeBuilder::withRootId | ( | int | $root_id | ) |
Set the root node identifier.
| int | $root_id | Root node identifier (defaults to ROOT_FOLDER_ID if 0) |
Definition at line 80 of file TreeBuilder.php.
References ILIAS\Tree\TreeBuilder\$root_id.
| ILIAS\Tree\TreeBuilder::withSetting | ( | Setting | $setting | ) |
Set the settings.
| Setting | $setting | Settings instance |
Definition at line 116 of file TreeBuilder.php.
References ILIAS\Tree\TreeBuilder\$setting.
| ILIAS\Tree\TreeBuilder::withTreeId | ( | int | $tree_id | ) |
Set the tree identifier.
| int | $tree_id | Tree identifier |
Definition at line 68 of file TreeBuilder.php.
References ILIAS\Tree\TreeBuilder\$tree_id.
| ILIAS\Tree\TreeBuilder::withUser | ( | \ilObjUser | $user | ) |
Set the current user.
| \ilObjUser | $user | User object |
Definition at line 164 of file TreeBuilder.php.
References ILIAS\Tree\TreeBuilder\$user, and ILIAS\Repository\user().
Here is the call graph for this function:
|
private |
Definition at line 43 of file TreeBuilder.php.
Referenced by ILIAS\Tree\TreeBuilder\forSetupEnvironment(), and ILIAS\Tree\TreeBuilder\withDatabase().
|
private |
Definition at line 46 of file TreeBuilder.php.
Referenced by ILIAS\Tree\TreeBuilder\withEventHandler().
|
private |
Definition at line 50 of file TreeBuilder.php.
Referenced by ILIAS\Tree\TreeBuilder\withLanguage().
|
private |
Definition at line 44 of file TreeBuilder.php.
Referenced by ILIAS\Tree\TreeBuilder\withLogger().
|
private |
Definition at line 47 of file TreeBuilder.php.
Referenced by ILIAS\Tree\TreeBuilder\withObjectDataCache().
|
private |
Definition at line 48 of file TreeBuilder.php.
Referenced by ILIAS\Tree\TreeBuilder\withObjectDefinition().
|
private |
Definition at line 42 of file TreeBuilder.php.
Referenced by ILIAS\Tree\TreeBuilder\forSubTree(), and ILIAS\Tree\TreeBuilder\withRootId().
|
private |
Definition at line 45 of file TreeBuilder.php.
Referenced by ILIAS\Tree\TreeBuilder\forSetupEnvironment(), and ILIAS\Tree\TreeBuilder\withSetting().
|
private |
Definition at line 41 of file TreeBuilder.php.
Referenced by ILIAS\Tree\TreeBuilder\__construct(), and ILIAS\Tree\TreeBuilder\withTreeId().
|
private |
Definition at line 49 of file TreeBuilder.php.
Referenced by ILIAS\Tree\TreeBuilder\withUser().