PHP Class FOF30\Factory\Magic\ViewFactory

Inheritance: extends BaseFactory
Show file Open project: akeeba/fof Class Usage Examples

Public Methods

Method Description
make ( string $name = null, string $viewType = 'html', array $config = [] ) : FOF30\View\DataView\DataViewInterface Create a new object instance

Method Details

make() public method

Create a new object instance
public make ( string $name = null, string $viewType = 'html', array $config = [] ) : FOF30\View\DataView\DataViewInterface
$name string The name of the class we're making
$viewType string The view type, default html, possible values html, form, raw, json, csv
$config array The config parameters which override the fof.xml information
return FOF30\View\DataView\DataViewInterface A new TreeModel or DataModel object