Function __global->object_factory
Definitions
sources/global.php
- Make an object of the given class.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: object
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$class | string | required parameter | N/A | N/A | The class name |
$failure_ok | boolean | False | N/A | N/A | Whether to return null if there is no such class |
$parameters | array | [] | N/A | N/A | Array of parameters |
Return
- The object (null: could not create)
- Type: ?object
- Set: N/A
- Range: N/A
sources/minikernel.php
- Make an object of the given class.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: object
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$class | string | required parameter | N/A | N/A | The class name |
$failure_ok | boolean | False | N/A | N/A | Whether to return null if there is no such class |
$parameters | array | [] | N/A | N/A | Array of parameters |
Return
- The object (null: could not create)
- Type: ?object
- Set: N/A
- Range: N/A