1 | <?php |
||
27 | class DataTablesTwigExtension extends AbstractDataTablesTwigExtension { |
||
28 | |||
29 | /** |
||
30 | * Service name. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | const SERVICE_NAME = "wbw.jquery.datatables.twig.extension"; |
||
35 | |||
36 | /** |
||
37 | * Get the Twig filters. |
||
38 | * |
||
39 | * @return TwigFilter[] Returns the Twig filters. |
||
40 | */ |
||
41 | public function getFilters() { |
||
47 | |||
48 | /** |
||
49 | * Get the Twig functions. |
||
50 | * |
||
51 | * @return TwigFunction[] Returns the Twig functions. |
||
52 | */ |
||
53 | public function getFunctions() { |
||
71 | |||
72 | /** |
||
73 | * Displays a jQuery DataTables. |
||
74 | * |
||
75 | * @param DataTablesWrapperInterface $dtWrapper The wrapper. |
||
76 | * @param array $args The arguments. |
||
77 | * @return string Returns the jQuery DataTables. |
||
78 | * @throws FileNotFoundException Throws a file not found exception if the language file does not exist. |
||
79 | */ |
||
80 | public function jQueryDataTablesFunction(DataTablesWrapperInterface $dtWrapper, array $args = []) { |
||
83 | |||
84 | /** |
||
85 | * Displays a jQuery DataTables name. |
||
86 | * |
||
87 | * @param DataTablesWrapperInterface $dtWrapper The wrapper. |
||
88 | * @return string Returns the jQuery DataTables name. |
||
89 | */ |
||
90 | public function jQueryDataTablesNameFunction(DataTablesWrapperInterface $dtWrapper) { |
||
93 | |||
94 | /** |
||
95 | * Displays a jQuery DataTables options. |
||
96 | * |
||
97 | * @param DataTablesWrapperInterface $dtWrapper The wrapper. |
||
98 | * @return array Returns the jQuery DataTables options. |
||
99 | */ |
||
100 | public function jQueryDataTablesOptionsFunction(DataTablesWrapperInterface $dtWrapper) { |
||
103 | |||
104 | /** |
||
105 | * Displays a jQuery DataTables "Standalone". |
||
106 | * |
||
107 | * @param array $args The arguments. |
||
108 | * @return string Returns the jQuery DataTables "Standalone". |
||
109 | * @throws FileNotFoundException Throws a file not found exception if the language file does not exist. |
||
110 | */ |
||
111 | public function jQueryDataTablesStandaloneFunction(array $args = []) { |
||
114 | |||
115 | /** |
||
116 | * Render a DataTables. |
||
117 | * |
||
118 | * @param DataTablesWrapperInterface $dtWrapper The wrapper. |
||
119 | * @param array $args The arguments. |
||
120 | * @return string Returns the rendered DataTables. |
||
121 | */ |
||
122 | public function renderDataTablesFunction(DataTablesWrapperInterface $dtWrapper, array $args = []) { |
||
125 | } |
||
126 |