Info Panel
Roll it!   ⇔
1 - Documantation
* Knowledge Base
  • Mvc
  • Application
  • Advanced
  • Operators
  • Api
* Origin Template
  • Customize
* Core Classes
* Classes

* all grey titles exists but not documented yet

NewInstance

Type: core

Class: Basic

Platform: 2v

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):
Code:
Possible outcome (example):
Output:
Info Panel
Roll it!   ⇔