1 | <?php |
||
4 | class CSVDataTable extends DataTable |
||
5 | { |
||
6 | /** |
||
7 | * @param string $file The csv file |
||
8 | */ |
||
9 | public function __construct($file) |
||
19 | |||
20 | public function count($filter = false) |
||
30 | |||
31 | public function read($filter = false, $select = false, $count = false, $skip = false, $sort = false, $params = false) |
||
40 | |||
41 | public function create($data) |
||
45 | |||
46 | public function update($filter, $data) |
||
50 | |||
51 | public function delete($filter) |
||
55 | } |
||
56 | /* vim: set tabstop=4 shiftwidth=4 expandtab: */ |
||
57 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: