Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/backup/cc/cc_lib/gral_lib/functions.php File Reference

Go to the source code of this file.

Functions

 errorHandler ($errno, $errstr, $errfile, $errline)
 file_mime_type ($file, $default_type= 'application/octet-stream')
 array_remove_by_value ($arr, $value)
 array_remove_by_key ($arr, $key)
 cc_print_object ($object)
 indexOf ($needle, $haystack)
 indexOf2 ($needle, $haystack)

Function Documentation

array_remove_by_key ( arr,
key 
)

Definition at line 85 of file functions.php.

array_remove_by_value ( arr,
value 
)

Definition at line 79 of file functions.php.

cc_print_object ( object)

Definition at line 91 of file functions.php.

errorHandler ( errno,
errstr,
errfile,
errline 
)

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

Author:
Daniel Mühlrad .com 1.0 2009 Make a Handler error with an exception msg error integer $errno string $errstr string $errfile string $errline

Definition at line 39 of file functions.php.

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

Return de mime-type of a file

Parameters:
string$file
string$default_type

Definition at line 54 of file functions.php.

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
Returns:
mixed The element or false if the function didnt find it

Definition at line 105 of file functions.php.

Here is the caller graph for this function:

indexOf2 ( needle,
haystack 
)

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

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

Definition at line 123 of file functions.php.

 All Data Structures Namespaces Files Functions Variables Enumerations