]> jfr.im git - z_archive/KronOS.git/blob - system/database/drivers/cubrid/cubrid_utility.php
Fixed account.php (this ain't python bro); fixed permissions because I'm picky.
[z_archive/KronOS.git] / system / database / drivers / cubrid / cubrid_utility.php
1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 5.1.6 or newer
6 *
7 * @package CodeIgniter
8 * @author Esen Sagynov
9 * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
10 * @license http://codeigniter.com/user_guide/license.html
11 * @link http://codeigniter.com
12 * @since Version 1.0
13 * @filesource
14 */
15
16 // ------------------------------------------------------------------------
17
18 /**
19 * CUBRID Utility Class
20 *
21 * @category Database
22 * @author Esen Sagynov
23 * @link http://codeigniter.com/user_guide/database/
24 */
25 class CI_DB_cubrid_utility extends CI_DB_utility {
26
27 /**
28 * List databases
29 *
30 * @access private
31 * @return array
32 */
33 function _list_databases()
34 {
35 // CUBRID does not allow to see the list of all databases on the
36 // server. It is the way its architecture is designed. Every
37 // database is independent and isolated.
38 // For this reason we can return only the name of the currect
39 // connected database.
40 if ($this->conn_id)
41 {
42 return "SELECT '" . $this->database . "'";
43 }
44 else
45 {
46 return FALSE;
47 }
48 }
49
50 // --------------------------------------------------------------------
51
52 /**
53 * Optimize table query
54 *
55 * Generates a platform-specific query so that a table can be optimized
56 *
57 * @access private
58 * @param string the table name
59 * @return object
60 * @link http://www.cubrid.org/manual/840/en/Optimize%20Database
61 */
62 function _optimize_table($table)
63 {
64 // No SQL based support in CUBRID as of version 8.4.0. Database or
65 // table optimization can be performed using CUBRID Manager
66 // database administration tool. See the link above for more info.
67 return FALSE;
68 }
69
70 // --------------------------------------------------------------------
71
72 /**
73 * Repair table query
74 *
75 * Generates a platform-specific query so that a table can be repaired
76 *
77 * @access private
78 * @param string the table name
79 * @return object
80 * @link http://www.cubrid.org/manual/840/en/Checking%20Database%20Consistency
81 */
82 function _repair_table($table)
83 {
84 // Not supported in CUBRID as of version 8.4.0. Database or
85 // table consistency can be checked using CUBRID Manager
86 // database administration tool. See the link above for more info.
87 return FALSE;
88 }
89
90 // --------------------------------------------------------------------
91 /**
92 * CUBRID Export
93 *
94 * @access private
95 * @param array Preferences
96 * @return mixed
97 */
98 function _backup($params = array())
99 {
100 // No SQL based support in CUBRID as of version 8.4.0. Database or
101 // table backup can be performed using CUBRID Manager
102 // database administration tool.
103 return $this->db->display_error('db_unsuported_feature');
104 }
105 }
106
107 /* End of file cubrid_utility.php */
108 /* Location: ./system/database/drivers/cubrid/cubrid_utility.php */