1 | <?php |
||
22 | class FontPanelWidget implements WidgetInterface |
||
23 | { |
||
24 | |||
25 | /** |
||
26 | * StringTemplate instance. |
||
27 | * |
||
28 | * @var \Cake\View\StringTemplate |
||
29 | */ |
||
30 | protected $_templates; |
||
31 | |||
32 | /** |
||
33 | * Instance of View. |
||
34 | * |
||
35 | * @var \Cake\View\View |
||
36 | */ |
||
37 | protected $_View = null; |
||
38 | |||
39 | /** |
||
40 | * Constructor. |
||
41 | * |
||
42 | * @param \Cake\View\StringTemplate $templates Templates list. |
||
43 | * @param \Cake\View\View $view Instance of View |
||
44 | */ |
||
45 | public function __construct($templates, $view) |
||
50 | |||
51 | /** |
||
52 | * Render a color picker widget. |
||
53 | * |
||
54 | * @param array $data The data to build an input with. |
||
55 | * @param \Cake\View\Form\ContextInterface $context The current form context. |
||
56 | * @return string |
||
57 | */ |
||
58 | public function render(array $data, ContextInterface $context) |
||
82 | |||
83 | /** |
||
84 | * {@inheritDoc} |
||
85 | */ |
||
86 | public function secureFields(array $data) |
||
90 | |||
91 | /** |
||
92 | * Load all CSS and JS assets required for this widget. |
||
93 | * |
||
94 | * @return void |
||
95 | */ |
||
96 | protected function _loadAssets() |
||
102 | } |
||
103 |