| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 332 lines (10 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
object:: (9 methods):
init_performance_info()
raise_memory_limit()
get_real_size()
make_upload_directory()
setup_is_unicodedb()
set_dbfamily()
preconfigure_dbconnection()
init_memcached()
init_eaccelerator()
| init_performance_info() X-Ref |
| Initializes our performance info early. Pairs up with get_performance_info() which is actually in moodlelib.php. This function is here so that we can call it before all the libs are pulled in. |
| raise_memory_limit($newlimit) X-Ref |
| Function to raise the memory limit to a new value. Will respect the memory limit if it is higher, thus allowing settings in php.ini, apache conf or command line switches to override it The memory limit should be expressed with a string (eg:'64M') param: string $newlimit the new memory limit return: bool |
| get_real_size($size=0) X-Ref |
| Converts numbers like 10M into bytes. param: mixed $size The size to be converted return: mixed |
| make_upload_directory($directory, $shownotices=true) X-Ref |
| Create a directory. param: string $directory a string of directory names under $CFG->dataroot eg stuff/assignment/1 return: string|false Returns full path to directory if successful, false if not |
| setup_is_unicodedb() X-Ref |
| This function will introspect inside DB to detect it it's a UTF-8 DB or no Used from setup.php to set correctly "set names" when the installation process is performed without the initial and beautiful installer |
| set_dbfamily() X-Ref |
| This internal function sets and returns the proper value for $CFG->dbfamily based on $CFG->dbtype It's called by preconfigure_dbconnection() and at install time. Shouldn't be used in other places. Code should rely on dbfamily to perform conditional execution instead of using dbtype directly. This allows quicker adoption of different drivers going against the same DB backend. This function must contain the init code needed for each dbtype supported. return string dbfamily value (mysql, postgres, oracle, mssql) |
| preconfigure_dbconnection() X-Ref |
| This internal function, called from setup.php BEFORE stabilishing the DB connection, defines the $CFG->dbfamily global -by calling set_dbfamily()- and predefines some constants needed by ADOdb to switch some default behaviours. This function must contain all the pre-connection code needed for each dbtype supported. |
| init_memcached() X-Ref |
| No description |
| init_eaccelerator() X-Ref |
| No description |
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |