1 | <?php |
||
25 | class ButtonTableTwigExtension extends AbstractTableTwigExtension { |
||
26 | |||
27 | /** |
||
28 | * Service name. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | const SERVICE_NAME = "webeweb.bundle.bootstrapbundle.twig.extension.table.button"; |
||
33 | |||
34 | /** |
||
35 | * Translator. |
||
36 | * |
||
37 | * @var TranslatorInterface |
||
38 | */ |
||
39 | private $translator; |
||
40 | |||
41 | /** |
||
42 | * Constructor. |
||
43 | * |
||
44 | * @param TranslatorInterface $translator The translator service. |
||
45 | */ |
||
46 | public function __construct(TranslatorInterface $translator) { |
||
50 | |||
51 | /** |
||
52 | * Displays a Bootstrap default row buttons. |
||
53 | * |
||
54 | * @param array $args The arguments. |
||
55 | * @return string Returns the Bootstrap default form buttons. |
||
56 | */ |
||
57 | public function bootstrapDefaultRowButtonsFunction(array $args = []) { |
||
66 | |||
67 | /** |
||
68 | * Displays a Bootstrap delete row button. |
||
69 | * |
||
70 | * @param array $args The arguments. |
||
71 | * @return string Returns the Bootstrap delete row button. |
||
72 | */ |
||
73 | 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 = []) { |
||
104 | |||
105 | /** |
||
106 | * Get the Twig functions. |
||
107 | * |
||
108 | * @return array Returns the Twig functions. |
||
109 | */ |
||
110 | public function getFunctions() { |
||
117 | |||
118 | /** |
||
119 | * Get the translator. |
||
120 | * |
||
121 | * @return TranslatorInterface Returns the translator. |
||
122 | */ |
||
123 | public function getTranslator() { |
||
126 | |||
127 | /** |
||
128 | * Set the translator. |
||
129 | * |
||
130 | * @param TranslatorInterface $translator The translator. |
||
131 | * @return ButtonTableTwigExtension Returns this button table Twig extension. |
||
132 | */ |
||
133 | protected function setTranslator(TranslatorInterface $translator) { |
||
137 | |||
138 | } |
||
139 |