1 | <?php |
||
29 | class DataTablesTwigExtension extends AbstractDataTablesTwigExtension { |
||
30 | |||
31 | /** |
||
32 | * Service name. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | const SERVICE_NAME = "webeweb.jquerydatatables.twig.extension"; |
||
37 | |||
38 | /** |
||
39 | * Constructor. |
||
40 | * |
||
41 | * @param Twig_Environment $twigEnvironment The Twig environment. |
||
42 | * @param RendererTwigExtension $rendererTwigExtension The renderer Twig extension. |
||
43 | */ |
||
44 | public function __construct(Twig_Environment $twigEnvironment, RendererTwigExtension $rendererTwigExtension) { |
||
47 | |||
48 | /** |
||
49 | * Get the Twig filters. |
||
50 | * |
||
51 | * @return Twig_SimpleFilter[] Returns the Twig filters. |
||
52 | */ |
||
53 | public function getFilters() { |
||
59 | |||
60 | /** |
||
61 | * Get the Twig functions. |
||
62 | * |
||
63 | * @return array Returns the Twig functions. |
||
64 | */ |
||
65 | public function getFunctions() { |
||
80 | |||
81 | /** |
||
82 | * Displays a jQuery DataTables. |
||
83 | * |
||
84 | * @param DataTablesWrapperInterface $dtWrapper The wrapper. |
||
85 | * @param array $args The arguments. |
||
86 | * @return string Returns the jQuery DataTables. |
||
87 | * @throws FileNotFoundException Throws a file not found exception if the language file does not exist. |
||
88 | */ |
||
89 | public function jQueryDataTablesFunction(DataTablesWrapperInterface $dtWrapper, array $args = []) { |
||
92 | |||
93 | /** |
||
94 | * Displays a jQuery DataTables name. |
||
95 | * |
||
96 | * @param DataTablesWrapperInterface $dtWrapper The wrapper. |
||
97 | * @return string Returns the jQuery DataTables name. |
||
98 | */ |
||
99 | public function jQueryDataTablesNameFunction(DataTablesWrapperInterface $dtWrapper) { |
||
102 | |||
103 | /** |
||
104 | * Displays a jQuery DataTables "Standalone". |
||
105 | * |
||
106 | * @param array $args The arguments. |
||
107 | * @return string Returns the jQuery DataTables "Standalone". |
||
108 | * @throws FileNotFoundException Throws a file not found exception if the language file does not exist. |
||
109 | */ |
||
110 | public function jQueryDataTablesStandaloneFunction(array $args = []) { |
||
113 | |||
114 | /** |
||
115 | * Render a DataTables. |
||
116 | * |
||
117 | * @param DataTablesWrapperInterface $dtWrapper The wrapper. |
||
118 | * @param array $args The arguments. |
||
119 | * @return string Returns the rendered DataTables. |
||
120 | */ |
||
121 | public function renderDataTablesFunction(DataTablesWrapperInterface $dtWrapper, array $args = []) { |
||
124 | } |
||
125 |