Adventure Documentation

Controller extends FunctionPlugin
in package

Returns a controller instance from the provided type.

Arguments:

type => string

primary => bool

secondary => bool

Example:

{controller type="product" primary=true}

Tags

Table of Contents

callback()  : mixed
get()  : CollectionController|null
getName()  : string

Methods

callback()

public callback(array<string|int, mixed> $args, Smarty_Internal_Template $template) : mixed
Parameters
$args : array<string|int, mixed>
$template : Smarty_Internal_Template
Tags
inheritDoc
throws
InvalidArgumentException
Return values
mixed

get()

public static get(string|null $type, bool $priority) : CollectionController|null
Parameters
$type : string|null
$priority : bool
Tags
throws
InvalidArgumentException
Return values
CollectionController|null

getName()

public getName() : string
Tags
inheritDoc
Return values
string

        

Search results