Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401]

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