Moodle  2.2.1
http://www.collinsharper.com
file_info_context_module Class Reference
Inheritance diagram for file_info_context_module:
Collaboration diagram for file_info_context_module:

Public Member Functions

 __construct ($browser, $context, $course, $cm, $modname)
 get_file_info ($component, $filearea, $itemid, $filepath, $filename)
 get_visible_name ()
 is_writable ()
 is_empty_area ()
 is_directory ()
 get_children ()
 get_parent ()

Protected Member Functions

 get_area_intro ($itemid, $filepath, $filename)
 get_area_backup ($itemid, $filepath, $filename)

Protected Attributes

 $course
 $cm
 $modname
 $areas

Detailed Description

Definition at line 38 of file file_info_context_module.php.


Constructor & Destructor Documentation

__construct ( browser,
context,
course,
cm,
modname 
)

Definition at line 44 of file file_info_context_module.php.


Member Function Documentation

get_area_backup ( itemid,
filepath,
filename 
) [protected]

Definition at line 146 of file file_info_context_module.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_area_intro ( itemid,
filepath,
filename 
) [protected]

Definition at line 122 of file file_info_context_module.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns list of children.

Returns:
array of file_info instances

Reimplemented from file_info.

Definition at line 229 of file file_info_context_module.php.

Here is the call graph for this function:

get_file_info ( component,
filearea,
itemid,
filepath,
filename 
)

Return information about this specific context level

Parameters:
$component
$filearea
$itemid
$filepath
$filename

Definition at line 77 of file file_info_context_module.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns parent file_info instance

Returns:
file_info or null for root

Reimplemented from file_info.

Definition at line 252 of file file_info_context_module.php.

Here is the call graph for this function:

Returns localised visible name.

Returns:
string

Reimplemented from file_info.

Definition at line 177 of file file_info_context_module.php.

Is directory?

Returns:
bool

Reimplemented from file_info.

Definition at line 221 of file file_info_context_module.php.

Is this empty area?

Returns:
bool

Reimplemented from file_info.

Definition at line 194 of file file_info_context_module.php.

Here is the call graph for this function:

Can I add new files or directories?

Returns:
bool

Reimplemented from file_info.

Definition at line 185 of file file_info_context_module.php.


Field Documentation

$areas [protected]

Definition at line 42 of file file_info_context_module.php.

$cm [protected]

Definition at line 40 of file file_info_context_module.php.

$course [protected]

Definition at line 39 of file file_info_context_module.php.

$modname [protected]

Definition at line 41 of file file_info_context_module.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations