NewInstance
Function: newInstance
Visibility: public static
Parameter: newInstance($class,$directory,$params)
Description:
Initiate specific class. Loading classes will be made from under labYard folder.
Parameters:
(required) - string - $class - The class name.
(optional) - string - $directory - The directory in which the class exists, if empty, "functions" directory will be used.
(optional) - string - $params - Parameters to pass to the class.
Return:
object - The class itself.
Callable from (extended classes):
application: controller,view
advanced: controller,view
operators: controller,view
api: controller,view
example: 1
We want to initiate the class "trans" to get the translation going.
How to call (example):
Possible outcome (example):
Output: