PHP Класс FOF30\Factory\MagicSwitchFactory

Note: This factory class will look for MVC objects in BOTH component sections (front-end, back-end), not just the one you are currently running in. If no class is found a new object will be created magically. This is the same behaviour as FOF 2.x.
Наследование: extends SwitchFactory, implements FOF30\Factory\FactoryInterface
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
controller ( string $viewName, array $config = [] ) : Controller Create a new Controller object
dispatcher ( array $config = [] ) : Dispatcher Creates a new Dispatcher
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
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() публичный Метод

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

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
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