Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/resourcelib.php File Reference

Go to the source code of this file.

Namespaces

namespace  core

Enumerations

enum  RESOURCELIB_DISPLAY_AUTO
enum  RESOURCELIB_DISPLAY_EMBED
enum  RESOURCELIB_DISPLAY_FRAME
enum  RESOURCELIB_DISPLAY_NEW
enum  RESOURCELIB_DISPLAY_DOWNLOAD
enum  RESOURCELIB_DISPLAY_OPEN
enum  RESOURCELIB_DISPLAY_POPUP
enum  RESOURCELIB_LEGACYFILES_NO
enum  RESOURCELIB_LEGACYFILES_DONE
enum  RESOURCELIB_LEGACYFILES_ACTIVE

Functions

 resourcelib_try_file_migration ($filepath, $cmid, $courseid, $component, $filearea, $itemid)
 resourcelib_get_displayoptions (array $enabled, $current=null)
 resourcelib_guess_url_mimetype ($fullurl)
 resourcelib_get_extension ($fullurl)
 resourcelib_embed_image ($fullurl, $title)
 resourcelib_embed_mp3 ($fullurl, $title, $clicktoopen)
 resourcelib_embed_flashvideo ($fullurl, $title, $clicktoopen)
 resourcelib_embed_flash ($fullurl, $title, $clicktoopen)
 resourcelib_embed_mediaplayer ($fullurl, $title, $clicktoopen)
 resourcelib_embed_quicktime ($fullurl, $title, $clicktoopen)
 resourcelib_embed_mpeg ($fullurl, $title, $clicktoopen)
 resourcelib_embed_real ($fullurl, $title, $clicktoopen)
 resourcelib_embed_pdf ($fullurl, $title, $clicktoopen)
 resourcelib_embed_general ($fullurl, $title, $clicktoopen, $mimetype)

Enumeration Type Documentation

Try the best way

Definition at line 30 of file resourcelib.php.

Force download of file instead of display

Definition at line 38 of file resourcelib.php.

Display using object tag

Definition at line 32 of file resourcelib.php.

Display inside frame

Definition at line 34 of file resourcelib.php.

Display normal link in new window

Definition at line 36 of file resourcelib.php.

Open directly

Definition at line 40 of file resourcelib.php.

Open in "emulated" pop-up without navigation

Definition at line 42 of file resourcelib.php.

Legacy files conversion in progress

Definition at line 49 of file resourcelib.php.

Legacy files conversion marked as completed

Definition at line 47 of file resourcelib.php.

Legacy files not needed or new resource

Definition at line 45 of file resourcelib.php.


Function Documentation

resourcelib_embed_flash ( fullurl,
title,
clicktoopen 
)

Returns flash embedding html.

Parameters:
string$fullurl
string$title
string$clicktoopen
Returns:
string html

Definition at line 296 of file resourcelib.php.

Here is the caller graph for this function:

resourcelib_embed_flashvideo ( fullurl,
title,
clicktoopen 
)

Returns flash video embedding html.

Parameters:
string$fullurl
string$title
string$clicktoopen
Returns:
string html

Definition at line 259 of file resourcelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

resourcelib_embed_general ( fullurl,
title,
clicktoopen,
mimetype 
)

Returns general link or file embedding html.

Parameters:
string$fullurl
string$title
string$clicktoopen
string$mimetype
Returns:
string html

Definition at line 487 of file resourcelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

resourcelib_embed_image ( fullurl,
title 
)

Returns image embedding html.

Parameters:
string$fullurl
string$title
Returns:
string html

Definition at line 216 of file resourcelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

resourcelib_embed_mediaplayer ( fullurl,
title,
clicktoopen 
)

Returns ms media embedding html.

Parameters:
string$fullurl
string$title
string$clicktoopen
Returns:
string html

Definition at line 340 of file resourcelib.php.

Here is the caller graph for this function:

resourcelib_embed_mp3 ( fullurl,
title,
clicktoopen 
)

Returns mp3 embedding html.

Parameters:
string$fullurl
string$title
string$clicktoopen
Returns:
string html

Definition at line 232 of file resourcelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

resourcelib_embed_mpeg ( fullurl,
title,
clicktoopen 
)

Returns mpeg embedding html.

Parameters:
string$fullurl
string$title
string$clicktoopen
Returns:
string html

Definition at line 397 of file resourcelib.php.

Here is the caller graph for this function:

resourcelib_embed_pdf ( fullurl,
title,
clicktoopen 
)

Returns general link or pdf embedding html.

Parameters:
string$fullurl
string$title
string$clicktoopen
Returns:
string html

Definition at line 460 of file resourcelib.php.

Here is the caller graph for this function:

resourcelib_embed_quicktime ( fullurl,
title,
clicktoopen 
)

Returns quicktime embedding html.

Parameters:
string$fullurl
string$title
string$clicktoopen
Returns:
string html

Definition at line 363 of file resourcelib.php.

Here is the caller graph for this function:

resourcelib_embed_real ( fullurl,
title,
clicktoopen 
)

Returns real media embedding html.

Parameters:
string$fullurl
string$title
string$clicktoopen
Returns:
string html

Definition at line 431 of file resourcelib.php.

Here is the caller graph for this function:

resourcelib_get_displayoptions ( array enabled,
current = null 
)

Returns list of available display options

Parameters:
array$enabledlist of options enabled in module configuration
int$currentcurrent display options for existing instances
Returns:
array of key=>name pairs

Definition at line 111 of file resourcelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

resourcelib_get_extension ( fullurl)

Looks for the extension.

Parameters:
string$fullurl
Returns:
string file extension

Definition at line 190 of file resourcelib.php.

Here is the caller graph for this function:

Tries to guess correct mimetype for arbitrary URL

Parameters:
string$fullurl
Returns:
string mimetype

Definition at line 145 of file resourcelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

resourcelib_try_file_migration ( filepath,
cmid,
courseid,
component,
filearea,
itemid 
)

Try on demand migration of file from old course files

Parameters:
string$filepathold file path
int$cmidmigrated course module if
int$courseid
string$component
string$fileareanew file area
int$itemidmigrated file item id
Returns:
mixed, false if not found, stored_file instance if migrated to new area

Definition at line 62 of file resourcelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations