+ added the initial work for two other types of fields
[vsc.git] / _res / _libs / models / foo / fields / foofielddatetime.class.php
blobcb9de6bd0a7ca2bcead444883b1f403853638b6d
1 <?php
2 /**
3 * @package ts_models
4 * @author Marius Orcsik <marius@habarnam.ro>
5 * @date 09.05.01
6 */
7 class fooFieldDateTime extends fooFieldA {
8 const TYPE = 'datetime';
9 protected $maxLength = 20; // arbitrary chosen, > strlen(YYYY-MM-DD GG:II:SS)
11 public function isVarChar (fooFieldA $oField) {
12 return ($oField instanceof self);
15 public function getType () {
16 return self::TYPE;
19 protected function escape () {
20 // need a mechanism based on the connection type
21 // TODO
22 return $this->value;