WidgetHandler
class WidgetHandler
WidgetHandler Widget 을 관리하는 클래스
Properties
| static array | $displayErrorRatings | ||
| protected PluginRegister | $register | ||
| protected GuardInterface | $guard | ||
| protected bool | $debugMode | ||
| private Factory | $view |
Methods
__construct(PluginRegister $register, GuardInterface $guard, Factory $view, bool $debugMode = false)
생성자
mixed
getClassName(string $widgetId)
주어진 id로 등록된 Widget 반환한다.
getInstance(string $widgetId, null $args = null)
getInstance
mixed
render(string $widgetId, array $args = array())
create
mixed
setup(string $widgetId, array $configs = array())
render widget setting form
array
getAll(callable $filter = null)
retrive all of registered widget
string
generateCode(string $widgetId, array $inputs)
generate widget code by widget id and config given
string
generateXml(string $element, array $inputs, int $depth)
xml string을 생성하여 반환한다. element명과 element의 attr, child elements 정보를 입력받는다.
string
fullWidgetId(string $widgetId)
prefix를 포함한 완전한 widget id를 반환한다.
Details
at line 66
__construct(PluginRegister $register, GuardInterface $guard, Factory $view, bool $debugMode = false)
생성자
at line 85
mixed
getClassName(string $widgetId)
주어진 id로 등록된 Widget 반환한다.
at line 98
protected AbstractWidget
getInstance(string $widgetId, null $args = null)
getInstance
at line 118
mixed
render(string $widgetId, array $args = array())
create
at line 151
mixed
setup(string $widgetId, array $configs = array())
render widget setting form
at line 164
array
getAll(callable $filter = null)
retrive all of registered widget
at line 183
string
generateCode(string $widgetId, array $inputs)
generate widget code by widget id and config given
at line 201
string
generateXml(string $element, array $inputs, int $depth)
xml string을 생성하여 반환한다. element명과 element의 attr, child elements 정보를 입력받는다.
at line 239
protected string
fullWidgetId(string $widgetId)
prefix를 포함한 완전한 widget id를 반환한다.