1 | <?php |
||
25 | class TableButtonUtilityTwigExtension extends AbstractUtilityTwigExtension { |
||
26 | |||
27 | /** |
||
28 | * Service name. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | const SERVICE_NAME = "webeweb.bootstrapbundle.twig.extension.utility.tablebutton"; |
||
33 | |||
34 | /** |
||
35 | * Extension. |
||
36 | * |
||
37 | * @var ButtonComponentTwigExtension |
||
38 | */ |
||
39 | private $extension; |
||
40 | |||
41 | /** |
||
42 | * Constructor. |
||
43 | * |
||
44 | * @param TranslatorInterface $translator The translator. |
||
45 | * @param ButtonComponentTwigExtension $extension The button component Twig extension. |
||
46 | */ |
||
47 | public function __construct(TranslatorInterface $translator, ButtonComponentTwigExtension $extension) { |
||
51 | |||
52 | /** |
||
53 | * Displays a Bootstrap default row buttons. |
||
54 | * |
||
55 | * @param array $args The arguments. |
||
56 | * @return string Returns the Bootstrap default form buttons. |
||
57 | */ |
||
58 | public function bootstrapDefaultRowButtonsFunction(array $args = []) { |
||
67 | |||
68 | /** |
||
69 | * Displays a Bootstrap delete row button. |
||
70 | * |
||
71 | * @param array $args The arguments. |
||
72 | * @return string Returns the Bootstrap delete row button. |
||
73 | */ |
||
74 | public function bootstrapDeleteRowButtonFunction(array $args = []) { |
||
85 | |||
86 | /** |
||
87 | * Displays a Bootstrap edit row button. |
||
88 | * |
||
89 | * @param array $args The arguments. |
||
90 | * @return string Returns the Bootstrap edit row button. |
||
91 | */ |
||
92 | public function bootstrapEditRowButtonFunction(array $args = []) { |
||
103 | |||
104 | /** |
||
105 | * Get the extension. |
||
106 | * |
||
107 | * @return ButtonComponentTwigExtension Returns the extension. |
||
108 | */ |
||
109 | public function getExtension() { |
||
112 | |||
113 | /** |
||
114 | * Get the Twig functions. |
||
115 | * |
||
116 | * @return array Returns the Twig functions. |
||
117 | */ |
||
118 | public function getFunctions() { |
||
125 | |||
126 | /** |
||
127 | * Set the extension. |
||
128 | * |
||
129 | * @param ButtonComponentTwigExtension $extension The extension. |
||
130 | * @return TableButtonUtilityTwigExtension Returns this table button Twig extension. |
||
131 | */ |
||
132 | protected function setExtension(ButtonComponentTwigExtension $extension) { |
||
136 | |||
137 | } |
||
138 |