Commit Graph

1801 Commits (19a6a30906d7ec9a2a57c4fe59cd680960c1fcb9)

Author SHA1 Message Date
Ivan Tcholakov f83ae8a87f [svn r21528] FS#306 - The multi-byte string library: Adding new functions for reverse string comparisons - api_strcasercmp(), api_strrcmp(), api_strnatcasercmp(), api_strnatrcmp(). They are handy to be used as callback functions. 17 years ago
Ivan Tcholakov 8f367c5921 [svn r21527] FS#306 - The multi-byte string library: Adding new functions for sorting by keys - api_knatsort(), api_knatrsort(), api_knatcasesort(), api_knatcasersort(). 17 years ago
Ivan Tcholakov 195b64fd61 [svn r21526] FS#306 - The multi-byte string library: Adding new functions for sorting - api_natrsort(), api_natcasersort(). 17 years ago
Ivan Tcholakov 814e9c8fad [svn r21525] FS#306 - The multi-byte string library: Correcting some comments. 17 years ago
Isaac Flores c3d8444219 [svn r21523] Minor - logic changes - allow order by course category - (partial FS#4348) 17 years ago
Isaac Flores 10fb70e2f5 [svn r21522] minor - logic changes - improvements in search tool - (partial FS#4346) 17 years ago
Ivan Tcholakov 36822efe49 [svn r21520] FS#306 - Class TableSort: Applying natural order for string comparisons, cleaning some code. 17 years ago
Isaac Flores cd11f01812 [svn r21519] minor - logic changes - allow see human message error - (partial FS#4346) 17 years ago
Ivan Tcholakov 1eb4931462 [svn r21518] FS#306 - Fixing some incorrect calls of the function sort(). 17 years ago
Ivan Tcholakov ad7f604358 [svn r21516] FS#306 - The multibyte string library: Adding two functions for language-sensitive sorting in "natural order" - api_natsort() and api_natcasesort(). 17 years ago
Ivan Tcholakov 501c1ed0a3 [svn r21514] FS#306 - The multibyte string library: Adding two functions for language-sensitive sorting in "natural order" - api_strnatcmp() and api_strnatcasecmp(). 17 years ago
Ivan Tcholakov 96c9cf38f3 [svn r21513] FS#306 - The multibyte string library: Some minor corrections in the comments. 17 years ago
Ivan Tcholakov d17be586a8 [svn r21510] FS#306 - The multibyte string library: Adding functions for language-sensitive sorting - api_ksort() and api_krsort(). 17 years ago
Ivan Tcholakov ebe7832bea [svn r21509] FS#306 - The multibyte string function: Adding functions for language-sensitive sorting - api_asort() and api_arsort(). 17 years ago
Ivan Tcholakov a409e16979 [svn r21508] FS#306 - The multibyte string function: Adding functions for language-sensitive sorting - api_sort() and api_rsort(). 17 years ago
Ivan Tcholakov d18c4da1da [svn r21480] FS#306 - The multi-byte string library: Reworking of the function api_strcasecmp(). 17 years ago
Ivan Tcholakov 1df78517c1 [svn r21477] FS#306 - The multi-byte string library: Implementation of a new function for case-sensitive string comparison api_strcmp(). When intl extension is installed, this function depends internally on the more reliable ICU locale, not on OS POSIX locale. Replacing strcmp() with api_strcmp() in some relevant places. Reworking of TableSort::sort_table() for avoiding unnecessary recursive calls. 17 years ago
Ivan Tcholakov 8667c7c752 [svn r21472] FS#306 - The multi-byte string library: Various reworks, introducing support for ICU localses (intl extension from PECL). The goal is the routines of this extension to be used (if ii is installed) for proper comparison of UTF-8 strings in any language. 17 years ago
Ivan Tcholakov 911255f364 [svn r21471] FS#306 - Renaming the function api_initialize_internal_encoding() to api_set_default_encoding(). Other minor changes in comments. 17 years ago
Ivan Tcholakov 5cf040b518 [svn r21467] FS#306 - Reworking the functions api_get_language_isocode() and Database::get_language_isocode() for avoiding code duplication. Caching of the returned results has been added to avoid running repetitive sql-queries. 17 years ago
Arthur Portugal 7e1e36810f [svn r21458] Minor -Added documentation to the function query 17 years ago
Arthur Portugal c1b54b6f19 [svn r21456] Minor - Added @param documentation 17 years ago
Ivan Tcholakov 1c5c1f3c8f [svn r21432] FS#306 - Adding the Microsoft's alias CP65001 within the function api_get_file_system_encoding() to be recognized as UTF-8. 17 years ago
Ivan Tcholakov 83bef50300 [svn r21415] FS#306 - Removing previously introduced functions api_is_apache and api_is_iis(), they wont be needed. Introducing new functions in the multi-byte string library: api_initialize_internal_encoding($encoding), api_is_latin1_compatible(), api_get_latin1_compatible_languages(). Minor corrections for api_in_array_nocase() and api_refine_language_id(). Corrections in some comments. 17 years ago
Ivan Tcholakov 348c4b1928 [svn r21413] FS#306 - The installation script has logic for guessing/choosing the encoding of its pages, which is Apache-specific. For improvement/upgrading this logic and for other web-server specific needs, two functions have been added in the main API for web-server detection - api_is_apache() and api_is_iis(). The detection condition have been taken from WordPress 2.8, http://wordpress.org, GNU/GPL 2. 17 years ago
Ivan Tcholakov 45a564b5e5 [svn r21412] FS#306 - File uploader: Fixing the function add_ext_on_mime() properly to detect file extension presense on non-ASCII encoded file name. This, this function will not duplicate sometimes the file extension in its result. 17 years ago
Ivan Tcholakov ff618015cb [svn r21411] FS#306 - The global initialization script: Commenting a duplicate code for initialization of the global variable $charset, to be removed. Offtopic: A minor correction within the table that serves the function add_ext_on_mime() - for 'text/html' MIME type the '.html' extension will be assigned instead of '.htm'. 17 years ago
Ivan Tcholakov cb7dfe777b [svn r21406] FS#306 - Modification of the function replace_dangerous_char(). For Latin 1 platforms (ISO-8859-15, ISO-8859-1, WINDOWS-1252, ...) its behaviour has been preserved. For other platforms (including UTF-8) safe ASCII file names are generated through using transliteration. 17 years ago
Ivan Tcholakov f943595f2a [svn r21405] FS#306 - The multi-byte string library: Adding the function api_is_latin1($encoding) for detection aliases of the Latin 1 character set - ISO-8859-15, ISO-8859-1, WINDOWS-1252, CP1252, ... . Typically this function will be needed for code that provides backward compatibility for Latin 1 Dokeos sites. 17 years ago
Ivan Tcholakov 511972892f [svn r21394] FS#306 - The multi-byte string library: Corrections in the comments about the transliteration function. Renaming a variable according to our rules. 17 years ago
Ivan Tcholakov 5ff36ef2ef [svn r21392] FS#306 - The multi-byte string library: Adding a function that performs transliteration from UTF-8 to ASCII. Adding also a required database with character replacements. The solution has been adapted from the source code of the Drupal's module "Transliteration", version 6.x-2.1, 09-JUN-2009. 17 years ago
Ivan Tcholakov 2b4e07706d [svn r21389] FS#306 - Adding a boolen parameter $purified to the function api_get_interface_language(). For example, when $purified is true, the function will return 'french' onstead of 'french_unicode'. In certain cases we need such purified or refined language identificators. 17 years ago
Arthur Portugal 2466201750 [svn r21385] Minor - Added documentation 17 years ago
Ricardo Rodriguez 2a028f06bb [svn r21384] Minor - add documentation to functions display_rating and display_rating_form 17 years ago
Ivan Tcholakov 7fcede25e5 [svn r21382] FS#306 - The multi-byte string library: Making the function api_is_valid_utf8() unaffected by the PHP ini-setting mbstring.func_overload. 17 years ago
Arthur Portugal 575563e5e3 [svn r21378] Minor - Added documentation 17 years ago
Ivan Tcholakov ba204fa167 [svn r21360] FS#306 - Cancellation of the new file system API, cleaning the file system library. There is no rational reason to go this way, too much work is needed. 17 years ago
Arthur Portugal 65ba1076e3 [svn r21358] Validated the function "resize_picture" if exist the library image with help SimpleTest. 17 years ago
Arthur Portugal 59fae4d6d7 [svn r21357] Minor - Added documentation 17 years ago
Arthur Portugal 7dbe707ccd [svn r21353] Minor - Added documentation in some functions 17 years ago
Noël Dieschburg 63a61ef5c2 [svn r21315] Setting the tempdir to $garbageRpositorySys. Without this it doesn't work in document/downloadfolder.inc.php 17 years ago
Juan Carlos Raña 1612e47200 [svn r21275] Wiki -improve the cleanliness of the code is inserted. Where many users tend to modify pages, there are some unwanted tags 17 years ago
Ivan Tcholakov 6cf51a738c [svn r21274] FS#306 - The multi-byte string library: Adding a function that calculates correctly length of binary data (as number of bytes) regardless the PHP configuration (See the ini-setting mbstring.func_overload). This function may be upgraded for PHP6 in the future. 17 years ago
Ivan Tcholakov 2346de5a39 [svn r21273] FS#306 - A minor addition as comment - a reference link has been added inside the file system API. 17 years ago
Ivan Tcholakov aafc3e4b11 [svn r21272] FS#306 - Introducing more function in the file system API. 17 years ago
Ivan Tcholakov 84b00a8c7c [svn r21254] FS#306 - Adding the functions api_is_dir() and api_is_system_path() within the new low-level API to the file system. A minor fix for the function api_url_to_local_path() within the main API. 17 years ago
Arthur Portugal 650cb1810e [svn r21250] The corresponding database doesn't exist anymore (by yannoo) 17 years ago
Ivan Tcholakov 1726ed6060 [svn r21249] FS#306 - Introducing a new library that will re-implement some PHP file system related functions. These replacement functions will deal with the diffenrent encodings that are used by the Dokeos platform and the server's file system. 17 years ago
Ivan Tcholakov 3efbdbf6e8 [svn r21246] FS#306 - Introducing two conversion functions: api_file_system_encode() and api_file_system_decode(). 17 years ago
Ivan Tcholakov 7097eb634b [svn r21217] FS#306 - Introducing a new function api_get_file_system_encoding(). Guessing file system encoding is tricky, some corrections in this function are possible. 17 years ago