MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
timestampconverter.class
Ir para a documentação deste ficheiro.
1<?php
2
4{
5 private $db;
6
8 {
9 }
10
11 function init($properties)
12 {
13 global $MIOLO;
14 $this->db = $MIOLO->GetDatabase($properties['database']);
15 }
16
17 function convertFrom($object)
18 {
19 return strtoupper($this->db->CharToTimestamp(trim((string)$object)));
20 }
21
22 function convertTo($object)
23 {
24 return $object;
25 }
26
27 function convertColumn($object)
28 {
29 return strtoupper($this->db->TimestampToChar(trim((string)$object)));
30 }
31
32 function convertWhere($object)
33 {
34 return $object;
35 }
36
37}
38?>