Commit Graph

314 Commits (3fbd68b47f9cdea986faba2e62c73c45c2608eb9)

Author SHA1 Message Date
Yannick Warnier 5c2d63af45 Updated memory limit (tests) 15 years ago
Yannick Warnier aad07d13d8 Updated memory limit (tests) 15 years ago
Yannick Warnier d87d284257 Removed unnecessary mock object lib loading 15 years ago
Yannick Warnier 847ad68d3a Use valid prefix for databases 15 years ago
Yannick Warnier ec83fff578 Removed unnecessary mock object lib loading 15 years ago
Yannick Warnier a1466934ac Removed xajax tests as they are deprecated 15 years ago
Yannick Warnier e8553c3af1 Removed function call 15 years ago
Ricardo Rodriguez cc5018021b Added new function test in announcements #3553 15 years ago
Ricardo Rodriguez 961a9f75d4 Fixed function test language.class.test.php DT#3553 15 years ago
Ricardo Rodriguez ce32b45a3d Added new testing function of sub_language.class.php 15 years ago
Isaac Flores Paz cef78c260a test 15 years ago
Ivan Tcholakov 1e4c271941 Feature #306 - Upgrading the function api_check_password(). Comments are added. 15 years ago
Ivan Tcholakov 942f562e44 Feature #306 - Internationalization API: Implementation of two new functions api_chr() and api_ord(). 15 years ago
Ivan Tcholakov c81137da87 Feature #306 - Removing the function replace_accents(). This function is not needed anymore. 15 years ago
Ivan Tcholakov fd9314ca09 Feature #306 - Removing the function remove_accents(). It is useless in contemporary code. 15 years ago
Ivan Tcholakov 66d5d81ec3 Feature #5397 - Replacing mysql_result() with Database::result(). 15 years ago
Ivan Tcholakov bb90a73e87 Feature #5397 - Replacing mysql_real_escape_string() with Database::escape_string(). 15 years ago
Ivan Tcholakov e5c9dddad1 Feature #5397 - There are two methods in Database class that do the same thing: Database::get_last_insert_id() and Database::insert_id(). Let us deprecate Database::get_last_insert_id(), it is longer and it doesn't follow the intuitive pattern for replacement mysql_* --> Database::*. Replacing Database::get_last_insert_id() with Database::insert_id(). 15 years ago
Ivan Tcholakov ada9c84124 Feature #5397 - Replacing mysql_fetch_array() with Database::fetch_array(). Installation scripts and some other files are skipped in this transaction. 15 years ago
Ivan Tcholakov f87ebd4795 Feature #5397 - Replacing mysql_fetch_object() with Database::fetch_object(). Installation scripts are skipped in this transaction. 15 years ago
Ivan Tcholakov de0ec5ca3d Feature #306 - Line endigs cohrrence, Part 3: Converting \r\n line endings (Windows style) to \n (Unix style) in php, html, js, xml, txt files. 15 years ago
Ivan Tcholakov 514484dc21 Backed out of changeset 8493:a9efb5e0c834 15 years ago
Yannick Warnier 47022680ce Accept gzopen64() too as a test of the zlib extension load 15 years ago
Ivan Tcholakov df06189daf Feature #306 - The internationalization library: The function api_refine_language_id() ahs been renamed as api_purify_language_id(). I hope, the new name is more understandable. 15 years ago
Ivan Tcholakov 6b143ae62f Feature #306 - Fixing the test for the function api_get_valid_language(). 15 years ago
Ivan Tcholakov 626d44cffd Feature #306 - Database records have been opened for Occitan and Traditional Chinese languages. 15 years ago
Ivan Tcholakov 2041d470ae Feature #306 - Fixing the function api_get_language_isocode() so it could return correct results using "dirty" language identifiers. The languages occitan, trad_chinese, trad_chinese_unicode have no corresponding records in the database. I have to open them. 15 years ago
Ivan Tcholakov 11e58b71bc Feature #306 - Moving the function api_get_language_isocode() in the internationalization library. Deprecation of Database::get_language_isocode(). Making a formal test for api_get_language_isocode(). At the moment the test fails, some expexted values are not returned. This has to be fixed. 15 years ago
Ivan Tcholakov 7373315387 Feature #306 - The function api_validate_language() has been renamed as api_get_valid_language(). This new name is accurate, the function is not a validator, but a filter. 15 years ago
Ivan Tcholakov 24c89663c3 Feature #306 - Replacing the function api_sql_query() with Database::query() within all the system testing units. 15 years ago
Ivan Tcholakov 1691a61b05 Feature #306 - Removing the formal test for the function api_sql_query(). 15 years ago
Ivan Tcholakov 302eb4dc0e Feature #306 - Replacing everywhere the function api_store_result() with Database::store_result(). 15 years ago
Ivan Tcholakov 7409c475af Feature #306 - Fixing logic about encoding aliases recognition in the internationalization library. 15 years ago
Ivan Tcholakov c6b8d1ff63 Feature #306 - Removing the obsolete library file media.lib.php. 15 years ago
Ivan Tcholakov 965f0ad605 Feature #306 - Trimming totally trailing whitespace in php-source files, part 3 (final), 161 files. 15 years ago
Ivan Tcholakov 08ec99208d Feature #306 - A rework of the function api_get_path(), essential moments are commented. The obsolete setting $GLOBALS['clarolineRepositorySys'] is not used by api_get_path() anymore. Support for the installation process has been added. Functionality has been upgraded with a mechanism for quering about specific "registered" resource files (scripts, players). Another upgrade is adding conversion between types of paths, i.e. between web absolute (WEB), system absolute (SYS), web semi-absolute (REL). Conversion is guaranteed for paths inside Dokeos. A formal test for api_get_path() has been developed. You may see it (there are lots of examples inside) by using URL similar to this one: http://localhost/dokeos/tests/main_api.lib.test_standalone.php . And a discovered mistake for mimetex configuration autodetectoin (a missing last slash) has been fixed (it seems to me there is another minor one - wrong processing URLs with port number, it will be fixed later). 15 years ago
Ivan Tcholakov e197cb109e Feature #306 - Replacing the ugly construct (my workaround) @getimagesize(api_url_to_local_path($image_path)) with a better one: api_getimagesize($image_path). 15 years ago
Ivan Tcholakov d9e28e4439 Feature #306 - Moving the function rmdirr() into the main API file. 15 years ago
Ivan Tcholakov 91f2b784f6 Feature #306 - It is all about internationalization: Moving code form the multibyte string library (which is removed as of now) to the internationalization library. 15 years ago
Ivan Tcholakov 80852449a8 Feature #306 - Trimming whitespace in a source file - all tests. 15 years ago
Ivan Tcholakov 0c5a7d4857 Issue #306 - Platform admin, session import tool: Applying validation for course languages, fixing a conflict between global variables. 15 years ago
Ivan Tcholakov d477a7ce9d Issue #306 - The multibyte string library: The function api_detect_xml_encoding() has been renamed as api_detect_encoding_xml(). New functions have been added: api_convert_encoding_xml(), api_utf8_encode_xml(), api_utf8_decode_xml(). 15 years ago
Ivan Tcholakov 88fffff15f Issue #306 - Cleaning trailing whitespace in some files. 15 years ago
Ivan Tcholakov c10679b2f4 Issue #306 - The multibyte string library: Making the function api_detect_xml_encoding() more convenient for use. 15 years ago
Ivan Tcholakov a18b877fb5 Issue #306 - The multibyte string library: Adding new functions: api_detect_xml_encoding(), api_is_language_supported(), api_validate_language(). 15 years ago
Ivan Tcholakov 0ac2e538a5 Issue #306 - The multibute string library: Adding the function api_strripos() wich is found as needed for Dokeos LMS. Adding in the main API two constants for PHP5 subversion detection. 15 years ago
Ivan Tcholakov d007d59a99 Bug #5208 - SCORM courses: Fixing deletion of a SCORM course, based on the proposal by Christophe, see http://www.dokeos.com/forum/viewtopic.php?t=29673. The pesent solution works on Windows OS too. A new library file rmdirr.lib.php has been created (and revised), also, a formal test for this library file has been added. 15 years ago
Ivan Tcholakov 0f78b8955b Feature #3287 - Replacement call of the deprecated function get_setting() with api_get_setting(). The function get_setting() will be deleted in the main API in Dokeos 1.8.7, the this task #3287 will be closed. Nothing is to be tested at the moment. 15 years ago
Ivan Tcholakov 146468b7f9 Issue #306 - Replacing the implementation of api_str_ireplace() with a better one. 15 years ago
Ivan Tcholakov c5a9ffb9bb Issue #306 - Testing the multibyte string library, corrections about the functions api_ucwords() and api_substr_replace(). Now the stanalone test makes successfully all passes (135) on Windows and Linux machines. 15 years ago