Elgg  Version 2.3
Functions
deprecated-1.10.php File Reference

Go to the source code of this file.

Functions

 file_get_simple_type ($mime_type)
 Returns the category of a file from its MIME type. More...
 
 file_get_general_file_type ($mime_type)
 Returns the category of a file from its MIME type. More...
 
 elgg_get_access_object ()
 Returns an object with methods set_ignore_access() and get_ignore_access() for back compatibility. More...
 
 generate_user_password (\ElggUser $user, $password)
 Create a legacy password hash (salted MD5). More...
 

Function Documentation

elgg_get_access_object ( )

Returns an object with methods set_ignore_access() and get_ignore_access() for back compatibility.

Note: This no longer promises to return an instance of ElggAccess or Elgg.

Returns
Since
1.7.0 private

Definition at line 39 of file deprecated-1.10.php.

file_get_general_file_type (   $mime_type)

Returns the category of a file from its MIME type.

Parameters
string$mime_typeThe MIME type
Returns
string 'document', 'audio', 'video', or 'general' if the MIME type is unrecognized

Definition at line 24 of file deprecated-1.10.php.

file_get_simple_type (   $mime_type)

Returns the category of a file from its MIME type.

Parameters
string$mime_typeThe MIME type
Returns
string 'document', 'audio', 'video', or 'general' if the MIME type is unrecognized

Definition at line 11 of file deprecated-1.10.php.

generate_user_password ( \ElggUser  $user,
  $password 
)

Create a legacy password hash (salted MD5).

Parameters
\ElggUser$userThe user this is being generated for.
string$passwordPassword in clear text
Returns
string private

Definition at line 55 of file deprecated-1.10.php.