This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
phptsmadmin/application/classes/ormtsm.php

36 lines
986 B
PHP
Raw Normal View History

2011-04-05 23:12:31 +00:00
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class extends Kohana's [ORM] class to create defaults for TSM.
*
2011-05-23 10:01:27 +00:00
* @package PTA
2011-04-05 23:12:31 +00:00
* @subpackage Core
* @category ORM
* @author Deon George
* @copyright (c) 2010 phpTSMadmin Development Team
* @license http://dev.osbill.net/license.html
*/
2011-05-23 10:01:27 +00:00
class ORMTSM extends ORM {
2011-04-05 23:12:31 +00:00
// Suppress ORMs inclusion of <table_name>.*
protected $_disable_wild_select = TRUE;
2011-04-07 05:03:05 +00:00
// Suppress ORMs inclusion of <table_name>. to column joins
protected $_disable_join_table_name = TRUE;
2011-04-08 05:34:04 +00:00
// Suppress ORMs use of limit
protected $_disable_limit = TRUE;
2011-04-05 23:12:31 +00:00
// Enable the formating of columns
protected $_object_formated = array();
protected $_formated = FALSE;
protected $_formats = array();
2011-05-23 10:01:27 +00:00
// Load our values into the ORM object
public function load_object(array $values) {
return parent::_load_values($values);
2011-04-05 23:12:31 +00:00
}
public static function date($date,$format) {
return date($format,strtotime($date));
}
}
?>