Some more performance improvements and caching
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user