summaryrefslogtreecommitdiffstats
path: root/system/core/Loader.php
AgeCommit message (Collapse)AuthorFilesLines
2013-02-27Fix this use case: load->vars->('foobar', '')vlakoff1-1/+1
Previously, only the other syntax was working: load->vars->(array('foobar' => ''))
2013-02-21Disable autoloader call from class_exists() occurences to improve performanceAndrey Andreev1-5/+5
Note: The Driver libary tests seem to depend on that, so one occurence in CI_Loader is left until we resolve that.
2013-02-15Various cosmetic fixesvlakoff1-1/+1
2013-01-28Fix issue #2202 and alter Loader Class docsAndrey Andreev1-1/+1
2013-01-28Libraries' filenames must be named in a ucfirst-like mannerAndrey Andreev1-84/+60
2013-01-28Remove unnecessary defined('ENVIRONMENT') checksAndrey Andreev1-3/+3
As suggested in issue #2134 & PR #2149
2013-01-14Replace is_null() with === / !== NULLvlakoff1-4/+4
Exact same behavior, but faster. I also think it's more readable.
2013-01-12Implement autoload model aliasing (#2117)Andrey Andreev1-2/+2
2013-01-06Slight performance improvement by moving some class property initialization ↵Ted Wood1-8/+4
to the class property declarations rather than setting them in the constructor. Subclasses can always override in their own constructor if they wish to. Is there a reason why it was done the way it was done? A policy that I am not aware of?
2013-01-03Replaced array_push function reference with a faster ordinary element ↵and-ers1-1/+1
insertion method
2013-01-01[ci skip] Happy new yearAndrey Andreev1-1/+1
2012-11-25Added support for extending individual driver classes and driver unit testsdchill421-7/+6
Signed-off-by: dchill42 <dchill42@gmail.com>
2012-11-12Fix issue #777Andrey Andreev1-7/+14
2012-11-07Added function_usable() to common functionsAndrey Andreev1-1/+3
It is now used to check whether dangerous functions like eval() and exec() are available. It appears that the Suhosin extension (which is becoming popular) terminates script execution instead of returning e.g. FALSE when it has a function blacklisted. function_exists() checks are insufficient and our only option is to check the ini settings here. Filed an issue here: https://github.com/stefanesser/suhosin/issues/18 ... hopefully we'll be able to deal with this in a more elegant way in the future. (this commit supersedes PR #1809)
2012-11-06Added possibility to pass custom database objects to DB Forge and DB UtilitiesAndrey Andreev1-25/+36
Also, their property is no longer public and the utility class no longer extends CI_DB_forge.
2012-11-05Refactored DB ForgeAndrey Andreev1-1/+14
- PDO subdrivers are isolated from each other now. - Added compatibility for pretty much all of the features, for every DB platform. - Unified the way that stuff works in general. - Fixes issue #1005.
2012-11-03Revert 679525d0237ac2e0a94d7b05377eb31eb3398f19Andrey Andreev1-6/+19
It appears to break get_instance()->*_package_path*() usage which is very common. Need to figure out how to resolve this.
2012-11-02Removed CI_Loader::initialize() and moved its logic to the constructor.Andrey Andreev1-22/+6
That method used to be called by the CI_Controller constructor and was required because of the possibility to instantiate the Controller class twice due to 404_override, and so some properties needed to be reset. Following the last commit - this is no longer the case.
2012-11-01Manually apply PR #1594 (fixing phpdoc page-level generation/warnings)Andrey Andreev1-1/+2
Also partially fixes issue #1295, fixes inconsistencies in some page-level docblocks and adds include checks in language files.
2012-10-27Make CI_Loader::config() a proper alias for CI_Config::load() and improve ↵Andrey Andreev1-134/+152
the Loader class DocBlocks
2012-10-24Fix #191Andrey Andreev1-4/+4
2012-10-24[ci skip] style and phpdoc-related changes (rel #1295)Andrey Andreev1-2/+2
2012-10-05Fix issue #116 + other space/style fixes [ci skipAndrey Andreev1-1/+1
2012-09-02Merge pull request #1727 from pickupman/bugfix-loader-view_fileAlex Bilbie1-3/+3
Fix bug #1000
2012-08-28Fixed multi-driver load return and last-ditch library subdirectory retry ↵dchill421-3/+3
object names
2012-08-27Fixed select_driver(), cookie sess_destroy(), and native cookie name conflictdchill421-1/+7
2012-08-18Fix bug #1000Joe McFrederick1-3/+3
2012-08-08Relocated driver base class inclusion so drivers can be loaded with library()dchill421-13/+13
2012-07-23Merge branch develop of github.com:/EllisLab/CodeIgniter into sessiondchill421-137/+157
2012-07-16Inconsistency between log_message and show_error when encountering a ↵jonnu1-1/+1
non-existant class Signed-off-by: jonnu <jontce@gmail.com>
2012-07-13Loader::model() - rename foreach ($model AS $single_model) to ($model AS ↵Joel Limberg1-2/+2
$class). Consistent with ::library() and ::_ci_load_class()
2012-07-13Rename $babe => $single_model, in foreach ($model AS $babe) {...}joellimberg1-2/+2
2012-07-03Fix an error in Loader code documentationvlakoff1-1/+1
That's not $this->load_vars(), but $this->load->vars()
2012-06-12Fix APPPATHAndrey Andreev1-1/+1
2012-06-04Loader was too specific about === "", some cases were NULL.Phil Sturgeon1-1/+1
Signed-off-by: Phil Sturgeon <email@philsturgeon.co.uk>
2012-06-02Don't assume $_ci_path is a string (could be FALSE)Alex Bilbie1-1/+1
2012-06-02Replaced `==` with `===` and `!=` with `!==` in /system/coreAlex Bilbie1-13/+13
2012-05-17Cleanup the core classesAndrey Andreev1-19/+16
2012-04-26Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into patchTimothy Warren1-8/+8
2012-04-26Merge pull request #1262 from Korri/developPhil Sturgeon1-2/+2
Fix Issue #627
2012-04-26Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into developJamie Rumbelow1-32/+40
Conflicts: system/core/Loader.php system/database/DB_query_builder.php system/database/drivers/cubrid/cubrid_driver.php system/database/drivers/mssql/mssql_driver.php system/database/drivers/mysql/mysql_driver.php system/database/drivers/mysqli/mysqli_driver.php system/database/drivers/oci8/oci8_driver.php system/database/drivers/odbc/odbc_driver.php system/database/drivers/pdo/pdo_driver.php system/database/drivers/postgre/postgre_driver.php system/database/drivers/sqlite/sqlite_driver.php user_guide_src/source/changelog.rst user_guide_src/source/database/query_builder.rst
2012-04-23Use tabs to separate class propertiesTimothy Warren1-11/+11
2012-04-19Additional formatting fixesTimothy Warren1-14/+25
2012-04-19Normalize comments in core filesTimothy Warren1-2/+0
2012-04-17Adding a package adds configuration folder to the end of the list.Korri1-2/+2
2012-03-28Fix a CI_Loader::_ci_load_class() bugAndrey Andreev1-1/+1
2012-03-26Some style adjustments and fixed comments in the Loader classAndrey Andreev1-30/+29
2012-03-10Fixing some spacing.Christopher Guiney1-2/+2
2012-03-10Allow drivers to be loaded as an array, like models and libraries.Christopher Guiney1-1/+10
2012-03-09Merge branch 'develop' of github.com:EllisLab/CodeIgniter into developPhil Sturgeon1-1/+1