Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Functions
functions.php File Reference

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

Functions

 array_remove_by_key ($arr, $key)
 
 array_remove_by_value ($arr, $value)
 
 cc_print_object ($object)
 
 errorHandler ($errno, $errstr, $errfile, $errline)
 Make a Handler error with an exception msg error. More...
 
 file_mime_type ($file, $default_type='application/octet-stream')
 Return de mime-type of a file. More...
 
 indexOf ($needle, $haystack)
 IndexOf - first version of find an element in the Array given returns the index of the first occurance. More...
 
 indexOf2 ($needle, $haystack)
 IndexOf2 - second version of find an element in the Array given. More...
 

Detailed Description

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

Function Documentation

◆ errorHandler()

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

Make a Handler error with an exception msg error.

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