Arikaim CMS

ComponentFactory
in package

Component factory class

Table of Contents

Constants

COMPONENT_RENDER_CLASSES  = [\Arikaim\Core\Interfaces\View\ComponentInterface::EMPTY_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\EmptyComponent', \Arikaim\Core\Interfaces\View\ComponentInterface::ARIKAIM_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\ArikaimComponent', \Arikaim\Core\Interfaces\View\ComponentInterface::STATIC_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\StaticHtmlComponent', \Arikaim\Core\Interfaces\View\ComponentInterface::JSON_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\JsonComponent', \Arikaim\Core\Interfaces\View\ComponentInterface::SVG_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\SvgComponent', \Arikaim\Core\Interfaces\View\ComponentInterface::HTML_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\HtmlComponent', \Arikaim\Core\Interfaces\View\ComponentInterface::JS_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\JsComponent', \Arikaim\Core\Interfaces\View\ComponentInterface::EMAIL_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\EmailView', \Arikaim\Core\Interfaces\View\ComponentInterface::WIWGET_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\WidgetComponent']
Component render classes

Methods

create()  : ComponentInterface
Create view component

Constants

COMPONENT_RENDER_CLASSES

Component render classes

public mixed COMPONENT_RENDER_CLASSES = [\Arikaim\Core\Interfaces\View\ComponentInterface::EMPTY_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\EmptyComponent', \Arikaim\Core\Interfaces\View\ComponentInterface::ARIKAIM_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\ArikaimComponent', \Arikaim\Core\Interfaces\View\ComponentInterface::STATIC_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\StaticHtmlComponent', \Arikaim\Core\Interfaces\View\ComponentInterface::JSON_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\JsonComponent', \Arikaim\Core\Interfaces\View\ComponentInterface::SVG_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\SvgComponent', \Arikaim\Core\Interfaces\View\ComponentInterface::HTML_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\HtmlComponent', \Arikaim\Core\Interfaces\View\ComponentInterface::JS_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\JsComponent', \Arikaim\Core\Interfaces\View\ComponentInterface::EMAIL_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\EmailView', \Arikaim\Core\Interfaces\View\ComponentInterface::WIWGET_COMPONENT_TYPE => '\\Arikaim\\Core\\View\\Html\\Component\\WidgetComponent']

Methods

create()

Create view component

public static create(string $name, string $language, string $type, string $viewPath, string $extensionsPath, string $primaryTemplate[, int $renderMode = null ][, array<string|int, mixed> $parent = [] ]) : ComponentInterface
Parameters
$name : string
$language : string
$type : string
$viewPath : string
$extensionsPath : string
$primaryTemplate : string
$renderMode : int = null
$parent : array<string|int, mixed> = []
Return values
ComponentInterface

        
On this page

Search results