| [ Index ] |
PHP Cross Reference of MantisBT |
[Source view] [Print] [Project Stats]
Install Helper Functions API
| Copyright: | Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org |
| Copyright: | Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net |
| File Size: | 391 lines (13 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| check_php_version( $p_version ) X-Ref |
| Checks a PHP version number against the version of PHP currently in use param: string $p_version Version string to compare return: bool true if the PHP version in use is equal to or greater than the supplied version string |
| db_null_date() X-Ref |
| Legacy pre-1.2 date function used for upgrading from datetime to integer representation of dates in the database. return: string Formatted date representing unixtime(0) + 1 second, ready for database insertion |
| db_unixtimestamp( $p_date = null, $p_gmt = false ) X-Ref |
| Legacy pre-1.2 date function used for upgrading from datetime to integer representation of dates in the database. This function converts a formatted datetime string to an that represents the number of seconds elapsed since the Unix epoch. param: string $p_date Formatted datetime string from a database param: bool $p_gmt Whether to use UTC (true) or server timezone (false, default) return: int Unix timestamp representation of a datetime string |
| install_category_migrate() X-Ref |
| Migrate the legacy category data to the new category_id-based schema. |
| install_date_migrate( $p_data) X-Ref |
| No description |
| install_correct_multiselect_custom_fields_db_format() X-Ref |
| Once upon a time multi-select custom field types (checkbox and multiselect) were stored in the database in the format of "option1|option2|option3" where they should have been stored in a format of "|option1|option2|option3|". Additionally, radio custom field types were being stored in the database with an unnecessary vertical pipe prefix and suffix when there is only ever one possible value that can be assigned to a radio field. |
| install_stored_filter_migrate() X-Ref |
| The filters have been changed so the field names are the same as the database field names. This updates any filters stored in the database to use the correct keys. The 'and_not_assigned' field is no longer used as it is replaced by the meta filter None. This removes it from all filters. |
| install_do_nothing() X-Ref |
| No description |
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |