Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

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

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