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

@@ -60,12 +60,9 @@ class DibiRow extends ArrayObject
} elseif (is_numeric($time)) { // single timestamp
return date($format, $time);
} elseif (class_exists('DateTime', FALSE)) { // since PHP 5.2
} else {
$time = new DateTime($time);
return $time->format($format);
} else {
return date($format, strtotime($time));
}
}