1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
namespace Application\Model;
use Khansia\Generic\Objects\Map;
use Khansia\Generic\Objects\Mapper;
use Khansia\Generic\Set;
use Khansia\Generic\Result as Result;
class Test extends Mapper {
private $_storage;
public function __construct(\Application\Model\Test\Storage\Skeleton $storage) {
$this->_storage = $storage;
$this->_result = new Result();
parent::__construct(
array(),
array(
// this mapper table on db
),
parent::CASE_INSENSITIVE
);
}
public function getDataTest(){
$data = $this->_storage->loadDataTest();
return $data;
}
public function saveGlobal($param, $table){
$data = $this->_storage->saveGlobal($param, $table);
return $data;
}
public function updateGlobal($tabel, $data, $where){
$data = $this->_storage->updateGlobal($tabel, $data, $where);
return $data;
}
}