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