codeigniter_vender 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +10 -0
- data/README.md +39 -0
- data/Rakefile +4 -2
- data/VERSION +1 -1
- data/bin/ci +5 -0
- data/codeigniter_vender.gemspec +355 -344
- data/lib/codeigniter/commands/app.rb +5 -0
- data/lib/codeigniter/commands/help.rb +7 -0
- data/lib/codeigniter/commands.rb +19 -0
- data/lib/{tasks/app.rake → codeigniter/tasks/ci.rake} +1 -1
- data/lib/codeigniter_vender.rb +26 -1
- data/lib/generators/base.rb +11 -0
- data/{generators → lib/generators/ci}/ci_app/USAGE +0 -0
- data/lib/generators/ci/ci_app/ci_app_generator.rb +10 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/.htaccess +1 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/cache/.htaccess +1 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/cache}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/autoload.php +18 -18
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/config.php +62 -31
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/constants.php +7 -7
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/database.php +20 -13
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/doctypes.php +1 -1
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/config/foreign_chars.php +64 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/hooks.php +1 -1
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/controllers → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/config}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/mimes.php +5 -5
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/config/profiler.php +17 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/routes.php +7 -9
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/smileys.php +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/user_agents.php +7 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/controllers}/index.html +0 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/controllers/welcome.php +17 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/helpers → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/core}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/errors/error_404.php +1 -1
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/errors/error_db.php +1 -1
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/errors/error_general.php +1 -1
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/errors/error_php.php +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/hooks → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/errors}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/helpers}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/language/english → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/hooks}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/models → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/language/english}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/views → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/libraries}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/cache → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/logs}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/models}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/third_party}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/views}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/views/welcome_message.php +6 -4
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/index.php +166 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/license.txt +1 -2
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/.htaccess +1 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/Benchmark.php +5 -5
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core/CodeIgniter.php +340 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core/Common.php +503 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/Config.php +126 -57
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core/Controller.php +67 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/Exceptions.php +24 -20
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/Hooks.php +14 -15
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core/Input.php +652 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Language.php → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core/Lang.php} +33 -16
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/Loader.php +374 -364
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core/Model.php +56 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/Output.php +140 -93
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/Router.php +185 -115
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/URI.php +78 -58
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core/Utf8.php +165 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/DB.php +32 -27
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/DB_active_rec.php +478 -225
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/DB_cache.php +30 -30
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/DB_driver.php +199 -175
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/DB_forge.php +43 -36
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/DB_result.php +115 -52
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/DB_utility.php +69 -44
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers/mssql}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mssql/mssql_driver.php +64 -67
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mssql/mssql_forge.php +19 -19
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mssql/mssql_result.php +14 -14
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mssql/mssql_utility.php +3 -38
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers/mysql}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysql/mysql_driver.php +155 -63
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysql/mysql_forge.php +36 -21
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysql/mysql_result.php +14 -14
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysql/mysql_utility.php +25 -60
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers/mysqli}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysqli/mysqli_driver.php +131 -62
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysqli/mysqli_forge.php +17 -17
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysqli/mysqli_result.php +14 -14
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysqli/mysqli_utility.php +4 -40
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers/oci8}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/oci8/oci8_driver.php +55 -58
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/oci8/oci8_forge.php +18 -18
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/oci8/oci8_result.php +17 -17
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/oci8/oci8_utility.php +2 -37
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers/odbc}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/odbc/odbc_driver.php +58 -61
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/odbc/odbc_forge.php +21 -21
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/odbc/odbc_result.php +11 -11
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/odbc/odbc_utility.php +5 -50
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/fonts → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers/postgre}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/postgre/postgre_driver.php +61 -61
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/postgre/postgre_forge.php +84 -33
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/postgre/postgre_result.php +11 -11
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/postgre/postgre_utility.php +2 -38
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers/sqlite}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/sqlite/sqlite_driver.php +65 -65
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/sqlite/sqlite_forge.php +18 -18
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/sqlite/sqlite_result.php +12 -12
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/sqlite/sqlite_utility.php +3 -48
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/fonts}/index.html +0 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/fonts/texb.ttf +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/array_helper.php +46 -6
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/helpers/captcha_helper.php +246 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/cookie_helper.php +7 -48
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/date_helper.php +90 -90
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/directory_helper.php +18 -22
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/download_helper.php +8 -8
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/email_helper.php +4 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/file_helper.php +45 -39
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/form_helper.php +59 -35
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/html_helper.php +20 -14
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/language → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/helpers}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/inflector_helper.php +27 -16
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/language_helper.php +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/number_helper.php +15 -14
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/path_helper.php +7 -7
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/security_helper.php +49 -15
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/smiley_helper.php +29 -23
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/string_helper.php +45 -28
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/text_helper.php +195 -124
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/typography_helper.php +32 -9
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/url_helper.php +17 -15
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/xml_helper.php +21 -12
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system}/index.html +0 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/language/english/calendar_lang.php +51 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/date_lang.php +1 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/db_lang.php +2 -1
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/email_lang.php +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/form_validation_lang.php +5 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/ftp_lang.php +1 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/imglib_lang.php +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/logs → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/language/english}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/number_lang.php +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/profiler_lang.php +4 -1
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/unit_test_lang.php +1 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/upload_lang.php +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/plugins → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/language}/index.html +0 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Cache/Cache.php +216 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Cache/drivers/Cache_apc.php +151 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Cache/drivers/Cache_dummy.php +129 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Cache/drivers/Cache_file.php +196 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Cache/drivers/Cache_memcached.php +209 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Calendar.php +81 -83
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Cart.php +73 -73
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Driver.php +229 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Email.php +209 -188
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Encrypt.php +78 -15
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Form_validation.php +265 -228
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Ftp.php +46 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Image_lib.php +36 -43
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Javascript.php +871 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Log.php +29 -32
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Pagination.php +64 -29
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Parser.php +63 -24
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Profiler.php +502 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Security.php +737 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Session.php +33 -16
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Sha1.php +14 -14
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Table.php +172 -84
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Trackback.php +129 -128
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Typography.php +84 -80
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Unit_test.php +105 -69
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Upload.php +273 -235
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/User_agent.php +150 -115
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Xmlrpc.php +193 -179
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Xmlrpcs.php +91 -83
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Zip.php +110 -46
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/images → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries}/index.html +0 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/javascript/Jquery.php +1071 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/changelog.html +182 -29
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/active_record.html +48 -48
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/caching.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/call_function.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/configuration.html +14 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/connecting.html +5 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/examples.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/fields.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/forge.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/helpers.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/index.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/queries.html +4 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/results.html +17 -17
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/table_data.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/transactions.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/utilities.html +21 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/doc_style/index.html +4 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/doc_style/template.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/alternative_php.html +4 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/ancillary_classes.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/autoloader.html +3 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/caching.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/common_functions.html +9 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/controllers.html +32 -29
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/core_classes.html +10 -9
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/general/creating_drivers.html +100 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/creating_libraries.html +8 -13
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/credits.html +4 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/profiling.html → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/general/drivers.html} +21 -21
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/errors.html +5 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/helpers.html +4 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/hooks.html +2 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/libraries.html +9 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/managing_apps.html +24 -24
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/models.html +13 -13
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/general/profiling.html +176 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/quick_reference.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/requirements.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/reserved_names.html +4 -33
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/routing.html +7 -17
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/security.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/styleguide.html +71 -79
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/urls.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/views.html +13 -13
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/array_helper.html +53 -2
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/helpers/captcha_helper.html +195 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/helpers/cookie_helper.html +107 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/date_helper.html +6 -6
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/directory_helper.html +6 -6
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/download_helper.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/email_helper.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/file_helper.html +5 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/form_helper.html +9 -9
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/html_helper.html +6 -6
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/inflector_helper.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/language_helper.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/number_helper.html +9 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/path_helper.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/security_helper.html +12 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/smiley_helper.html +12 -12
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/string_helper.html +11 -9
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/text_helper.html +21 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/typography_helper.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/url_helper.html +7 -8
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/xml_helper.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/appflowchart.gif +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/arrow.gif +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/ci_logo.jpg +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/ci_logo_flame.jpg +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/ci_quick_ref.png +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/codeigniter_1.7.1_helper_reference.pdf +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/codeigniter_1.7.1_helper_reference.png +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/codeigniter_1.7.1_library_reference.pdf +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/codeigniter_1.7.1_library_reference.png +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/file.gif +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/folder.gif +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/nav_bg_darker.jpg +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/nav_separator_darker.jpg +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/nav_toggle_darker.jpg +0 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/images/reactor-bullet.png +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/smile.gif +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/transparent.gif +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/index.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/downloads.html +10 -6
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/index.html +10 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/troubleshooting.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_120.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_130.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_131.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_132.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_133.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_140.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_141.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_150.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_152.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_153.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_154.html +5 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_160.html +6 -6
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_161.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_162.html +5 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_163.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_170.html +5 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_171.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_172.html +7 -3
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/installation/upgrade_200.html +131 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_b11.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrading.html +3 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/benchmark.html +4 -4
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/libraries/caching.html +193 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/calendar.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/cart.html +345 -345
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/config.html +4 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/email.html +4 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/encryption.html +49 -7
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/file_uploading.html +15 -15
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/form_validation.html +22 -25
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/ftp.html +21 -8
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/image_lib.html +4 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/input.html +69 -31
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/libraries/javascript.html +246 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/language.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/loader.html +56 -15
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/output.html +19 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/pagination.html +19 -8
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/parser.html +6 -2
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/libraries/security.html +135 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/sessions.html +18 -7
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/table.html +33 -10
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/trackback.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/typography.html +5 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/unit_testing.html +27 -6
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/uri.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/user_agent.html +27 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/xmlrpc.html +25 -23
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/zip.html +13 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/license.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/nav/hacks.txt +2 -1
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/nav/moo.fx.js +1 -37
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/nav/nav.js +27 -24
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/nav/prototype.lite.js +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/nav/user_guide_menu.js +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/appflow.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/at_a_glance.html +5 -15
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/cheatsheets.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/features.html +3 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/getting_started.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/goals.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/index.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/mvc.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/toc.html +14 -15
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/userguide.css +9 -0
- data/{generators → lib/generators/ci}/ci_app/templates/README +0 -0
- data/lib/generators/ci/ci_auth/USAGE +8 -0
- data/lib/generators/ci/ci_auth/ci_auth_generator.rb +11 -0
- data/lib/generators/ci/ci_auth/templates/auth.php +133 -0
- data/lib/generators/ci/ci_auth/templates/auth_model.php +52 -0
- data/lib/generators/ci/ci_auth/templates/login_form.php +29 -0
- data/{generators → lib/generators/ci}/ci_controller/USAGE +0 -0
- data/{generators → lib/generators/ci}/ci_controller/ci_controller_generator.rb +0 -0
- data/{generators → lib/generators/ci}/ci_controller/templates/ci_controller.php.erb +0 -0
- data/{generators → lib/generators/ci}/ci_controller/templates/ci_view.php.erb +0 -0
- data/{generators → lib/generators/ci}/ci_layout/USAGE +0 -0
- data/{generators → lib/generators/ci}/ci_layout/ci_layout_generator.rb +0 -0
- data/{generators → lib/generators/ci}/ci_layout/templates/application_layout.php.erb +0 -0
- data/{generators → lib/generators/ci}/ci_model/USAGE +0 -0
- data/{generators → lib/generators/ci}/ci_model/ci_model_generator.rb +0 -0
- data/{generators → lib/generators/ci}/ci_model/templates/ci_model.php.erb +0 -0
- data/{generators → lib/generators/ci}/ci_model/templates/model.rb +0 -0
- data/{generators → lib/generators/ci}/ci_model/templates/model_migration.rb.erb +0 -0
- metadata +358 -347
- data/README +0 -40
- data/generators/ci_app/ci_app_generator.rb +0 -12
- data/generators/ci_app/templates/CodeIgniter_1.7.2/index.php +0 -118
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/controllers/welcome.php +0 -17
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Base4.php +0 -69
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Base5.php +0 -56
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/CodeIgniter.php +0 -280
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Common.php +0 -421
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Compat.php +0 -93
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/fonts/texb.ttf +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/compatibility_helper.php +0 -498
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/calendar_lang.php +0 -51
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/scaffolding_lang.php +0 -17
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/validation_lang.php +0 -24
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Controller.php +0 -127
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Input.php +0 -1067
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Model.php +0 -83
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Profiler.php +0 -392
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Validation.php +0 -875
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/plugins/captcha_pi.php +0 -356
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/plugins/js_calendar_pi.php +0 -629
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/Scaffolding.php +0 -291
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/images/background.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/images/logo.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/index.html +0 -10
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/add.php +0 -32
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/delete.php +0 -9
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/edit.php +0 -33
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/footer.php +0 -10
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/header.php +0 -29
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/index.html +0 -10
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/no_data.php +0 -8
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/stylesheet.css +0 -143
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/view.php +0 -27
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/plugins.html +0 -127
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/scaffolding.html +0 -147
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/compatibility_helper.html +0 -118
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/cookie_helper.html +0 -147
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/validation.html +0 -740
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/moo.fx.pack.js +0 -241
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* CodeIgniter
|
|
4
4
|
*
|
|
5
|
-
* An open source application development framework for PHP
|
|
5
|
+
* An open source application development framework for PHP 5.1.6 or newer
|
|
6
6
|
*
|
|
7
7
|
* @package CodeIgniter
|
|
8
8
|
* @author ExpressionEngine Dev Team
|
|
9
|
-
* @copyright Copyright (c) 2008 -
|
|
9
|
+
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
|
|
10
10
|
* @license http://codeigniter.com/user_guide/license.html
|
|
11
11
|
* @link http://codeigniter.com
|
|
12
12
|
* @since Version 1.0
|
|
@@ -71,13 +71,13 @@ class CI_DB_driver {
|
|
|
71
71
|
var $limit_used;
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
|
|
75
75
|
/**
|
|
76
76
|
* Constructor. Accepts one parameter containing the database
|
|
77
77
|
* connection settings.
|
|
78
78
|
*
|
|
79
79
|
* @param array
|
|
80
|
-
*/
|
|
80
|
+
*/
|
|
81
81
|
function CI_DB_driver($params)
|
|
82
82
|
{
|
|
83
83
|
if (is_array($params))
|
|
@@ -90,7 +90,7 @@ class CI_DB_driver {
|
|
|
90
90
|
|
|
91
91
|
log_message('debug', 'Database Driver Class Initialized');
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
|
|
94
94
|
// --------------------------------------------------------------------
|
|
95
95
|
|
|
96
96
|
/**
|
|
@@ -99,7 +99,7 @@ class CI_DB_driver {
|
|
|
99
99
|
* @access private Called by the constructor
|
|
100
100
|
* @param mixed
|
|
101
101
|
* @return void
|
|
102
|
-
*/
|
|
102
|
+
*/
|
|
103
103
|
function initialize()
|
|
104
104
|
{
|
|
105
105
|
// If an existing connection resource is available
|
|
@@ -108,9 +108,9 @@ class CI_DB_driver {
|
|
|
108
108
|
{
|
|
109
109
|
return TRUE;
|
|
110
110
|
}
|
|
111
|
-
|
|
111
|
+
|
|
112
112
|
// ----------------------------------------------------------------
|
|
113
|
-
|
|
113
|
+
|
|
114
114
|
// Connect to the database and set the connection ID
|
|
115
115
|
$this->conn_id = ($this->pconnect == FALSE) ? $this->db_connect() : $this->db_pconnect();
|
|
116
116
|
|
|
@@ -118,7 +118,7 @@ class CI_DB_driver {
|
|
|
118
118
|
if ( ! $this->conn_id)
|
|
119
119
|
{
|
|
120
120
|
log_message('error', 'Unable to connect to the database');
|
|
121
|
-
|
|
121
|
+
|
|
122
122
|
if ($this->db_debug)
|
|
123
123
|
{
|
|
124
124
|
$this->display_error('db_unable_to_connect');
|
|
@@ -134,12 +134,12 @@ class CI_DB_driver {
|
|
|
134
134
|
if ( ! $this->db_select())
|
|
135
135
|
{
|
|
136
136
|
log_message('error', 'Unable to select database: '.$this->database);
|
|
137
|
-
|
|
137
|
+
|
|
138
138
|
if ($this->db_debug)
|
|
139
139
|
{
|
|
140
140
|
$this->display_error('db_unable_to_select', $this->database);
|
|
141
141
|
}
|
|
142
|
-
return FALSE;
|
|
142
|
+
return FALSE;
|
|
143
143
|
}
|
|
144
144
|
else
|
|
145
145
|
{
|
|
@@ -148,14 +148,14 @@ class CI_DB_driver {
|
|
|
148
148
|
{
|
|
149
149
|
return FALSE;
|
|
150
150
|
}
|
|
151
|
-
|
|
151
|
+
|
|
152
152
|
return TRUE;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
return TRUE;
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
|
|
159
159
|
// --------------------------------------------------------------------
|
|
160
160
|
|
|
161
161
|
/**
|
|
@@ -171,26 +171,26 @@ class CI_DB_driver {
|
|
|
171
171
|
if ( ! $this->_db_set_charset($this->char_set, $this->dbcollat))
|
|
172
172
|
{
|
|
173
173
|
log_message('error', 'Unable to set database connection charset: '.$this->char_set);
|
|
174
|
-
|
|
174
|
+
|
|
175
175
|
if ($this->db_debug)
|
|
176
176
|
{
|
|
177
177
|
$this->display_error('db_unable_to_set_charset', $this->char_set);
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
|
|
180
180
|
return FALSE;
|
|
181
181
|
}
|
|
182
|
-
|
|
182
|
+
|
|
183
183
|
return TRUE;
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
|
|
186
186
|
// --------------------------------------------------------------------
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
189
|
* The name of the platform in use (mysql, mssql, etc...)
|
|
190
190
|
*
|
|
191
191
|
* @access public
|
|
192
|
-
* @return string
|
|
193
|
-
*/
|
|
192
|
+
* @return string
|
|
193
|
+
*/
|
|
194
194
|
function platform()
|
|
195
195
|
{
|
|
196
196
|
return $this->dbdriver;
|
|
@@ -203,8 +203,8 @@ class CI_DB_driver {
|
|
|
203
203
|
* version of the database being used
|
|
204
204
|
*
|
|
205
205
|
* @access public
|
|
206
|
-
* @return string
|
|
207
|
-
*/
|
|
206
|
+
* @return string
|
|
207
|
+
*/
|
|
208
208
|
function version()
|
|
209
209
|
{
|
|
210
210
|
if (FALSE === ($sql = $this->_version()))
|
|
@@ -215,16 +215,22 @@ class CI_DB_driver {
|
|
|
215
215
|
}
|
|
216
216
|
return FALSE;
|
|
217
217
|
}
|
|
218
|
-
|
|
219
|
-
|
|
218
|
+
|
|
219
|
+
// Some DBs have functions that return the version, and don't run special
|
|
220
|
+
// SQL queries per se. In these instances, just return the result.
|
|
221
|
+
$driver_version_exceptions = array('oci8', 'sqlite');
|
|
222
|
+
|
|
223
|
+
if (in_array($this->dbdriver, $driver_version_exceptions))
|
|
220
224
|
{
|
|
221
225
|
return $sql;
|
|
222
226
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
227
|
+
else
|
|
228
|
+
{
|
|
229
|
+
$query = $this->query($sql);
|
|
230
|
+
return $query->row('ver');
|
|
231
|
+
}
|
|
226
232
|
}
|
|
227
|
-
|
|
233
|
+
|
|
228
234
|
// --------------------------------------------------------------------
|
|
229
235
|
|
|
230
236
|
/**
|
|
@@ -239,8 +245,8 @@ class CI_DB_driver {
|
|
|
239
245
|
* @access public
|
|
240
246
|
* @param string An SQL query string
|
|
241
247
|
* @param array An array of binding data
|
|
242
|
-
* @return mixed
|
|
243
|
-
*/
|
|
248
|
+
* @return mixed
|
|
249
|
+
*/
|
|
244
250
|
function query($sql, $binds = FALSE, $return_object = TRUE)
|
|
245
251
|
{
|
|
246
252
|
if ($sql == '')
|
|
@@ -255,10 +261,10 @@ class CI_DB_driver {
|
|
|
255
261
|
|
|
256
262
|
// Verify table prefix and replace if necessary
|
|
257
263
|
if ( ($this->dbprefix != '' AND $this->swap_pre != '') AND ($this->dbprefix != $this->swap_pre) )
|
|
258
|
-
{
|
|
264
|
+
{
|
|
259
265
|
$sql = preg_replace("/(\W)".$this->swap_pre."(\S+?)/", "\\1".$this->dbprefix."\\2", $sql);
|
|
260
266
|
}
|
|
261
|
-
|
|
267
|
+
|
|
262
268
|
// Is query caching enabled? If the query is a "read type"
|
|
263
269
|
// we will load the caching class and return the previously
|
|
264
270
|
// cached query if it exists
|
|
@@ -273,7 +279,7 @@ class CI_DB_driver {
|
|
|
273
279
|
}
|
|
274
280
|
}
|
|
275
281
|
}
|
|
276
|
-
|
|
282
|
+
|
|
277
283
|
// Compile binds if needed
|
|
278
284
|
if ($binds !== FALSE)
|
|
279
285
|
{
|
|
@@ -285,10 +291,10 @@ class CI_DB_driver {
|
|
|
285
291
|
{
|
|
286
292
|
$this->queries[] = $sql;
|
|
287
293
|
}
|
|
288
|
-
|
|
294
|
+
|
|
289
295
|
// Start the Query Timer
|
|
290
296
|
$time_start = list($sm, $ss) = explode(' ', microtime());
|
|
291
|
-
|
|
297
|
+
|
|
292
298
|
// Run the Query
|
|
293
299
|
if (FALSE === ($this->result_id = $this->simple_query($sql)))
|
|
294
300
|
{
|
|
@@ -296,7 +302,7 @@ class CI_DB_driver {
|
|
|
296
302
|
{
|
|
297
303
|
$this->query_times[] = 0;
|
|
298
304
|
}
|
|
299
|
-
|
|
305
|
+
|
|
300
306
|
// This will trigger a rollback if transactions are being used
|
|
301
307
|
$this->_trans_status = FALSE;
|
|
302
308
|
|
|
@@ -306,10 +312,10 @@ class CI_DB_driver {
|
|
|
306
312
|
// additional queries before displaying the error
|
|
307
313
|
$error_no = $this->_error_number();
|
|
308
314
|
$error_msg = $this->_error_message();
|
|
309
|
-
|
|
315
|
+
|
|
310
316
|
// We call this function in order to roll-back queries
|
|
311
317
|
// if transactions are enabled. If we don't call this here
|
|
312
|
-
// the error message will trigger an exit, causing the
|
|
318
|
+
// the error message will trigger an exit, causing the
|
|
313
319
|
// transactions to remain in limbo.
|
|
314
320
|
$this->trans_complete();
|
|
315
321
|
|
|
@@ -323,10 +329,10 @@ class CI_DB_driver {
|
|
|
323
329
|
)
|
|
324
330
|
);
|
|
325
331
|
}
|
|
326
|
-
|
|
332
|
+
|
|
327
333
|
return FALSE;
|
|
328
334
|
}
|
|
329
|
-
|
|
335
|
+
|
|
330
336
|
// Stop and aggregate the query time results
|
|
331
337
|
$time_end = list($em, $es) = explode(' ', microtime());
|
|
332
338
|
$this->benchmark += ($em + $es) - ($sm + $ss);
|
|
@@ -335,10 +341,10 @@ class CI_DB_driver {
|
|
|
335
341
|
{
|
|
336
342
|
$this->query_times[] = ($em + $es) - ($sm + $ss);
|
|
337
343
|
}
|
|
338
|
-
|
|
344
|
+
|
|
339
345
|
// Increment the query counter
|
|
340
346
|
$this->query_count++;
|
|
341
|
-
|
|
347
|
+
|
|
342
348
|
// Was the query a "write" type?
|
|
343
349
|
// If so we'll simply return true
|
|
344
350
|
if ($this->is_write_type($sql) === TRUE)
|
|
@@ -349,10 +355,10 @@ class CI_DB_driver {
|
|
|
349
355
|
{
|
|
350
356
|
$this->CACHE->delete();
|
|
351
357
|
}
|
|
352
|
-
|
|
358
|
+
|
|
353
359
|
return TRUE;
|
|
354
360
|
}
|
|
355
|
-
|
|
361
|
+
|
|
356
362
|
// Return TRUE if we don't need to create a result object
|
|
357
363
|
// Currently only the Oracle driver uses this when stored
|
|
358
364
|
// procedures are used
|
|
@@ -360,11 +366,11 @@ class CI_DB_driver {
|
|
|
360
366
|
{
|
|
361
367
|
return TRUE;
|
|
362
368
|
}
|
|
363
|
-
|
|
364
|
-
// Load and instantiate the result driver
|
|
365
|
-
|
|
366
|
-
$driver
|
|
367
|
-
$RES
|
|
369
|
+
|
|
370
|
+
// Load and instantiate the result driver
|
|
371
|
+
|
|
372
|
+
$driver = $this->load_rdriver();
|
|
373
|
+
$RES = new $driver();
|
|
368
374
|
$RES->conn_id = $this->conn_id;
|
|
369
375
|
$RES->result_id = $this->result_id;
|
|
370
376
|
|
|
@@ -375,10 +381,10 @@ class CI_DB_driver {
|
|
|
375
381
|
$RES->limit_used = $this->limit_used;
|
|
376
382
|
$this->stmt_id = FALSE;
|
|
377
383
|
}
|
|
378
|
-
|
|
384
|
+
|
|
379
385
|
// oci8 vars must be set before calling this
|
|
380
386
|
$RES->num_rows = $RES->num_rows();
|
|
381
|
-
|
|
387
|
+
|
|
382
388
|
// Is query caching enabled? If so, we'll serialize the
|
|
383
389
|
// result object and save it to a cache file.
|
|
384
390
|
if ($this->cache_on == TRUE AND $this->_cache_init())
|
|
@@ -390,17 +396,17 @@ class CI_DB_driver {
|
|
|
390
396
|
// result object, so we'll have to compile the data
|
|
391
397
|
// and save it)
|
|
392
398
|
$CR = new CI_DB_result();
|
|
393
|
-
$CR->num_rows
|
|
399
|
+
$CR->num_rows = $RES->num_rows();
|
|
394
400
|
$CR->result_object = $RES->result_object();
|
|
395
401
|
$CR->result_array = $RES->result_array();
|
|
396
|
-
|
|
402
|
+
|
|
397
403
|
// Reset these since cached objects can not utilize resource IDs.
|
|
398
404
|
$CR->conn_id = NULL;
|
|
399
405
|
$CR->result_id = NULL;
|
|
400
406
|
|
|
401
407
|
$this->CACHE->write($sql, $CR);
|
|
402
408
|
}
|
|
403
|
-
|
|
409
|
+
|
|
404
410
|
return $RES;
|
|
405
411
|
}
|
|
406
412
|
|
|
@@ -410,8 +416,8 @@ class CI_DB_driver {
|
|
|
410
416
|
* Load the result drivers
|
|
411
417
|
*
|
|
412
418
|
* @access public
|
|
413
|
-
* @return string
|
|
414
|
-
*/
|
|
419
|
+
* @return string the name of the result class
|
|
420
|
+
*/
|
|
415
421
|
function load_rdriver()
|
|
416
422
|
{
|
|
417
423
|
$driver = 'CI_DB_'.$this->dbdriver.'_result';
|
|
@@ -421,10 +427,10 @@ class CI_DB_driver {
|
|
|
421
427
|
include_once(BASEPATH.'database/DB_result'.EXT);
|
|
422
428
|
include_once(BASEPATH.'database/drivers/'.$this->dbdriver.'/'.$this->dbdriver.'_result'.EXT);
|
|
423
429
|
}
|
|
424
|
-
|
|
430
|
+
|
|
425
431
|
return $driver;
|
|
426
432
|
}
|
|
427
|
-
|
|
433
|
+
|
|
428
434
|
// --------------------------------------------------------------------
|
|
429
435
|
|
|
430
436
|
/**
|
|
@@ -435,8 +441,8 @@ class CI_DB_driver {
|
|
|
435
441
|
*
|
|
436
442
|
* @access public
|
|
437
443
|
* @param string the sql query
|
|
438
|
-
* @return mixed
|
|
439
|
-
*/
|
|
444
|
+
* @return mixed
|
|
445
|
+
*/
|
|
440
446
|
function simple_query($sql)
|
|
441
447
|
{
|
|
442
448
|
if ( ! $this->conn_id)
|
|
@@ -446,7 +452,7 @@ class CI_DB_driver {
|
|
|
446
452
|
|
|
447
453
|
return $this->_execute($sql);
|
|
448
454
|
}
|
|
449
|
-
|
|
455
|
+
|
|
450
456
|
// --------------------------------------------------------------------
|
|
451
457
|
|
|
452
458
|
/**
|
|
@@ -454,8 +460,8 @@ class CI_DB_driver {
|
|
|
454
460
|
* This permits transactions to be disabled at run-time.
|
|
455
461
|
*
|
|
456
462
|
* @access public
|
|
457
|
-
* @return void
|
|
458
|
-
*/
|
|
463
|
+
* @return void
|
|
464
|
+
*/
|
|
459
465
|
function trans_off()
|
|
460
466
|
{
|
|
461
467
|
$this->trans_enabled = FALSE;
|
|
@@ -471,23 +477,23 @@ class CI_DB_driver {
|
|
|
471
477
|
* a failure of one group will not affect any others
|
|
472
478
|
*
|
|
473
479
|
* @access public
|
|
474
|
-
* @return void
|
|
475
|
-
*/
|
|
480
|
+
* @return void
|
|
481
|
+
*/
|
|
476
482
|
function trans_strict($mode = TRUE)
|
|
477
483
|
{
|
|
478
484
|
$this->trans_strict = is_bool($mode) ? $mode : TRUE;
|
|
479
485
|
}
|
|
480
|
-
|
|
486
|
+
|
|
481
487
|
// --------------------------------------------------------------------
|
|
482
488
|
|
|
483
489
|
/**
|
|
484
490
|
* Start Transaction
|
|
485
491
|
*
|
|
486
492
|
* @access public
|
|
487
|
-
* @return void
|
|
488
|
-
*/
|
|
493
|
+
* @return void
|
|
494
|
+
*/
|
|
489
495
|
function trans_start($test_mode = FALSE)
|
|
490
|
-
{
|
|
496
|
+
{
|
|
491
497
|
if ( ! $this->trans_enabled)
|
|
492
498
|
{
|
|
493
499
|
return FALSE;
|
|
@@ -499,7 +505,7 @@ class CI_DB_driver {
|
|
|
499
505
|
$this->_trans_depth += 1;
|
|
500
506
|
return;
|
|
501
507
|
}
|
|
502
|
-
|
|
508
|
+
|
|
503
509
|
$this->trans_begin($test_mode);
|
|
504
510
|
}
|
|
505
511
|
|
|
@@ -509,27 +515,27 @@ class CI_DB_driver {
|
|
|
509
515
|
* Complete Transaction
|
|
510
516
|
*
|
|
511
517
|
* @access public
|
|
512
|
-
* @return bool
|
|
513
|
-
*/
|
|
518
|
+
* @return bool
|
|
519
|
+
*/
|
|
514
520
|
function trans_complete()
|
|
515
521
|
{
|
|
516
522
|
if ( ! $this->trans_enabled)
|
|
517
523
|
{
|
|
518
524
|
return FALSE;
|
|
519
525
|
}
|
|
520
|
-
|
|
526
|
+
|
|
521
527
|
// When transactions are nested we only begin/commit/rollback the outermost ones
|
|
522
528
|
if ($this->_trans_depth > 1)
|
|
523
529
|
{
|
|
524
530
|
$this->_trans_depth -= 1;
|
|
525
531
|
return TRUE;
|
|
526
532
|
}
|
|
527
|
-
|
|
533
|
+
|
|
528
534
|
// The query() function will set this flag to FALSE in the event that a query failed
|
|
529
535
|
if ($this->_trans_status === FALSE)
|
|
530
536
|
{
|
|
531
537
|
$this->trans_rollback();
|
|
532
|
-
|
|
538
|
+
|
|
533
539
|
// If we are NOT running in strict mode, we will reset
|
|
534
540
|
// the _trans_status flag so that subsequent groups of transactions
|
|
535
541
|
// will be permitted.
|
|
@@ -541,7 +547,7 @@ class CI_DB_driver {
|
|
|
541
547
|
log_message('debug', 'DB Transaction Failure');
|
|
542
548
|
return FALSE;
|
|
543
549
|
}
|
|
544
|
-
|
|
550
|
+
|
|
545
551
|
$this->trans_commit();
|
|
546
552
|
return TRUE;
|
|
547
553
|
}
|
|
@@ -552,8 +558,8 @@ class CI_DB_driver {
|
|
|
552
558
|
* Lets you retrieve the transaction flag to determine if it has failed
|
|
553
559
|
*
|
|
554
560
|
* @access public
|
|
555
|
-
* @return bool
|
|
556
|
-
*/
|
|
561
|
+
* @return bool
|
|
562
|
+
*/
|
|
557
563
|
function trans_status()
|
|
558
564
|
{
|
|
559
565
|
return $this->_trans_status;
|
|
@@ -567,20 +573,20 @@ class CI_DB_driver {
|
|
|
567
573
|
* @access public
|
|
568
574
|
* @param string the sql statement
|
|
569
575
|
* @param array an array of bind data
|
|
570
|
-
* @return string
|
|
571
|
-
*/
|
|
576
|
+
* @return string
|
|
577
|
+
*/
|
|
572
578
|
function compile_binds($sql, $binds)
|
|
573
579
|
{
|
|
574
580
|
if (strpos($sql, $this->bind_marker) === FALSE)
|
|
575
581
|
{
|
|
576
582
|
return $sql;
|
|
577
583
|
}
|
|
578
|
-
|
|
584
|
+
|
|
579
585
|
if ( ! is_array($binds))
|
|
580
586
|
{
|
|
581
587
|
$binds = array($binds);
|
|
582
588
|
}
|
|
583
|
-
|
|
589
|
+
|
|
584
590
|
// Get the sql segments around the bind markers
|
|
585
591
|
$segments = explode($this->bind_marker, $sql);
|
|
586
592
|
|
|
@@ -601,7 +607,7 @@ class CI_DB_driver {
|
|
|
601
607
|
|
|
602
608
|
return $result;
|
|
603
609
|
}
|
|
604
|
-
|
|
610
|
+
|
|
605
611
|
// --------------------------------------------------------------------
|
|
606
612
|
|
|
607
613
|
/**
|
|
@@ -609,8 +615,8 @@ class CI_DB_driver {
|
|
|
609
615
|
*
|
|
610
616
|
* @access public
|
|
611
617
|
* @param string An SQL query string
|
|
612
|
-
* @return boolean
|
|
613
|
-
*/
|
|
618
|
+
* @return boolean
|
|
619
|
+
*/
|
|
614
620
|
function is_write_type($sql)
|
|
615
621
|
{
|
|
616
622
|
if ( ! preg_match('/^\s*"?(SET|INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|TRUNCATE|LOAD DATA|COPY|ALTER|GRANT|REVOKE|LOCK|UNLOCK)\s+/i', $sql))
|
|
@@ -619,7 +625,7 @@ class CI_DB_driver {
|
|
|
619
625
|
}
|
|
620
626
|
return TRUE;
|
|
621
627
|
}
|
|
622
|
-
|
|
628
|
+
|
|
623
629
|
// --------------------------------------------------------------------
|
|
624
630
|
|
|
625
631
|
/**
|
|
@@ -627,34 +633,34 @@ class CI_DB_driver {
|
|
|
627
633
|
*
|
|
628
634
|
* @access public
|
|
629
635
|
* @param integer The number of decimal places
|
|
630
|
-
* @return integer
|
|
631
|
-
*/
|
|
636
|
+
* @return integer
|
|
637
|
+
*/
|
|
632
638
|
function elapsed_time($decimals = 6)
|
|
633
639
|
{
|
|
634
640
|
return number_format($this->benchmark, $decimals);
|
|
635
641
|
}
|
|
636
|
-
|
|
642
|
+
|
|
637
643
|
// --------------------------------------------------------------------
|
|
638
644
|
|
|
639
645
|
/**
|
|
640
646
|
* Returns the total number of queries
|
|
641
647
|
*
|
|
642
648
|
* @access public
|
|
643
|
-
* @return integer
|
|
644
|
-
*/
|
|
649
|
+
* @return integer
|
|
650
|
+
*/
|
|
645
651
|
function total_queries()
|
|
646
652
|
{
|
|
647
653
|
return $this->query_count;
|
|
648
654
|
}
|
|
649
|
-
|
|
655
|
+
|
|
650
656
|
// --------------------------------------------------------------------
|
|
651
657
|
|
|
652
658
|
/**
|
|
653
659
|
* Returns the last query that was executed
|
|
654
660
|
*
|
|
655
661
|
* @access public
|
|
656
|
-
* @return void
|
|
657
|
-
*/
|
|
662
|
+
* @return void
|
|
663
|
+
*/
|
|
658
664
|
function last_query()
|
|
659
665
|
{
|
|
660
666
|
return end($this->queries);
|
|
@@ -670,8 +676,8 @@ class CI_DB_driver {
|
|
|
670
676
|
*
|
|
671
677
|
* @access public
|
|
672
678
|
* @param string
|
|
673
|
-
* @return mixed
|
|
674
|
-
*/
|
|
679
|
+
* @return mixed
|
|
680
|
+
*/
|
|
675
681
|
function escape($str)
|
|
676
682
|
{
|
|
677
683
|
if (is_string($str))
|
|
@@ -691,24 +697,24 @@ class CI_DB_driver {
|
|
|
691
697
|
}
|
|
692
698
|
|
|
693
699
|
// --------------------------------------------------------------------
|
|
694
|
-
|
|
700
|
+
|
|
695
701
|
/**
|
|
696
702
|
* Escape LIKE String
|
|
697
703
|
*
|
|
698
704
|
* Calls the individual driver for platform
|
|
699
705
|
* specific escaping for LIKE conditions
|
|
700
|
-
*
|
|
706
|
+
*
|
|
701
707
|
* @access public
|
|
702
708
|
* @param string
|
|
703
709
|
* @return mixed
|
|
704
710
|
*/
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
711
|
+
function escape_like_str($str)
|
|
712
|
+
{
|
|
713
|
+
return $this->escape_str($str, TRUE);
|
|
708
714
|
}
|
|
709
715
|
|
|
710
716
|
// --------------------------------------------------------------------
|
|
711
|
-
|
|
717
|
+
|
|
712
718
|
/**
|
|
713
719
|
* Primary
|
|
714
720
|
*
|
|
@@ -717,12 +723,12 @@ class CI_DB_driver {
|
|
|
717
723
|
*
|
|
718
724
|
* @access public
|
|
719
725
|
* @param string the table name
|
|
720
|
-
* @return string
|
|
721
|
-
*/
|
|
726
|
+
* @return string
|
|
727
|
+
*/
|
|
722
728
|
function primary($table = '')
|
|
723
|
-
{
|
|
729
|
+
{
|
|
724
730
|
$fields = $this->list_fields($table);
|
|
725
|
-
|
|
731
|
+
|
|
726
732
|
if ( ! is_array($fields))
|
|
727
733
|
{
|
|
728
734
|
return FALSE;
|
|
@@ -737,8 +743,8 @@ class CI_DB_driver {
|
|
|
737
743
|
* Returns an array of table names
|
|
738
744
|
*
|
|
739
745
|
* @access public
|
|
740
|
-
* @return array
|
|
741
|
-
*/
|
|
746
|
+
* @return array
|
|
747
|
+
*/
|
|
742
748
|
function list_tables($constrain_by_prefix = FALSE)
|
|
743
749
|
{
|
|
744
750
|
// Is there a cached result?
|
|
@@ -746,7 +752,7 @@ class CI_DB_driver {
|
|
|
746
752
|
{
|
|
747
753
|
return $this->data_cache['table_names'];
|
|
748
754
|
}
|
|
749
|
-
|
|
755
|
+
|
|
750
756
|
if (FALSE === ($sql = $this->_list_tables($constrain_by_prefix)))
|
|
751
757
|
{
|
|
752
758
|
if ($this->db_debug)
|
|
@@ -758,7 +764,7 @@ class CI_DB_driver {
|
|
|
758
764
|
|
|
759
765
|
$retval = array();
|
|
760
766
|
$query = $this->query($sql);
|
|
761
|
-
|
|
767
|
+
|
|
762
768
|
if ($query->num_rows() > 0)
|
|
763
769
|
{
|
|
764
770
|
foreach($query->result_array() as $row)
|
|
@@ -777,7 +783,7 @@ class CI_DB_driver {
|
|
|
777
783
|
$this->data_cache['table_names'] = $retval;
|
|
778
784
|
return $this->data_cache['table_names'];
|
|
779
785
|
}
|
|
780
|
-
|
|
786
|
+
|
|
781
787
|
// --------------------------------------------------------------------
|
|
782
788
|
|
|
783
789
|
/**
|
|
@@ -786,10 +792,10 @@ class CI_DB_driver {
|
|
|
786
792
|
* @return boolean
|
|
787
793
|
*/
|
|
788
794
|
function table_exists($table_name)
|
|
789
|
-
{
|
|
795
|
+
{
|
|
790
796
|
return ( ! in_array($this->_protect_identifiers($table_name, TRUE, FALSE, FALSE), $this->list_tables())) ? FALSE : TRUE;
|
|
791
797
|
}
|
|
792
|
-
|
|
798
|
+
|
|
793
799
|
// --------------------------------------------------------------------
|
|
794
800
|
|
|
795
801
|
/**
|
|
@@ -797,7 +803,7 @@ class CI_DB_driver {
|
|
|
797
803
|
*
|
|
798
804
|
* @access public
|
|
799
805
|
* @param string the table name
|
|
800
|
-
* @return array
|
|
806
|
+
* @return array
|
|
801
807
|
*/
|
|
802
808
|
function list_fields($table = '')
|
|
803
809
|
{
|
|
@@ -806,7 +812,7 @@ class CI_DB_driver {
|
|
|
806
812
|
{
|
|
807
813
|
return $this->data_cache['field_names'][$table];
|
|
808
814
|
}
|
|
809
|
-
|
|
815
|
+
|
|
810
816
|
if ($table == '')
|
|
811
817
|
{
|
|
812
818
|
if ($this->db_debug)
|
|
@@ -815,8 +821,8 @@ class CI_DB_driver {
|
|
|
815
821
|
}
|
|
816
822
|
return FALSE;
|
|
817
823
|
}
|
|
818
|
-
|
|
819
|
-
if (FALSE === ($sql = $this->_list_columns($
|
|
824
|
+
|
|
825
|
+
if (FALSE === ($sql = $this->_list_columns($table)))
|
|
820
826
|
{
|
|
821
827
|
if ($this->db_debug)
|
|
822
828
|
{
|
|
@@ -824,9 +830,9 @@ class CI_DB_driver {
|
|
|
824
830
|
}
|
|
825
831
|
return FALSE;
|
|
826
832
|
}
|
|
827
|
-
|
|
833
|
+
|
|
828
834
|
$query = $this->query($sql);
|
|
829
|
-
|
|
835
|
+
|
|
830
836
|
$retval = array();
|
|
831
837
|
foreach($query->result_array() as $row)
|
|
832
838
|
{
|
|
@@ -837,9 +843,9 @@ class CI_DB_driver {
|
|
|
837
843
|
else
|
|
838
844
|
{
|
|
839
845
|
$retval[] = current($row);
|
|
840
|
-
}
|
|
846
|
+
}
|
|
841
847
|
}
|
|
842
|
-
|
|
848
|
+
|
|
843
849
|
$this->data_cache['field_names'][$table] = $retval;
|
|
844
850
|
return $this->data_cache['field_names'][$table];
|
|
845
851
|
}
|
|
@@ -854,10 +860,10 @@ class CI_DB_driver {
|
|
|
854
860
|
* @return boolean
|
|
855
861
|
*/
|
|
856
862
|
function field_exists($field_name, $table_name)
|
|
857
|
-
{
|
|
863
|
+
{
|
|
858
864
|
return ( ! in_array($field_name, $this->list_fields($table_name))) ? FALSE : TRUE;
|
|
859
865
|
}
|
|
860
|
-
|
|
866
|
+
|
|
861
867
|
// --------------------------------------------------------------------
|
|
862
868
|
|
|
863
869
|
/**
|
|
@@ -865,8 +871,8 @@ class CI_DB_driver {
|
|
|
865
871
|
*
|
|
866
872
|
* @access public
|
|
867
873
|
* @param string the table name
|
|
868
|
-
* @return object
|
|
869
|
-
*/
|
|
874
|
+
* @return object
|
|
875
|
+
*/
|
|
870
876
|
function field_data($table = '')
|
|
871
877
|
{
|
|
872
878
|
if ($table == '')
|
|
@@ -877,36 +883,36 @@ class CI_DB_driver {
|
|
|
877
883
|
}
|
|
878
884
|
return FALSE;
|
|
879
885
|
}
|
|
880
|
-
|
|
886
|
+
|
|
881
887
|
$query = $this->query($this->_field_data($this->_protect_identifiers($table, TRUE, NULL, FALSE)));
|
|
882
888
|
|
|
883
889
|
return $query->field_data();
|
|
884
|
-
}
|
|
890
|
+
}
|
|
885
891
|
|
|
886
892
|
// --------------------------------------------------------------------
|
|
887
|
-
|
|
893
|
+
|
|
888
894
|
/**
|
|
889
895
|
* Generate an insert string
|
|
890
896
|
*
|
|
891
897
|
* @access public
|
|
892
898
|
* @param string the table upon which the query will be performed
|
|
893
899
|
* @param array an associative array data of key/values
|
|
894
|
-
* @return string
|
|
895
|
-
*/
|
|
900
|
+
* @return string
|
|
901
|
+
*/
|
|
896
902
|
function insert_string($table, $data)
|
|
897
903
|
{
|
|
898
904
|
$fields = array();
|
|
899
905
|
$values = array();
|
|
900
|
-
|
|
906
|
+
|
|
901
907
|
foreach($data as $key => $val)
|
|
902
908
|
{
|
|
903
909
|
$fields[] = $this->_escape_identifiers($key);
|
|
904
910
|
$values[] = $this->escape($val);
|
|
905
911
|
}
|
|
906
|
-
|
|
912
|
+
|
|
907
913
|
return $this->_insert($this->_protect_identifiers($table, TRUE, NULL, FALSE), $fields, $values);
|
|
908
|
-
}
|
|
909
|
-
|
|
914
|
+
}
|
|
915
|
+
|
|
910
916
|
// --------------------------------------------------------------------
|
|
911
917
|
|
|
912
918
|
/**
|
|
@@ -916,15 +922,15 @@ class CI_DB_driver {
|
|
|
916
922
|
* @param string the table upon which the query will be performed
|
|
917
923
|
* @param array an associative array data of key/values
|
|
918
924
|
* @param mixed the "where" statement
|
|
919
|
-
* @return string
|
|
920
|
-
*/
|
|
925
|
+
* @return string
|
|
926
|
+
*/
|
|
921
927
|
function update_string($table, $data, $where)
|
|
922
928
|
{
|
|
923
929
|
if ($where == '')
|
|
924
930
|
{
|
|
925
931
|
return false;
|
|
926
932
|
}
|
|
927
|
-
|
|
933
|
+
|
|
928
934
|
$fields = array();
|
|
929
935
|
foreach($data as $key => $val)
|
|
930
936
|
{
|
|
@@ -941,23 +947,23 @@ class CI_DB_driver {
|
|
|
941
947
|
foreach ($where as $key => $val)
|
|
942
948
|
{
|
|
943
949
|
$prefix = (count($dest) == 0) ? '' : ' AND ';
|
|
944
|
-
|
|
950
|
+
|
|
945
951
|
if ($val !== '')
|
|
946
952
|
{
|
|
947
953
|
if ( ! $this->_has_operator($key))
|
|
948
954
|
{
|
|
949
955
|
$key .= ' =';
|
|
950
956
|
}
|
|
951
|
-
|
|
957
|
+
|
|
952
958
|
$val = ' '.$this->escape($val);
|
|
953
959
|
}
|
|
954
|
-
|
|
960
|
+
|
|
955
961
|
$dest[] = $prefix.$key.$val;
|
|
956
962
|
}
|
|
957
|
-
}
|
|
963
|
+
}
|
|
958
964
|
|
|
959
965
|
return $this->_update($this->_protect_identifiers($table, TRUE, NULL, FALSE), $fields, $dest);
|
|
960
|
-
}
|
|
966
|
+
}
|
|
961
967
|
|
|
962
968
|
// --------------------------------------------------------------------
|
|
963
969
|
|
|
@@ -987,17 +993,17 @@ class CI_DB_driver {
|
|
|
987
993
|
* @access public
|
|
988
994
|
* @param string the function name
|
|
989
995
|
* @param mixed any parameters needed by the function
|
|
990
|
-
* @return mixed
|
|
991
|
-
*/
|
|
996
|
+
* @return mixed
|
|
997
|
+
*/
|
|
992
998
|
function call_function($function)
|
|
993
999
|
{
|
|
994
1000
|
$driver = ($this->dbdriver == 'postgre') ? 'pg_' : $this->dbdriver.'_';
|
|
995
|
-
|
|
1001
|
+
|
|
996
1002
|
if (FALSE === strpos($driver, $function))
|
|
997
1003
|
{
|
|
998
1004
|
$function = $driver.$function;
|
|
999
1005
|
}
|
|
1000
|
-
|
|
1006
|
+
|
|
1001
1007
|
if ( ! function_exists($function))
|
|
1002
1008
|
{
|
|
1003
1009
|
if ($this->db_debug)
|
|
@@ -1022,7 +1028,7 @@ class CI_DB_driver {
|
|
|
1022
1028
|
* @access public
|
|
1023
1029
|
* @param string the path to the cache directory
|
|
1024
1030
|
* @return void
|
|
1025
|
-
*/
|
|
1031
|
+
*/
|
|
1026
1032
|
function cache_set_path($path = '')
|
|
1027
1033
|
{
|
|
1028
1034
|
$this->cachedir = $path;
|
|
@@ -1035,7 +1041,7 @@ class CI_DB_driver {
|
|
|
1035
1041
|
*
|
|
1036
1042
|
* @access public
|
|
1037
1043
|
* @return void
|
|
1038
|
-
*/
|
|
1044
|
+
*/
|
|
1039
1045
|
function cache_on()
|
|
1040
1046
|
{
|
|
1041
1047
|
$this->cache_on = TRUE;
|
|
@@ -1049,13 +1055,13 @@ class CI_DB_driver {
|
|
|
1049
1055
|
*
|
|
1050
1056
|
* @access public
|
|
1051
1057
|
* @return void
|
|
1052
|
-
*/
|
|
1058
|
+
*/
|
|
1053
1059
|
function cache_off()
|
|
1054
1060
|
{
|
|
1055
1061
|
$this->cache_on = FALSE;
|
|
1056
1062
|
return FALSE;
|
|
1057
1063
|
}
|
|
1058
|
-
|
|
1064
|
+
|
|
1059
1065
|
|
|
1060
1066
|
// --------------------------------------------------------------------
|
|
1061
1067
|
|
|
@@ -1064,7 +1070,7 @@ class CI_DB_driver {
|
|
|
1064
1070
|
*
|
|
1065
1071
|
* @access public
|
|
1066
1072
|
* @return void
|
|
1067
|
-
*/
|
|
1073
|
+
*/
|
|
1068
1074
|
function cache_delete($segment_one = '', $segment_two = '')
|
|
1069
1075
|
{
|
|
1070
1076
|
if ( ! $this->_cache_init())
|
|
@@ -1081,7 +1087,7 @@ class CI_DB_driver {
|
|
|
1081
1087
|
*
|
|
1082
1088
|
* @access public
|
|
1083
1089
|
* @return void
|
|
1084
|
-
*/
|
|
1090
|
+
*/
|
|
1085
1091
|
function cache_delete_all()
|
|
1086
1092
|
{
|
|
1087
1093
|
if ( ! $this->_cache_init())
|
|
@@ -1099,7 +1105,7 @@ class CI_DB_driver {
|
|
|
1099
1105
|
*
|
|
1100
1106
|
* @access private
|
|
1101
1107
|
* @return void
|
|
1102
|
-
*/
|
|
1108
|
+
*/
|
|
1103
1109
|
function _cache_init()
|
|
1104
1110
|
{
|
|
1105
1111
|
if (is_object($this->CACHE) AND class_exists('CI_DB_Cache'))
|
|
@@ -1125,8 +1131,8 @@ class CI_DB_driver {
|
|
|
1125
1131
|
* Close DB Connection
|
|
1126
1132
|
*
|
|
1127
1133
|
* @access public
|
|
1128
|
-
* @return void
|
|
1129
|
-
*/
|
|
1134
|
+
* @return void
|
|
1135
|
+
*/
|
|
1130
1136
|
function close()
|
|
1131
1137
|
{
|
|
1132
1138
|
if (is_resource($this->conn_id) OR is_object($this->conn_id))
|
|
@@ -1135,7 +1141,7 @@ class CI_DB_driver {
|
|
|
1135
1141
|
}
|
|
1136
1142
|
$this->conn_id = FALSE;
|
|
1137
1143
|
}
|
|
1138
|
-
|
|
1144
|
+
|
|
1139
1145
|
// --------------------------------------------------------------------
|
|
1140
1146
|
|
|
1141
1147
|
/**
|
|
@@ -1145,11 +1151,11 @@ class CI_DB_driver {
|
|
|
1145
1151
|
* @param string the error message
|
|
1146
1152
|
* @param string any "swap" values
|
|
1147
1153
|
* @param boolean whether to localize the message
|
|
1148
|
-
* @return string sends the application/error_db.php template
|
|
1149
|
-
*/
|
|
1154
|
+
* @return string sends the application/error_db.php template
|
|
1155
|
+
*/
|
|
1150
1156
|
function display_error($error = '', $swap = '', $native = FALSE)
|
|
1151
1157
|
{
|
|
1152
|
-
$LANG =& load_class('
|
|
1158
|
+
$LANG =& load_class('Lang', 'core');
|
|
1153
1159
|
$LANG->load('db');
|
|
1154
1160
|
|
|
1155
1161
|
$heading = $LANG->line('db_error_heading');
|
|
@@ -1162,8 +1168,26 @@ class CI_DB_driver {
|
|
|
1162
1168
|
{
|
|
1163
1169
|
$message = ( ! is_array($error)) ? array(str_replace('%s', $swap, $LANG->line($error))) : $error;
|
|
1164
1170
|
}
|
|
1165
|
-
|
|
1166
|
-
|
|
1171
|
+
|
|
1172
|
+
// Find the most likely culprit of the error by going through
|
|
1173
|
+
// the backtrace until the source file is no longer in the
|
|
1174
|
+
// database folder.
|
|
1175
|
+
|
|
1176
|
+
$trace = debug_backtrace();
|
|
1177
|
+
|
|
1178
|
+
foreach($trace as $call)
|
|
1179
|
+
{
|
|
1180
|
+
if (isset($call['file']) && strpos($call['file'], BASEPATH.'database') === FALSE)
|
|
1181
|
+
{
|
|
1182
|
+
// Found it - use a relative path for safety
|
|
1183
|
+
$message[] = 'Filename: '.str_replace(array(BASEPATH, APPPATH), '', $call['file']);
|
|
1184
|
+
$message[] = 'Line Number: '.$call['line'];
|
|
1185
|
+
|
|
1186
|
+
break;
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
$error =& load_class('Exceptions', 'core');
|
|
1167
1191
|
echo $error->show_error($heading, $message, 'error_db');
|
|
1168
1192
|
exit;
|
|
1169
1193
|
}
|
|
@@ -1190,7 +1214,7 @@ class CI_DB_driver {
|
|
|
1190
1214
|
* Protect Identifiers
|
|
1191
1215
|
*
|
|
1192
1216
|
* This function is used extensively by the Active Record class, and by
|
|
1193
|
-
* a couple functions in this class.
|
|
1217
|
+
* a couple functions in this class.
|
|
1194
1218
|
* It takes a column or table name (optionally with an alias) and inserts
|
|
1195
1219
|
* the table prefix onto it. Some logic is necessary in order to deal with
|
|
1196
1220
|
* column names that include the path. Consider a query like this:
|
|
@@ -1212,7 +1236,7 @@ class CI_DB_driver {
|
|
|
1212
1236
|
* @param mixed
|
|
1213
1237
|
* @param bool
|
|
1214
1238
|
* @return string
|
|
1215
|
-
*/
|
|
1239
|
+
*/
|
|
1216
1240
|
function _protect_identifiers($item, $prefix_single = FALSE, $protect_identifiers = NULL, $field_exists = TRUE)
|
|
1217
1241
|
{
|
|
1218
1242
|
if ( ! is_bool($protect_identifiers))
|
|
@@ -1234,7 +1258,7 @@ class CI_DB_driver {
|
|
|
1234
1258
|
|
|
1235
1259
|
// Convert tabs or multiple spaces into single spaces
|
|
1236
1260
|
$item = preg_replace('/[\t ]+/', ' ', $item);
|
|
1237
|
-
|
|
1261
|
+
|
|
1238
1262
|
// If the item has an alias declaration we remove it and set it aside.
|
|
1239
1263
|
// Basically we remove everything to the right of the first space
|
|
1240
1264
|
$alias = '';
|
|
@@ -1245,7 +1269,7 @@ class CI_DB_driver {
|
|
|
1245
1269
|
}
|
|
1246
1270
|
|
|
1247
1271
|
// This is basically a bug fix for queries that use MAX, MIN, etc.
|
|
1248
|
-
// If a parenthesis is found we know that we do not need to
|
|
1272
|
+
// If a parenthesis is found we know that we do not need to
|
|
1249
1273
|
// escape the data or add a prefix. There's probably a more graceful
|
|
1250
1274
|
// way to deal with this, but I'm not thinking of it -- Rick
|
|
1251
1275
|
if (strpos($item, '(') !== FALSE)
|
|
@@ -1259,7 +1283,7 @@ class CI_DB_driver {
|
|
|
1259
1283
|
if (strpos($item, '.') !== FALSE)
|
|
1260
1284
|
{
|
|
1261
1285
|
$parts = explode('.', $item);
|
|
1262
|
-
|
|
1286
|
+
|
|
1263
1287
|
// Does the first segment of the exploded item match
|
|
1264
1288
|
// one of the aliases previously identified? If so,
|
|
1265
1289
|
// we have nothing more to do other than escape the item
|
|
@@ -1274,12 +1298,12 @@ class CI_DB_driver {
|
|
|
1274
1298
|
$parts[$key] = $this->_escape_identifiers($val);
|
|
1275
1299
|
}
|
|
1276
1300
|
}
|
|
1277
|
-
|
|
1301
|
+
|
|
1278
1302
|
$item = implode('.', $parts);
|
|
1279
|
-
}
|
|
1303
|
+
}
|
|
1280
1304
|
return $item.$alias;
|
|
1281
1305
|
}
|
|
1282
|
-
|
|
1306
|
+
|
|
1283
1307
|
// Is there a table prefix defined in the config file? If not, no need to do anything
|
|
1284
1308
|
if ($this->dbprefix != '')
|
|
1285
1309
|
{
|
|
@@ -1302,7 +1326,7 @@ class CI_DB_driver {
|
|
|
1302
1326
|
{
|
|
1303
1327
|
$i = 0;
|
|
1304
1328
|
}
|
|
1305
|
-
|
|
1329
|
+
|
|
1306
1330
|
// This flag is set when the supplied $item does not contain a field name.
|
|
1307
1331
|
// This can happen when this function is being called from a JOIN.
|
|
1308
1332
|
if ($field_exists == FALSE)
|
|
@@ -1315,22 +1339,22 @@ class CI_DB_driver {
|
|
|
1315
1339
|
{
|
|
1316
1340
|
$parts[$i] = preg_replace("/^".$this->swap_pre."(\S+?)/", $this->dbprefix."\\1", $parts[$i]);
|
|
1317
1341
|
}
|
|
1318
|
-
|
|
1342
|
+
|
|
1319
1343
|
// We only add the table prefix if it does not already exist
|
|
1320
1344
|
if (substr($parts[$i], 0, strlen($this->dbprefix)) != $this->dbprefix)
|
|
1321
1345
|
{
|
|
1322
1346
|
$parts[$i] = $this->dbprefix.$parts[$i];
|
|
1323
1347
|
}
|
|
1324
|
-
|
|
1348
|
+
|
|
1325
1349
|
// Put the parts back together
|
|
1326
1350
|
$item = implode('.', $parts);
|
|
1327
1351
|
}
|
|
1328
|
-
|
|
1352
|
+
|
|
1329
1353
|
if ($protect_identifiers === TRUE)
|
|
1330
1354
|
{
|
|
1331
1355
|
$item = $this->_escape_identifiers($item);
|
|
1332
1356
|
}
|
|
1333
|
-
|
|
1357
|
+
|
|
1334
1358
|
return $item.$alias;
|
|
1335
1359
|
}
|
|
1336
1360
|
|
|
@@ -1347,14 +1371,14 @@ class CI_DB_driver {
|
|
|
1347
1371
|
if ($prefix_single == TRUE AND substr($item, 0, strlen($this->dbprefix)) != $this->dbprefix)
|
|
1348
1372
|
{
|
|
1349
1373
|
$item = $this->dbprefix.$item;
|
|
1350
|
-
}
|
|
1374
|
+
}
|
|
1351
1375
|
}
|
|
1352
1376
|
|
|
1353
1377
|
if ($protect_identifiers === TRUE AND ! in_array($item, $this->_reserved_identifiers))
|
|
1354
1378
|
{
|
|
1355
1379
|
$item = $this->_escape_identifiers($item);
|
|
1356
1380
|
}
|
|
1357
|
-
|
|
1381
|
+
|
|
1358
1382
|
return $item.$alias;
|
|
1359
1383
|
}
|
|
1360
1384
|
|