JFormHelper::loadType
Method to load a form entity object given a type.
Each type is loaded only once and then used as a prototype for other objects of same type. Please, use this method only with those entities which support types (forms don't support them).
Signature
protected function loadType(string
$entity,
[string
$type = true,
[boolean
$new = true]] )
Parameters
-
$entity
- The entity.
-
$type
- The entity type.
-
$new
- Flag to toggle whether we should get a new instance of the object.
Returns
- mixed
- Entity object on success, false otherwise.