codeigniter_vender 0.0.1
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 +2 -0
- data/MIT-LICENSE +20 -0
- data/README +40 -0
- data/Rakefile +18 -0
- data/VERSION +1 -0
- data/codeigniter_vender.gemspec +389 -0
- data/generators/ci_app/USAGE +8 -0
- data/generators/ci_app/ci_app_generator.rb +12 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/index.php +118 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/license.txt +52 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/autoload.php +116 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/config.php +329 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/constants.php +41 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/database.php +55 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/doctypes.php +15 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/hooks.php +16 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/mimes.php +105 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/routes.php +48 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/smileys.php +66 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/user_agents.php +175 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/controllers/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/controllers/welcome.php +17 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors/error_404.php +34 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors/error_db.php +34 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors/error_general.php +34 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors/error_php.php +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/helpers/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/hooks/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/language/english/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/libraries/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/models/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/views/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/views/welcome_message.php +62 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/cache/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Base4.php +69 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Base5.php +56 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/CodeIgniter.php +280 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Common.php +421 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Compat.php +93 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB.php +146 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_active_rec.php +1820 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_cache.php +195 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_driver.php +1366 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_forge.php +375 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_result.php +342 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_utility.php +389 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql/mssql_driver.php +667 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql/mssql_forge.php +248 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql/mssql_result.php +169 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql/mssql_utility.php +123 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql/mysql_driver.php +670 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql/mysql_forge.php +254 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql/mysql_result.php +169 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql/mysql_utility.php +245 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli/mysqli_driver.php +671 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli/mysqli_forge.php +254 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli/mysqli_result.php +169 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli/mysqli_utility.php +123 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8/oci8_driver.php +780 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8/oci8_forge.php +248 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8/oci8_result.php +249 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8/oci8_utility.php +122 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc/odbc_driver.php +639 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc/odbc_forge.php +266 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc/odbc_result.php +228 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc/odbc_utility.php +148 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre/postgre_driver.php +684 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre/postgre_forge.php +248 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre/postgre_result.php +169 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre/postgre_utility.php +124 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite/sqlite_driver.php +657 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite/sqlite_forge.php +265 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite/sqlite_result.php +179 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite/sqlite_utility.php +141 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/fonts/index.html +10 -0
- 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/array_helper.php +78 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/compatibility_helper.php +498 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/cookie_helper.php +144 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/date_helper.php +611 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/directory_helper.php +84 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/download_helper.php +100 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/email_helper.php +62 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/file_helper.php +464 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/form_helper.php +1025 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/html_helper.php +416 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/inflector_helper.php +171 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/language_helper.php +58 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/number_helper.php +75 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/path_helper.php +72 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/security_helper.php +126 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/smiley_helper.php +273 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/string_helper.php +273 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/text_helper.php +462 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/typography_helper.php +71 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/url_helper.php +593 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/xml_helper.php +62 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/calendar_lang.php +51 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/date_lang.php +60 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/db_lang.php +28 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/email_lang.php +24 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/form_validation_lang.php +24 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/ftp_lang.php +17 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/imglib_lang.php +24 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/number_lang.php +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/profiler_lang.php +19 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/scaffolding_lang.php +17 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/unit_test_lang.php +24 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/upload_lang.php +22 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/validation_lang.php +24 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Benchmark.php +113 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Calendar.php +477 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Cart.php +550 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Config.php +244 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Controller.php +127 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Email.php +2041 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Encrypt.php +484 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Exceptions.php +174 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Form_validation.php +1278 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Ftp.php +618 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Hooks.php +226 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Image_lib.php +1544 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Input.php +1067 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Language.php +123 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Loader.php +1085 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Log.php +117 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Model.php +83 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Output.php +409 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Pagination.php +244 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Parser.php +173 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Profiler.php +392 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Router.php +389 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Session.php +758 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Sha1.php +251 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Table.php +440 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Trackback.php +547 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Typography.php +406 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/URI.php +586 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Unit_test.php +347 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Upload.php +970 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/User_agent.php +502 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Validation.php +875 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Xmlrpc.php +1421 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Xmlrpcs.php +536 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Zip.php +359 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/logs/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/plugins/captcha_pi.php +356 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/plugins/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/plugins/js_calendar_pi.php +629 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/Scaffolding.php +291 -0
- 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/index.html +10 -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 +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/add.php +32 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/delete.php +9 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/edit.php +33 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/footer.php +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/header.php +29 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/no_data.php +8 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/stylesheet.css +143 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/view.php +27 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/changelog.html +1080 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/active_record.html +757 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/caching.html +220 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/call_function.html +118 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/configuration.html +157 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/connecting.html +186 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/examples.html +217 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/fields.html +163 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/forge.html +234 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/helpers.html +151 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/index.html +99 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/queries.html +153 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/results.html +238 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/table_data.html +113 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/transactions.html +200 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/utilities.html +295 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/doc_style/index.html +86 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/doc_style/template.html +128 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/alternative_php.html +147 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/ancillary_classes.html +117 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/autoloader.html +101 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/caching.html +115 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/common_functions.html +119 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/controllers.html +385 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/core_classes.html +185 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/creating_libraries.html +298 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/credits.html +86 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/errors.html +138 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/helpers.html +185 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/hooks.html +167 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/libraries.html +94 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/managing_apps.html +133 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/models.html +251 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/plugins.html +127 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/profiling.html +104 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/quick_reference.html +77 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/requirements.html +82 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/reserved_names.html +156 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/routing.html +176 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/scaffolding.html +147 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/security.html +153 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/styleguide.html +687 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/urls.html +151 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/views.html +274 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/array_helper.html +119 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/compatibility_helper.html +118 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/cookie_helper.html +147 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/date_helper.html +408 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/directory_helper.html +143 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/download_helper.html +112 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/email_helper.html +102 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/file_helper.html +178 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/form_helper.html +484 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/html_helper.html +385 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/inflector_helper.html +151 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/language_helper.html +98 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/number_helper.html +107 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/path_helper.html +106 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/security_helper.html +125 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/smiley_helper.html +215 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/string_helper.html +176 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/text_helper.html +192 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/typography_helper.html +112 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/url_helper.html +289 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/xml_helper.html +105 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/appflowchart.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/arrow.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/ci_logo.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/ci_logo_flame.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/ci_quick_ref.png +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/codeigniter_1.7.1_helper_reference.pdf +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/codeigniter_1.7.1_helper_reference.png +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/codeigniter_1.7.1_library_reference.pdf +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/codeigniter_1.7.1_library_reference.png +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/file.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/folder.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/nav_bg_darker.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/nav_separator_darker.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/nav_toggle_darker.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/smile.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/transparent.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/index.html +99 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/downloads.html +105 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/index.html +97 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/troubleshooting.html +90 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_120.html +92 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_130.html +203 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_131.html +102 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_132.html +100 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_133.html +112 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_140.html +145 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_141.html +148 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_150.html +178 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_152.html +111 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_153.html +100 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_154.html +116 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_160.html +125 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_161.html +98 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_162.html +106 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_163.html +99 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_170.html +121 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_171.html +98 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_172.html +105 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_b11.html +144 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrading.html +101 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/benchmark.html +198 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/calendar.html +249 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/cart.html +346 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/config.html +181 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/email.html +307 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/encryption.html +182 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/file_uploading.html +451 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/form_validation.html +1221 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/ftp.html +303 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/image_lib.html +666 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/input.html +231 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/language.html +137 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/loader.html +214 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/output.html +145 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/pagination.html +218 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/parser.html +208 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/sessions.html +311 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/table.html +292 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/trackback.html +246 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/typography.html +160 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/unit_testing.html +205 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/uri.html +252 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/user_agent.html +201 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/validation.html +740 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/xmlrpc.html +517 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/zip.html +278 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/license.html +107 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/hacks.txt +9 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/moo.fx.js +119 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/moo.fx.pack.js +241 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/nav.js +139 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/prototype.lite.js +127 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/user_guide_menu.js +4 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/appflow.html +95 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/at_a_glance.html +172 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/cheatsheets.html +83 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/features.html +120 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/getting_started.html +92 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/goals.html +98 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/index.html +84 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/mvc.html +100 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/toc.html +209 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/userguide.css +406 -0
- data/generators/ci_app/templates/README +1 -0
- data/generators/ci_controller/USAGE +2 -0
- data/generators/ci_controller/ci_controller_generator.rb +11 -0
- data/generators/ci_controller/templates/ci_controller.php.erb +15 -0
- data/generators/ci_controller/templates/ci_view.php.erb +8 -0
- data/generators/ci_layout/USAGE +2 -0
- data/generators/ci_layout/ci_layout_generator.rb +24 -0
- data/generators/ci_layout/templates/application_layout.php.erb +19 -0
- data/generators/ci_model/USAGE +2 -0
- data/generators/ci_model/ci_model_generator.rb +42 -0
- data/generators/ci_model/templates/ci_model.php.erb +15 -0
- data/generators/ci_model/templates/model.rb +5 -0
- data/generators/ci_model/templates/model_migration.rb.erb +16 -0
- data/init.rb +1 -0
- data/install.rb +1 -0
- data/lib/codeigniter_vender.rb +1 -0
- data/lib/tasks/app.rake +8 -0
- data/test/codeigniter_vender_test.rb +8 -0
- data/test/test_helper.rb +3 -0
- data/uninstall.rb +1 -0
- metadata +411 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>String Helper : CodeIgniter User Guide</title>
|
|
7
|
+
|
|
8
|
+
<style type='text/css' media='all'>@import url('../userguide.css');</style>
|
|
9
|
+
<link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript" src="../nav/nav.js"></script>
|
|
12
|
+
<script type="text/javascript" src="../nav/prototype.lite.js"></script>
|
|
13
|
+
<script type="text/javascript" src="../nav/moo.fx.js"></script>
|
|
14
|
+
<script type="text/javascript" src="../nav/user_guide_menu.js"></script>
|
|
15
|
+
|
|
16
|
+
<meta http-equiv='expires' content='-1' />
|
|
17
|
+
<meta http-equiv= 'pragma' content='no-cache' />
|
|
18
|
+
<meta name='robots' content='all' />
|
|
19
|
+
<meta name='author' content='ExpressionEngine Dev Team' />
|
|
20
|
+
<meta name='description' content='CodeIgniter User Guide' />
|
|
21
|
+
|
|
22
|
+
</head>
|
|
23
|
+
<body>
|
|
24
|
+
|
|
25
|
+
<!-- START NAVIGATION -->
|
|
26
|
+
<div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div>
|
|
27
|
+
<div id="nav2"><a name="top"></a><a href="javascript:void(0);" onclick="myHeight.toggle();"><img src="../images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
|
|
28
|
+
<div id="masthead">
|
|
29
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
30
|
+
<tr>
|
|
31
|
+
<td><h1>CodeIgniter User Guide Version 1.7.2</h1></td>
|
|
32
|
+
<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
|
|
33
|
+
</tr>
|
|
34
|
+
</table>
|
|
35
|
+
</div>
|
|
36
|
+
<!-- END NAVIGATION -->
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<!-- START BREADCRUMB -->
|
|
40
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
41
|
+
<tr>
|
|
42
|
+
<td id="breadcrumb">
|
|
43
|
+
<a href="http://codeigniter.com/">CodeIgniter Home</a> ›
|
|
44
|
+
<a href="../index.html">User Guide Home</a> ›
|
|
45
|
+
String Helper
|
|
46
|
+
</td>
|
|
47
|
+
<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="codeigniter.com/user_guide/" />Search User Guide <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" /> <input type="submit" class="submit" name="sa" value="Go" /></form></td>
|
|
48
|
+
</tr>
|
|
49
|
+
</table>
|
|
50
|
+
<!-- END BREADCRUMB -->
|
|
51
|
+
|
|
52
|
+
<br clear="all" />
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<!-- START CONTENT -->
|
|
56
|
+
<div id="content">
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
<h1>String Helper</h1>
|
|
60
|
+
|
|
61
|
+
<p>The String Helper file contains functions that assist in working with strings.</p>
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
<h2>Loading this Helper</h2>
|
|
65
|
+
|
|
66
|
+
<p>This helper is loaded using the following code:</p>
|
|
67
|
+
<code>$this->load->helper('string');</code>
|
|
68
|
+
|
|
69
|
+
<p>The following functions are available:</p>
|
|
70
|
+
|
|
71
|
+
<h2>random_string()</h2>
|
|
72
|
+
|
|
73
|
+
<p>Generates a random string based on the type and length you specify. Useful for creating passwords or generating random hashes.</p>
|
|
74
|
+
|
|
75
|
+
<p>The first parameter specifies the type of string, the second parameter specifies the length. The following choices are available:</p>
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
<ul>
|
|
79
|
+
<li><strong>alnum</strong>: Alpha-numeric string with lower and uppercase characters.</li>
|
|
80
|
+
<li><strong>numeric</strong>: Numeric string.</li>
|
|
81
|
+
<li><strong>nozero</strong>: Numeric string with no zeros.</li>
|
|
82
|
+
<li><strong>unique</strong>: Encrypted with MD5 and uniqid(). Note: The length parameter is not available for this type.
|
|
83
|
+
Returns a fixed length 32 character string.</li>
|
|
84
|
+
</ul>
|
|
85
|
+
|
|
86
|
+
<p>Usage example:</p>
|
|
87
|
+
|
|
88
|
+
<code>echo random_string('alnum', 16);</code>
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
<h2>alternator()</h2>
|
|
92
|
+
|
|
93
|
+
<p>Allows two or more items to be alternated between, when cycling through a loop. Example:</p>
|
|
94
|
+
|
|
95
|
+
<code>for ($i = 0; $i < 10; $i++)<br />
|
|
96
|
+
{<br />
|
|
97
|
+
echo alternator('string one', 'string two');<br />
|
|
98
|
+
}<br />
|
|
99
|
+
</code>
|
|
100
|
+
|
|
101
|
+
<p>You can add as many parameters as you want, and with each iteration of your loop the next item will be returned.</p>
|
|
102
|
+
|
|
103
|
+
<code>for ($i = 0; $i < 10; $i++)<br />
|
|
104
|
+
{<br />
|
|
105
|
+
echo alternator('one', 'two', 'three', 'four', 'five');<br />
|
|
106
|
+
}<br />
|
|
107
|
+
</code>
|
|
108
|
+
|
|
109
|
+
<p><strong>Note:</strong> To use multiple separate calls to this function simply call the function with no arguments to re-initialize.</p>
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
<h2>repeater()</h2>
|
|
114
|
+
<p>Generates repeating copies of the data you submit. Example:</p>
|
|
115
|
+
<code>$string = "\n";<br />
|
|
116
|
+
echo repeater($string, 30);</code>
|
|
117
|
+
|
|
118
|
+
<p>The above would generate 30 newlines.</p>
|
|
119
|
+
<h2>reduce_double_slashes()</h2>
|
|
120
|
+
<p>Converts double slashes in a string to a single slash, except those found in http://. Example: </p>
|
|
121
|
+
<code>$string = "http://example.com//index.php";<br />
|
|
122
|
+
echo reduce_double_slashes($string); // results in "http://example.com/index.php"</code>
|
|
123
|
+
<h2>trim_slashes()</h2>
|
|
124
|
+
<p>Removes any leading/trailing slashes from a string. Example:<br />
|
|
125
|
+
<br />
|
|
126
|
+
<code>$string = "/this/that/theother/";<br />
|
|
127
|
+
echo trim_slashes($string); // results in this/that/theother</code></p>
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
<h2>reduce_multiples()</h2>
|
|
131
|
+
<p>Reduces multiple instances of a particular character occuring directly after each other. Example:</p>
|
|
132
|
+
<code>
|
|
133
|
+
$string="Fred, Bill,, Joe, Jimmy";<br />
|
|
134
|
+
$string=reduce_multiples($string,","); //results in "Fred, Bill, Joe, Jimmy"
|
|
135
|
+
</code>
|
|
136
|
+
<p>The function accepts the following parameters:
|
|
137
|
+
<code>reduce_multiples(string: text to search in, string: character to reduce, boolean: whether to remove the character from the front and end of the string)</code>
|
|
138
|
+
|
|
139
|
+
The first parameter contains the string in which you want to reduce the multiplies. The second parameter contains the character you want to have reduced.
|
|
140
|
+
The third parameter is FALSE by default; if set to TRUE it will remove occurences of the character at the beginning and the end of the string. Example:
|
|
141
|
+
|
|
142
|
+
<code>
|
|
143
|
+
$string=",Fred, Bill,, Joe, Jimmy,";<br />
|
|
144
|
+
$string=reduce_multiples($string, ", ", TRUE); //results in "Fred, Bill, Joe, Jimmy"
|
|
145
|
+
</code>
|
|
146
|
+
</p>
|
|
147
|
+
|
|
148
|
+
<h2>quotes_to_entities()</h2>
|
|
149
|
+
<p>Converts single and double quotes in a string to the corresponding HTML entities. Example:</p>
|
|
150
|
+
<code>$string="Joe's \"dinner\"";<br />
|
|
151
|
+
$string=quotes_to_entities($string); //results in "Joe&#39;s &quot;dinner&quot;"
|
|
152
|
+
</code>
|
|
153
|
+
|
|
154
|
+
<h2>strip_quotes()</h2>
|
|
155
|
+
<p>Removes single and double quotes from a string. Example:</p>
|
|
156
|
+
<code>$string="Joe's \"dinner\"";<br />
|
|
157
|
+
$string=strip_quotes($string); //results in "Joes dinner"
|
|
158
|
+
</code>
|
|
159
|
+
|
|
160
|
+
</div>
|
|
161
|
+
<!-- END CONTENT -->
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
<div id="footer">
|
|
165
|
+
<p>
|
|
166
|
+
Previous Topic: <a href="smiley_helper.html">Smiley Helper</a>
|
|
167
|
+
·
|
|
168
|
+
<a href="#top">Top of Page</a> ·
|
|
169
|
+
<a href="../index.html">User Guide Home</a> ·
|
|
170
|
+
Next Topic: <a href="text_helper.html">Text Helper</a>
|
|
171
|
+
</p>
|
|
172
|
+
<p><a href="http://codeigniter.com">CodeIgniter</a> · Copyright © 2006-2010 · <a href="http://ellislab.com/">Ellislab, Inc.</a></p>
|
|
173
|
+
</div>
|
|
174
|
+
|
|
175
|
+
</body>
|
|
176
|
+
</html>
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>Text Helper : CodeIgniter User Guide</title>
|
|
7
|
+
|
|
8
|
+
<style type='text/css' media='all'>@import url('../userguide.css');</style>
|
|
9
|
+
<link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript" src="../nav/nav.js"></script>
|
|
12
|
+
<script type="text/javascript" src="../nav/prototype.lite.js"></script>
|
|
13
|
+
<script type="text/javascript" src="../nav/moo.fx.js"></script>
|
|
14
|
+
<script type="text/javascript" src="../nav/user_guide_menu.js"></script>
|
|
15
|
+
|
|
16
|
+
<meta http-equiv='expires' content='-1' />
|
|
17
|
+
<meta http-equiv= 'pragma' content='no-cache' />
|
|
18
|
+
<meta name='robots' content='all' />
|
|
19
|
+
<meta name='author' content='ExpressionEngine Dev Team' />
|
|
20
|
+
<meta name='description' content='CodeIgniter User Guide' />
|
|
21
|
+
|
|
22
|
+
</head>
|
|
23
|
+
<body>
|
|
24
|
+
|
|
25
|
+
<!-- START NAVIGATION -->
|
|
26
|
+
<div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div>
|
|
27
|
+
<div id="nav2"><a name="top"></a><a href="javascript:void(0);" onclick="myHeight.toggle();"><img src="../images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
|
|
28
|
+
<div id="masthead">
|
|
29
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
30
|
+
<tr>
|
|
31
|
+
<td><h1>CodeIgniter User Guide Version 1.7.2</h1></td>
|
|
32
|
+
<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
|
|
33
|
+
</tr>
|
|
34
|
+
</table>
|
|
35
|
+
</div>
|
|
36
|
+
<!-- END NAVIGATION -->
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<!-- START BREADCRUMB -->
|
|
40
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
41
|
+
<tr>
|
|
42
|
+
<td id="breadcrumb">
|
|
43
|
+
<a href="http://codeigniter.com/">CodeIgniter Home</a> ›
|
|
44
|
+
<a href="../index.html">User Guide Home</a> ›
|
|
45
|
+
Text Helper
|
|
46
|
+
</td>
|
|
47
|
+
<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="codeigniter.com/user_guide/" />Search User Guide <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" /> <input type="submit" class="submit" name="sa" value="Go" /></form></td>
|
|
48
|
+
</tr>
|
|
49
|
+
</table>
|
|
50
|
+
<!-- END BREADCRUMB -->
|
|
51
|
+
|
|
52
|
+
<br clear="all" />
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<!-- START CONTENT -->
|
|
56
|
+
<div id="content">
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
<h1>Text Helper</h1>
|
|
60
|
+
|
|
61
|
+
<p>The Text Helper file contains functions that assist in working with text.</p>
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
<h2>Loading this Helper</h2>
|
|
65
|
+
|
|
66
|
+
<p>This helper is loaded using the following code:</p>
|
|
67
|
+
<code>$this->load->helper('text');</code>
|
|
68
|
+
|
|
69
|
+
<p>The following functions are available:</p>
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
<h2>word_limiter()</h2>
|
|
73
|
+
|
|
74
|
+
<p>Truncates a string to the number of <strong>words</strong> specified. Example:</p>
|
|
75
|
+
|
|
76
|
+
<code>
|
|
77
|
+
$string = "Here is a nice text string consisting of eleven words.";<br />
|
|
78
|
+
<br />
|
|
79
|
+
$string = word_limiter($string, 4);<br /><br />
|
|
80
|
+
|
|
81
|
+
// Returns: Here is a nice…
|
|
82
|
+
</code>
|
|
83
|
+
|
|
84
|
+
<p>The third parameter is an optional suffix added to the string. By default it adds an ellipsis.</p>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
<h2>character_limiter()</h2>
|
|
88
|
+
|
|
89
|
+
<p>Truncates a string to the number of <strong>characters</strong> specified. It maintains the integrity
|
|
90
|
+
of words so the character count may be slightly more or less then what you specify. Example:</p>
|
|
91
|
+
|
|
92
|
+
<code>
|
|
93
|
+
$string = "Here is a nice text string consisting of eleven words.";<br />
|
|
94
|
+
<br />
|
|
95
|
+
$string = character_limiter($string, 20);<br /><br />
|
|
96
|
+
|
|
97
|
+
// Returns: Here is a nice text string…
|
|
98
|
+
</code>
|
|
99
|
+
|
|
100
|
+
<p>The third parameter is an optional suffix added to the string, if undeclared this helper uses an ellipsis.</p>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
<h2>ascii_to_entities()</h2>
|
|
105
|
+
|
|
106
|
+
<p>Converts ASCII values to character entities, including high ASCII and MS Word characters that can cause problems when used in a web page,
|
|
107
|
+
so that they can be shown consistently regardless of browser settings or stored reliably in a database.
|
|
108
|
+
There is some dependence on your server's supported character sets, so it may not be 100% reliable in all cases, but for the most
|
|
109
|
+
part it should correctly identify characters outside the normal range (like accented characters). Example:</p>
|
|
110
|
+
|
|
111
|
+
<code>$string = ascii_to_entities($string);</code>
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
<h2>entities_to_ascii()</h2>
|
|
115
|
+
|
|
116
|
+
<p>This function does the opposite of the previous one; it turns character entities back into ASCII.</p>
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
<h2>word_censor()</h2>
|
|
120
|
+
|
|
121
|
+
<p>Enables you to censor words within a text string. The first parameter will contain the original string. The
|
|
122
|
+
second will contain an array of words which you disallow. The third (optional) parameter can contain a replacement value
|
|
123
|
+
for the words. If not specified they are replaced with pound signs: ####. Example:</p>
|
|
124
|
+
|
|
125
|
+
<code>
|
|
126
|
+
$disallowed = array('darn', 'shucks', 'golly', 'phooey');<br />
|
|
127
|
+
<br />
|
|
128
|
+
$string = word_censor($string, $disallowed, 'Beep!');</code>
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
<h2>highlight_code()</h2>
|
|
132
|
+
|
|
133
|
+
<p>Colorizes a string of code (PHP, HTML, etc.). Example:</p>
|
|
134
|
+
|
|
135
|
+
<code>$string = highlight_code($string);</code>
|
|
136
|
+
|
|
137
|
+
<p>The function uses PHP's highlight_string() function, so the colors used are the ones specified in your php.ini file.</p>
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
<h2>highlight_phrase()</h2>
|
|
141
|
+
|
|
142
|
+
<p>Will highlight a phrase within a text string. The first parameter will contain the original string, the second will
|
|
143
|
+
contain the phrase you wish to highlight. The third and fourth parameters will contain the opening/closing HTML tags
|
|
144
|
+
you would like the phrase wrapped in. Example:</p>
|
|
145
|
+
|
|
146
|
+
<code>
|
|
147
|
+
$string = "Here is a nice text string about nothing in particular.";<br />
|
|
148
|
+
<br />
|
|
149
|
+
$string = highlight_phrase($string, "nice text", '<span style="color:#990000">', '</span>');
|
|
150
|
+
</code>
|
|
151
|
+
|
|
152
|
+
<p>The above text returns:</p>
|
|
153
|
+
|
|
154
|
+
<p>Here is a <span style="color:#990000">nice text</span> string about nothing in particular.</p>
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
<h2>word_wrap()</h2>
|
|
159
|
+
|
|
160
|
+
<p>Wraps text at the specified <strong>character</strong> count while maintaining complete words. Example:</p>
|
|
161
|
+
|
|
162
|
+
<code>$string = "Here is a simple string of text that will help us demonstrate this function.";<br />
|
|
163
|
+
<br />
|
|
164
|
+
echo word_wrap($string, 25);<br />
|
|
165
|
+
<br />
|
|
166
|
+
// Would produce:<br />
|
|
167
|
+
<br />
|
|
168
|
+
Here is a simple string<br />
|
|
169
|
+
of text that will help<br />
|
|
170
|
+
us demonstrate this<br />
|
|
171
|
+
function</code>
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
</div>
|
|
177
|
+
<!-- END CONTENT -->
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
<div id="footer">
|
|
181
|
+
<p>
|
|
182
|
+
Previous Topic: <a href="string_helper.html">String Helper</a>
|
|
183
|
+
·
|
|
184
|
+
<a href="#top">Top of Page</a> ·
|
|
185
|
+
<a href="../index.html">User Guide Home</a> ·
|
|
186
|
+
Next Topic: <a href="typography_helper.html">Typography Helper</a>
|
|
187
|
+
</p>
|
|
188
|
+
<p><a href="http://codeigniter.com">CodeIgniter</a> · Copyright © 2006-2010 · <a href="http://ellislab.com/">Ellislab, Inc.</a></p>
|
|
189
|
+
</div>
|
|
190
|
+
|
|
191
|
+
</body>
|
|
192
|
+
</html>
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>Typography Helper : CodeIgniter User Guide</title>
|
|
7
|
+
|
|
8
|
+
<style type='text/css' media='all'>@import url('../userguide.css');</style>
|
|
9
|
+
<link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript" src="../nav/nav.js"></script>
|
|
12
|
+
<script type="text/javascript" src="../nav/prototype.lite.js"></script>
|
|
13
|
+
<script type="text/javascript" src="../nav/moo.fx.js"></script>
|
|
14
|
+
<script type="text/javascript" src="../nav/user_guide_menu.js"></script>
|
|
15
|
+
|
|
16
|
+
<meta http-equiv='expires' content='-1' />
|
|
17
|
+
<meta http-equiv= 'pragma' content='no-cache' />
|
|
18
|
+
<meta name='robots' content='all' />
|
|
19
|
+
<meta name='author' content='ExpressionEngine Dev Team' />
|
|
20
|
+
<meta name='description' content='CodeIgniter User Guide' />
|
|
21
|
+
|
|
22
|
+
</head>
|
|
23
|
+
<body>
|
|
24
|
+
|
|
25
|
+
<!-- START NAVIGATION -->
|
|
26
|
+
<div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div>
|
|
27
|
+
<div id="nav2"><a name="top"></a><a href="javascript:void(0);" onclick="myHeight.toggle();"><img src="../images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
|
|
28
|
+
<div id="masthead">
|
|
29
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
30
|
+
<tr>
|
|
31
|
+
<td><h1>CodeIgniter User Guide Version 1.7.2</h1></td>
|
|
32
|
+
<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
|
|
33
|
+
</tr>
|
|
34
|
+
</table>
|
|
35
|
+
</div>
|
|
36
|
+
<!-- END NAVIGATION -->
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<!-- START BREADCRUMB -->
|
|
40
|
+
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
|
|
41
|
+
<tr>
|
|
42
|
+
<td id="breadcrumb">
|
|
43
|
+
<a href="http://codeigniter.com/">CodeIgniter Home</a> ›
|
|
44
|
+
<a href="../index.html">User Guide Home</a> ›
|
|
45
|
+
Typography Helper
|
|
46
|
+
</td>
|
|
47
|
+
<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="codeigniter.com/user_guide/" />Search User Guide <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" /> <input type="submit" class="submit" name="sa" value="Go" /></form></td>
|
|
48
|
+
</tr>
|
|
49
|
+
</table>
|
|
50
|
+
<!-- END BREADCRUMB -->
|
|
51
|
+
|
|
52
|
+
<br clear="all" />
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<!-- START CONTENT -->
|
|
56
|
+
<div id="content">
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
<h1>Typography Helper</h1>
|
|
60
|
+
|
|
61
|
+
<p>The Typography Helper file contains functions that help your format text in semantically relevant ways.</p>
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
<h2>Loading this Helper</h2>
|
|
65
|
+
|
|
66
|
+
<p>This helper is loaded using the following code:</p>
|
|
67
|
+
<code>$this->load->helper('typography');</code>
|
|
68
|
+
|
|
69
|
+
<p>The following functions are available:</p>
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
<h2>auto_typography()</h2>
|
|
73
|
+
|
|
74
|
+
<p>Formats text so that it is semantically and typographically correct HTML. Please see the <a href="../libraries/typography.html">Typography Class</a> for more info.</p>
|
|
75
|
+
|
|
76
|
+
<p>Usage example:</p>
|
|
77
|
+
|
|
78
|
+
<code>$string = auto_typography($string);</code>
|
|
79
|
+
|
|
80
|
+
<p><strong>Note:</strong> Typographic formatting can be processor intensive, particularly if you have a lot of content being formatted.
|
|
81
|
+
If you choose to use this function you may want to consider
|
|
82
|
+
<a href="../general/caching.html">caching</a> your pages.</p>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
<h2>nl2br_except_pre()</h2>
|
|
86
|
+
|
|
87
|
+
<p>Converts newlines to <br /> tags unless they appear within <pre> tags.
|
|
88
|
+
This function is identical to the native PHP <dfn>nl2br()</dfn> function, except that it ignores <pre> tags.</p>
|
|
89
|
+
|
|
90
|
+
<p>Usage example:</p>
|
|
91
|
+
|
|
92
|
+
<code>$string = nl2br_except_pre($string);</code>
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
</div>
|
|
97
|
+
<!-- END CONTENT -->
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
<div id="footer">
|
|
101
|
+
<p>
|
|
102
|
+
Previous Topic: <a href="text_helper.html">Text Helper</a>
|
|
103
|
+
·
|
|
104
|
+
<a href="#top">Top of Page</a> ·
|
|
105
|
+
<a href="../index.html">User Guide Home</a> ·
|
|
106
|
+
Next Topic: <a href="url_helper.html">URL Helper</a>
|
|
107
|
+
</p>
|
|
108
|
+
<p><a href="http://codeigniter.com">CodeIgniter</a> · Copyright © 2006-2010 · <a href="http://ellislab.com/">Ellislab, Inc.</a></p>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
</body>
|
|
112
|
+
</html>
|