FOFModel::getTmpInstance
Returns a new instance of a model, with the state reset to defaults
Signature
public function getTmpInstance(string
$type,
[string
$prefix = '',
array
$config] )
Parameters
-
$type
- Model type, e.g. 'Items'
-
$prefix
- Model prefix, e.g. 'FoobarModel'
-
$config
- Model configuration variables
Returns
- FOFModel