Show
Ignore:
Timestamp:
11/18/2007 03:13:52 AM (13 months ago)
Author:
Shadowhand
Message:

Batch of core changes:

  • Added a configuration file for profiler, to enable/disable specific profiler information
  • Implemented configuration handling in Profiler and views/kohana_profiler.php
  • Added system/models/form.php and views/kohana_form.php, see: http://kohanaphp.com/tutorials/quick_forms.html
  • text::random('unique') now uses sha1, instead of md5
  • Added a couple of missing connect() calls in Database
  • Added Database::list_fields() and Database_Mysql::list_fields()
  • Fixed Database_Mysql::escape_table()
  • Changed Loader::helper() to just do a Log::add('debug') instead of actually loading the helper
  • Updated some comment styles to prepare for Kodoc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Database.php

    r1166 r1168  
    728728                        $table = $this->from[0]; 
    729729                } 
    730                 $sql = $this->driver->update($this->config['table_prefix'].$table, $this->set, $this->where); 
     730 
     731                $table = $this->driver->escape_table($this->config['table_prefix'].$table); 
     732 
     733                $sql = $this->driver->update($table, $this->set, $this->where); 
    731734 
    732735                $this->reset_write(); 
     
    862865        public function list_tables() 
    863866        { 
    864                 $this->link OR $this->driver->connect(); 
     867                $this->link or $this->connect(); 
    865868 
    866869                $this->reset_select(); 
     
    928931        public function field_data($table ='') 
    929932        { 
     933                $this->link or $this->connect(); 
     934 
    930935                return $this->driver->field_data($table); 
     936        } 
     937 
     938        /* 
     939         * Method: list_fields 
     940         *  Get the field data for a database table, along with the field's attributes. 
     941         * 
     942         * Parameters: 
     943         *  table - table name 
     944         * 
     945         * Returns: 
     946         *  Array containing the field data 
     947         */ 
     948        public function list_fields($table ='') 
     949        { 
     950                $this->link or $this->connect(); 
     951 
     952                return $this->driver->list_fields($table); 
    931953        } 
    932954