1 | <?php |
||
27 | final class ButtonTableTwigExtension extends AbstractTableTwigExtension { |
||
28 | |||
29 | /** |
||
30 | * Service name. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | const SERVICE_NAME = "webeweb.bundle.bootstrapbundle.twig.extension.table.button"; |
||
35 | |||
36 | /** |
||
37 | * Router. |
||
38 | * |
||
39 | * @var RouterInterface |
||
40 | */ |
||
41 | private $router; |
||
42 | |||
43 | /** |
||
44 | * Translator. |
||
45 | * |
||
46 | * @var TranslatorInterface |
||
47 | */ |
||
48 | private $translator; |
||
49 | |||
50 | /** |
||
51 | * Constructor. |
||
52 | * |
||
53 | * @param RouterInterface $router The router service. |
||
54 | * @param TranslatorInterface $translator The translator service. |
||
55 | */ |
||
56 | public function __construct(RouterInterface $router, TranslatorInterface $translator) { |
||
61 | |||
62 | /** |
||
63 | * Displays a Bootstrap default row buttons. |
||
64 | * |
||
65 | * @param array $args The arguments. |
||
66 | * @return string Returns the Bootstrap default form buttons. |
||
67 | */ |
||
68 | public function bootstrapDefaultRowButtonsFunction(array $args = []) { |
||
77 | |||
78 | /** |
||
79 | * Displays a Bootstrap delete row button. |
||
80 | * |
||
81 | * @param array $args The arguments. |
||
82 | * @return string Returns the Bootstrap delete row button. |
||
83 | */ |
||
84 | public function bootstrapDeleteRowButtonFunction(array $args = []) { |
||
100 | |||
101 | /** |
||
102 | * Displays a Bootstrap edit row button. |
||
103 | * |
||
104 | * @param array $args The arguments. |
||
105 | * @return string Returns the Bootstrap edit row button. |
||
106 | */ |
||
107 | public function bootstrapEditRowButtonFunction(array $args = []) { |
||
123 | |||
124 | /** |
||
125 | * Get the Twig functions. |
||
126 | * |
||
127 | * @return array Returns the Twig functions. |
||
128 | */ |
||
129 | public function getFunctions() { |
||
136 | |||
137 | } |
||
138 |