1 | <?php |
||
7 | class GetData implements GetDataInterface |
||
8 | { |
||
9 | protected $value; |
||
10 | |||
11 | public function __construct($value) |
||
15 | |||
16 | /** |
||
17 | * get all the data in the table as an array |
||
18 | */ |
||
19 | protected function getAllData() |
||
23 | |||
24 | protected function DESC($limit = NULL) |
||
33 | |||
34 | public function allDESC($limit = NULL) |
||
38 | |||
39 | public function all() |
||
43 | |||
44 | /** |
||
45 | * Get the actual fetched row and return an array |
||
46 | */ |
||
47 | public function toArray() |
||
51 | |||
52 | /** |
||
53 | * Convert the fetched row to json |
||
54 | */ |
||
55 | public function toJson() |
||
59 | |||
60 | /** |
||
61 | * Get the output of the first jsondecoded element |
||
62 | */ |
||
63 | public function first() |
||
67 | |||
68 | /** |
||
69 | * Get the count of the fetch element |
||
70 | */ |
||
71 | public function getCount() |
||
75 | } |