Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
functions.php File Reference

Functions

 array_remove_by_key ($arr, $key)
 
 array_remove_by_value ($arr, $value)
 
 cc_print_object ($object)
 
 errorHandler ($errno, $errstr, $errfile, $errline)
 Librería de funciones básicas V1.0 (June, 16th 2009)
 
 file_mime_type ($file, $default_type='application/octet-stream')
 Return de mime-type of a file.
 
 indexOf ($needle, $haystack)
 IndexOf - first version of find an element in the Array given returns the index of the first occurance.
 
 indexOf2 ($needle, $haystack)
 IndexOf2 - second version of find an element in the Array given.
 

Function Documentation

◆ errorHandler()

errorHandler ( $errno,
$errstr,
$errfile,
$errline )

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

Author
Daniel Mühlrad @externalurl danie.nosp@m.l.mu.nosp@m.hlrad.nosp@m.@uvc.nosp@m.ms.co.nosp@m.m
Version
1.0
Parameters
integer$errno
string$errstr
string$errfile
string$errline

◆ file_mime_type()

file_mime_type ( $file,
$default_type = 'application/octet-stream' )

Return de mime-type of a file.

Parameters
string$file
string$default_type

◆ indexOf()

indexOf ( $needle,
$haystack )

IndexOf - first version of find an element in the Array given returns the index of the first occurance.

Parameters
mixed$needle
array$haystack
Return values
mixedThe element or false if the function didnt find it

◆ indexOf2()

indexOf2 ( $needle,
$haystack )

IndexOf2 - second version of find an element in the Array given.

Parameters
mixed$needle
array$haystack
Return values
mixedThe index of the element or false if the function didnt find it