Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

Librería de funciones básicas V1.0 (June, 16th 2009)

Author: Daniel Mühlrad
Copyright: 2009
Version: 1.0
File Size: 131 lines (3 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 7 functions


Functions that are not part of a class:

errorHandler($errno, $errstr, $errfile, $errline)   X-Ref
Make a Handler error with an exception msg error

param: integer $errno
param: string $errstr
param: string $errfile
param: string $errline

file_mime_type($file, $default_type = 'application/octet-stream')   X-Ref
Return de mime-type of a file

param: string $file
param: string $default_type

array_remove_by_value($arr,$value)   X-Ref
No description

array_remove_by_key($arr,$key)   X-Ref
No description

cc_print_object($object)   X-Ref
No description

indexOf($needle, $haystack)   X-Ref
IndexOf - first version of find an element in the Array given
returns the index of the *first* occurance

param: mixed $needle
param: array $haystack
return: mixed The element or false if the function didnt find it

indexOf2($needle, $haystack)   X-Ref
IndexOf2 - second version of find an element in the Array given

param: mixed $needle
param: array $haystack
return: mixed The index of the element or false if the function didnt find it