PHP Класс 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.
Наследование: extends BasicFactory, implements FOF30\Factory\FactoryInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

controller() публичный Метод

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.
Результат FOF30\Controller\Controller

dispatcher() публичный Метод

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

model() публичный Метод

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.
Результат FOF30\Model\Model

toolbar() публичный Метод

Creates a new Toolbar
public toolbar ( array $config = [] ) : Toolbar
$config array The configuration values for the Toolbar object
Результат FOF30\Toolbar\Toolbar

transparentAuthentication() публичный Метод

Creates a new TransparentAuthentication handler
public transparentAuthentication ( array $config = [] ) : TransparentAuthentication
$config array The configuration values for the TransparentAuthentication object
Результат FOF30\TransparentAuthentication\TransparentAuthentication

view() публичный Метод

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.
Результат FOF30\View\View