Some more performance improvements and caching

This commit is contained in:
Deon George
2012-12-07 14:33:16 +11:00
parent df498a76a7
commit 7a3539cb95
13 changed files with 475 additions and 203 deletions

View File

@@ -163,5 +163,11 @@ abstract class ORM_TSM extends ORM {
public static function date($date,$format) {
return $date ? date($format,strtotime($date)) : '';
}
protected function datatypemap($type) {
$x = Kohana::$config->load('config')->tsmdatatypes;
return array_key_exists($type,$x) ? $x[$type] : $x;
}
}
?>