/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/system/database/drivers/mysqli/mysqli_utility.php

  • Committer: galaxyAbstractor
  • Date: 2013-04-10 15:49:32 UTC
  • mto: (19.1.5 lenasys)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: galaxyabstractor@gmail.com-20130410154932-4vizlzk0ar5gykvi
* Added an simple admin panel to the codeviewer-cmssy stuff
* Redesigned a bit like the mockups - still stuff to come
* Implemented the codeviewer + admin panel again using the Framework CodeIgniter instead 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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              ExpressionEngine Dev Team
 
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
 * MySQLi Utility Class
 
20
 *
 
21
 * @category    Database
 
22
 * @author              ExpressionEngine Dev Team
 
23
 * @link                http://codeigniter.com/user_guide/database/
 
24
 */
 
25
class CI_DB_mysqli_utility extends CI_DB_utility {
 
26
 
 
27
        /**
 
28
         * List databases
 
29
         *
 
30
         * @access      private
 
31
         * @return      bool
 
32
         */
 
33
        function _list_databases()
 
34
        {
 
35
                return "SHOW DATABASES";
 
36
        }
 
37
 
 
38
        // --------------------------------------------------------------------
 
39
 
 
40
        /**
 
41
         * Optimize table query
 
42
         *
 
43
         * Generates a platform-specific query so that a table can be optimized
 
44
         *
 
45
         * @access      private
 
46
         * @param       string  the table name
 
47
         * @return      object
 
48
         */
 
49
        function _optimize_table($table)
 
50
        {
 
51
                return "OPTIMIZE TABLE ".$this->db->_escape_identifiers($table);
 
52
        }
 
53
 
 
54
        // --------------------------------------------------------------------
 
55
 
 
56
        /**
 
57
         * Repair table query
 
58
         *
 
59
         * Generates a platform-specific query so that a table can be repaired
 
60
         *
 
61
         * @access      private
 
62
         * @param       string  the table name
 
63
         * @return      object
 
64
         */
 
65
        function _repair_table($table)
 
66
        {
 
67
                return "REPAIR TABLE ".$this->db->_escape_identifiers($table);
 
68
        }
 
69
 
 
70
        // --------------------------------------------------------------------
 
71
 
 
72
        /**
 
73
         * MySQLi Export
 
74
         *
 
75
         * @access      private
 
76
         * @param       array   Preferences
 
77
         * @return      mixed
 
78
         */
 
79
        function _backup($params = array())
 
80
        {
 
81
                // Currently unsupported
 
82
                return $this->db->display_error('db_unsuported_feature');
 
83
        }
 
84
}
 
85
 
 
86
/* End of file mysqli_utility.php */
 
87
/* Location: ./system/database/drivers/mysqli/mysqli_utility.php */
 
 
b'\\ No newline at end of file'