1 | <?php |
||
24 | class DataTablesTwigExtension extends AbstractDataTablesTwigExtension { |
||
25 | |||
26 | /** |
||
27 | * Service name. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | const SERVICE_NAME = "webeweb.jquerydatatables.twig.extension.datatables"; |
||
32 | |||
33 | /** |
||
34 | * Get the Twig functions. |
||
35 | * |
||
36 | * @return array Returns the Twig functions. |
||
37 | */ |
||
38 | public function getFunctions() { |
||
45 | |||
46 | /** |
||
47 | * Displays a jQuery DataTables. |
||
48 | * |
||
49 | * @param DataTablesWrapper $dtWrapper The wrapper. |
||
50 | * @param array $args The arguments. |
||
51 | * @return string Returns the jQuery DataTables. |
||
52 | */ |
||
53 | public function jQueryDataTablesFunction(DataTablesWrapper $dtWrapper, array $args = []) { |
||
56 | |||
57 | /** |
||
58 | * Displays a jQuery DataTables "Standalone". |
||
59 | * |
||
60 | * @param array $args The arguments. |
||
61 | * @return string Returns the jQuery DataTables "Standalone". |
||
62 | */ |
||
63 | public function jQueryDataTablesStandaloneFunction(array $args = []) { |
||
66 | |||
67 | /** |
||
68 | * Render a DataTables. |
||
69 | * |
||
70 | * @param DataTablesWrapper $dtWrapper The wrapper. |
||
71 | * @param array $args The arguments. |
||
72 | * @return string Returns the rendered DataTables. |
||
73 | */ |
||
74 | public function renderDataTablesFunction(DataTablesWrapper $dtWrapper, array $args = []) { |
||
77 | |||
78 | } |
||
79 |