Commit Graph

367 Commits (f01451513160ad86936e3e7f148c29fafdac7ad3)

Author SHA1 Message Date
Ivan Tcholakov fd9314ca09 Feature #306 - Removing the function remove_accents(). It is useless in contemporary code. 16 years ago
Ivan Tcholakov 66d5d81ec3 Feature #5397 - Replacing mysql_result() with Database::result(). 16 years ago
Ivan Tcholakov bb90a73e87 Feature #5397 - Replacing mysql_real_escape_string() with Database::escape_string(). 16 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(). 16 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. 16 years ago
Ivan Tcholakov f87ebd4795 Feature #5397 - Replacing mysql_fetch_object() with Database::fetch_object(). Installation scripts are skipped in this transaction. 16 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. 16 years ago
Ivan Tcholakov 514484dc21 Backed out of changeset 8493:a9efb5e0c834 16 years ago
Yannick Warnier 47022680ce Accept gzopen64() too as a test of the zlib extension load 16 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. 16 years ago
Ivan Tcholakov 6b143ae62f Feature #306 - Fixing the test for the function api_get_valid_language(). 16 years ago
Ivan Tcholakov 626d44cffd Feature #306 - Database records have been opened for Occitan and Traditional Chinese languages. 16 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. 16 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. 16 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. 16 years ago
Ivan Tcholakov 24c89663c3 Feature #306 - Replacing the function api_sql_query() with Database::query() within all the system testing units. 16 years ago
Ivan Tcholakov 1691a61b05 Feature #306 - Removing the formal test for the function api_sql_query(). 16 years ago
Ivan Tcholakov 302eb4dc0e Feature #306 - Replacing everywhere the function api_store_result() with Database::store_result(). 16 years ago
Ivan Tcholakov 7409c475af Feature #306 - Fixing logic about encoding aliases recognition in the internationalization library. 16 years ago
Ivan Tcholakov c6b8d1ff63 Feature #306 - Removing the obsolete library file media.lib.php. 16 years ago
Ivan Tcholakov 965f0ad605 Feature #306 - Trimming totally trailing whitespace in php-source files, part 3 (final), 161 files. 16 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). 16 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). 16 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. 16 years ago
Ivan Tcholakov 0c5a7d4857 Issue #306 - Platform admin, session import tool: Applying validation for course languages, fixing a conflict between global variables. 16 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(). 16 years ago
Ivan Tcholakov 88fffff15f Issue #306 - Cleaning trailing whitespace in some files. 16 years ago
Ivan Tcholakov c10679b2f4 Issue #306 - The multibyte string library: Making the function api_detect_xml_encoding() more convenient for use. 16 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(). 16 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. 16 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. 16 years ago
Ivan Tcholakov 146468b7f9 Issue #306 - Replacing the implementation of api_str_ireplace() with a better one. 16 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. 16 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. 16 years ago
Ivan Tcholakov c3c4275f33 Issue #306: Reworks about the initialization of the multibyte string library. 16 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. 16 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. 16 years ago
Ivan Tcholakov f42ed072f3 Task #2867 - The online editor: Adding a new plugin asciimath for entering mathematical formulas, based on the ASCIIMathML.js library. 16 years ago
Ricardo Rodriguez 1b752b6f52 [svn r22386] Minor - created new function test 16 years ago
Ricardo Rodriguez 2bf9880dd9 [svn r22367] Minor - create new function test and new test file all.test1.php 16 years ago
Ricardo Rodriguez 3e5533dd7c [svn r22358] Minor - documented function test updateProgress because produced a fatal error to the requere_one 16 years ago
Ricardo Rodriguez 3a64533374 [svn r22355] Minor - update commit 16 years ago
Ricardo Rodriguez c480d44c37 [svn r22354] Minor - implemented function test to the legal.lib 16 years ago
Arthur Portugal f6b07888b8 [svn r22346] Removed var dump 16 years ago
Arthur Portugal 4c69a17af0 [svn r22344] Removed instance in this test case 16 years ago
Arthur Portugal d029509fe6 [svn r22343] Removed instance and name same like the construct 16 years ago
Ricardo Rodriguez 771dd748be [svn r22341] Minor - add new function test isn't yet complete 16 years ago
Arthur Portugal 1e6dd87ddf [svn r22340] Removed instance in social 16 years ago
Arthur Portugal 30bb60b641 [svn r22339] Removed instance in session manager 16 years ago
Arthur Portugal 17974744a4 [svn r22337] Deleted instance group manager 16 years ago