|
@@ 1461-1467 (lines=7) @@
|
| 1458 |
|
return $this->Link_ID->BlobEncode($value); |
| 1459 |
|
} |
| 1460 |
|
break; // handled like strings |
| 1461 |
|
case 'date': |
| 1462 |
|
// if DateTime object given, convert it (NOT converting the timezone!) |
| 1463 |
|
if (is_object($value) && ($value instanceof \DateTime)) |
| 1464 |
|
{ |
| 1465 |
|
return $this->Link_ID->qstr($value->format('Y-m-d')); |
| 1466 |
|
} |
| 1467 |
|
return $this->Link_ID->DBDate($value); |
| 1468 |
|
case 'timestamp': |
| 1469 |
|
// if DateTime object given, convert it (NOT converting the timezone!) |
| 1470 |
|
if (is_object($value) && ($value instanceof \DateTime)) |
|
@@ 1468-1474 (lines=7) @@
|
| 1465 |
|
return $this->Link_ID->qstr($value->format('Y-m-d')); |
| 1466 |
|
} |
| 1467 |
|
return $this->Link_ID->DBDate($value); |
| 1468 |
|
case 'timestamp': |
| 1469 |
|
// if DateTime object given, convert it (NOT converting the timezone!) |
| 1470 |
|
if (is_object($value) && ($value instanceof \DateTime)) |
| 1471 |
|
{ |
| 1472 |
|
return $this->Link_ID->qstr($value->format('Y-m-d H:i:s')); |
| 1473 |
|
} |
| 1474 |
|
return $this->Link_ID->DBTimeStamp($value); |
| 1475 |
|
} |
| 1476 |
|
if (is_array($value)) |
| 1477 |
|
{ |