classes / obfload.php
OBFLoad
Class
Loading class. Manages the loading of OpenBroadcaster files, models, and controllers.
public
&get_instance
(
)
public
&get_instance
(
)
Create an instance of OBFLoad or return the already-created instance.
Returns
instance
public
__construct
(
)
public
__construct
(
)
Construct an instance of OBFLoad. It scans the models directory first, adding the appropriate files to an array of models, then does the same for the controllers. Finally, it goes through all the module directories, and does the same for the models and controllers there.
public
controller
(
controller
)
public
controller
(
controller
)
Load a controller and return the instance. Used primarily by the API to access its methods.
Parameters
controller |
Returns
controller_instance
public
model
(
model
)
public
model
(
model
)
Load a model and return the instance. Used primarly by controllers to access associated data.
Parameters
model |
Returns
model_instance