PHP Class FOF30\Factory\MagicFactory

Note: This factory class will ONLY look for MVC objects in the same component section (front-end, back-end) you are currently running in. If they are not found a new one will be created magically.
Inheritance: extends BasicFactory, implements FOF30\Factory\FactoryInterface
Datei anzeigen Open project: akeeba/fof Class Usage Examples

Public Methods

Method Description
controller ( string $viewName, array $config = [] ) : Controller Create a new Controller object
dispatcher ( array $config = [] )
model ( string $viewName, array $config = [] ) : Model Create a new Model object
toolbar ( array $config = [] ) : Toolbar Creates a new Toolbar
transparentAuthentication ( array $config = [] ) : TransparentAuthentication Creates a new TransparentAuthentication handler
view ( string $viewName, string $viewType = 'html', array $config = [] ) : View Create a new View object

Method Details

controller() public method

Create a new Controller object
public controller ( string $viewName, array $config = [] ) : Controller
$viewName string The name of the view we're getting a Controller for.
$config array Optional MVC configuration values for the Controller object.
return FOF30\Controller\Controller

dispatcher() public method

public dispatcher ( array $config = [] )
$config array

model() public method

Create a new Model object
public model ( string $viewName, array $config = [] ) : Model
$viewName string The name of the view we're getting a Model for.
$config array Optional MVC configuration values for the Model object.
return FOF30\Model\Model

toolbar() public method

Creates a new Toolbar
public toolbar ( array $config = [] ) : Toolbar
$config array The configuration values for the Toolbar object
return FOF30\Toolbar\Toolbar

transparentAuthentication() public method

Creates a new TransparentAuthentication handler
public transparentAuthentication ( array $config = [] ) : TransparentAuthentication
$config array The configuration values for the TransparentAuthentication object
return FOF30\TransparentAuthentication\TransparentAuthentication

view() public method

Create a new View object
public view ( string $viewName, string $viewType = 'html', array $config = [] ) : View
$viewName string The name of the view we're getting a View object for.
$viewType string The type of the View object. By default it's "html".
$config array Optional MVC configuration values for the View object.
return FOF30\View\View