1 | <?php |
||
25 | class DataTablesTwigExtension extends AbstractDataTablesTwigExtension { |
||
26 | |||
27 | /** |
||
28 | * Service name. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | const SERVICE_NAME = "webeweb.datatablesbundle.twig.extension.datatables"; |
||
33 | |||
34 | /** |
||
35 | * Constructor. |
||
36 | */ |
||
37 | public function __construct() { |
||
40 | |||
41 | /** |
||
42 | * Get the Twig functions. |
||
43 | * |
||
44 | * @return array Returns the Twig functions. |
||
45 | */ |
||
46 | public function getFunctions() { |
||
52 | |||
53 | /** |
||
54 | * Displays a jQuery DataTables. |
||
55 | * |
||
56 | * @param DataTablesWrapper $dtWrapper The wrapper. |
||
57 | * @param array $args The arguments. |
||
58 | * @return string Returns the jQuery DataTables. |
||
59 | */ |
||
60 | public function jQueryDataTablesFunction(DataTablesWrapper $dtWrapper, array $args = []) { |
||
63 | |||
64 | /** |
||
65 | * Render a DataTables. |
||
66 | * |
||
67 | * @param DataTablesWrapper $dtWrapper The wrapper. |
||
68 | * @param array $args The arguments. |
||
69 | * @return string Returns the rendered DataTables. |
||
70 | */ |
||
71 | public function renderDataTablesFunction(DataTablesWrapper $dtWrapper, array $args = []) { |
||
74 | |||
75 | } |
||
76 |