1 | <?php |
||
10 | class DataTables |
||
11 | { |
||
12 | /** |
||
13 | * Make a DataTable instance from source. |
||
14 | * |
||
15 | * @param mixed $source |
||
16 | * @return mixed |
||
17 | * @throws \Exception |
||
18 | */ |
||
19 | public function make($source) |
||
31 | |||
32 | /** |
||
33 | * Get the optimum engine for the given data source. |
||
34 | * |
||
35 | * @param mixed $source |
||
36 | * @return string|null |
||
37 | */ |
||
38 | protected function getEngineForSource($source) |
||
53 | |||
54 | /** |
||
55 | * Create a new DataTable instance. |
||
56 | * |
||
57 | * @param string $engine |
||
58 | * @param mixed $source |
||
59 | * @return mixed |
||
60 | * @throws \Exception |
||
61 | */ |
||
62 | protected function createDataTable($engine, $source) |
||
70 | |||
71 | /** |
||
72 | * Make a DataTable instance by using method name as engine. |
||
73 | * |
||
74 | * @param string $method |
||
75 | * @param array $parameters |
||
76 | * @return mixed |
||
77 | */ |
||
78 | public function __call($method, $parameters) |
||
82 | } |
||
83 |