1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-11 08:34:59 +02:00

removed PHP 5.1 support; removed DibiVariable & IDibiVariable

This commit is contained in:
David Grudl
2009-11-16 01:44:10 +01:00
parent 8586eb8e29
commit 75ede18f94
8 changed files with 26 additions and 134 deletions

View File

@@ -636,12 +636,9 @@ class DibiResult extends DibiObject implements IDataSource
} elseif (is_numeric($value)) { // single timestamp
return date($format, $value);
} elseif (class_exists('DateTime', FALSE)) { // since PHP 5.2
} else {
$value = new DateTime($value);
return $value->format($format);
} else {
return date($format, strtotime($value));
}
case dibi::BOOL: