Revision 5341,
870 bytes
checked in by wmerlotto, 13 years ago
(diff) |
Ticket #2434 - Commit inicial do novo módulo de agenda do Expresso - expressoCalendar
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | class DBMapping { |
---|
4 | |
---|
5 | static $preferenceMap = array( 'id' => 'id', |
---|
6 | 'name' => 'name', |
---|
7 | 'module' => 'module_id'); |
---|
8 | |
---|
9 | static $moduleMap = array( 'id' => 'id', |
---|
10 | 'name' => 'name'); |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | //Encode Creates |
---|
15 | public function encodeCreatePreference(&$uri , &$params , &$criteria , $original , &$service){ |
---|
16 | |
---|
17 | } |
---|
18 | |
---|
19 | public function encodeCreateModule(&$uri , &$params , &$criteria , $original , &$service){ |
---|
20 | |
---|
21 | |
---|
22 | |
---|
23 | } |
---|
24 | |
---|
25 | private static function parseConcept( $data, &$map , $flip = false ) |
---|
26 | { |
---|
27 | if($flip === true) |
---|
28 | $map = array_flip($map); |
---|
29 | |
---|
30 | $new = array(); |
---|
31 | foreach ($data as $i => $v) |
---|
32 | if(array_key_exists($i, $map)) |
---|
33 | $new[$map[$i]] = $v; |
---|
34 | return $new; |
---|
35 | } |
---|
36 | } |
---|
37 | |
---|
38 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.