Commit Graph

451 Commits (2b79ce8ec248538cb199925d22ff6df223498551)

Author SHA1 Message Date
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
Ivan Tcholakov c42ebb542d Issue #306 - Testing the multibyte string library, a correction in the tester has been done. 15 years ago
Ivan Tcholakov b76924e465 Issue #306 - The multibyte string library: Testing and corrections, a formal standalone test has been added. Two encodings are added for support. Improved logic to deal with encoding aliases. It seems that installed mbstring extension is not a mandatory requirement anymore. The php-extensions mbstring and iconv are optional: for speed or for supporting some exotic encodings. 15 years ago
Ivan Tcholakov c3c4275f33 Issue #306: Reworks about the initialization of the multibyte string library. 15 years ago
Ivan Tcholakov a3cb586fd0 Issue #306 - The multibute string library: Restructuring the functions - those for internal use are renamed and moved in the correspondent file. 15 years ago
Arthur Portugal 64584c7d07 Updated sub_language added only one function 15 years ago
Ivan Tcholakov ecfb9ea136 Task #306 - The myltibyte string library: Making the library less dependable on the mbstring extension. Adding derivate UTF-8 aware pcre functions. 15 years ago
Arthur Portugal d9d9091591 Updated with the ricardo merge 16 years ago
Arthur Portugal e2f1f140a1 Added sub_language.class.php into all.test3 and new file all test3 16 years ago
Ricardo Rodriguez 8dcaa9af8e Addes new files test 16 years ago
Ricardo Rodriguez 28e2fec76f Added new test function with new class 16 years ago
Arthur Portugal 5c4711454a Added the file all.test3 with test type class 16 years ago
Arthur Portugal fe79e3eab9 Fixed fail in get main user info 16 years ago
Arthur Portugal 732e36641f Changed the name scorm by newscorm 16 years ago
Arthur Portugal 9fdc265444 Updated the all test2 16 years ago
Arthur Portugal a8b3732a57 Updated the file work with new tests 16 years ago
Ricardo Rodriguez 2bebc563e4 update and refreshing file test function install_upgrade.lib.test.php 16 years ago
Ricardo Rodriguez e63720653a Added new require_once to the test function survey with the api_get_path(SYS_CODE_PATH) 16 years ago