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

Public Member Functions

 init ()
 applicable_formats ()
 specialization ()
 instance_allow_multiple ()
 preferred_width ()
 get_content ()
 get_videos_by_playlist ()
 get_videos_by_tag ()
 get_videos_by_tag_and_category ()
 fetch_request ($request)
 render_video_list (SimpleXMLElement $xml)
 get_categories ()
 category_map_old2new ($oldcat)

Detailed Description

Definition at line 5 of file block_tag_youtube.php.


Member Function Documentation

Which page types this block may appear on.

The information returned here is processed by the blocks_name_allowed_in_format() function. Look there if you need to know exactly how this works.

Default case: everything except mod and tag.

Returns:
array page-type prefix => true/false.

Reimplemented from block_base.

Definition at line 11 of file block_tag_youtube.php.

category_map_old2new ( oldcat)

Provide conversion from old numeric categories available in youtube API to the new ones available in the Google API

Parameters:
int$oldcatold category code
Returns:
mixed new category code or 0 (if no match found)

TODO: Someday this should be applied on upgrade for all the existing block instances so we won't need the mapping any more. That would imply to implement restore handling to perform the conversion of old blocks.

Definition at line 219 of file block_tag_youtube.php.

Here is the caller graph for this function:

fetch_request ( request)

Definition at line 145 of file block_tag_youtube.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 184 of file block_tag_youtube.php.

Parent class version of this function simply returns NULL This should be implemented by the derived class to return the content object.

Returns:
stdObject

Reimplemented from block_base.

Definition at line 30 of file block_tag_youtube.php.

Here is the call graph for this function:

Definition at line 64 of file block_tag_youtube.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 80 of file block_tag_youtube.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 111 of file block_tag_youtube.php.

Here is the call graph for this function:

Here is the caller graph for this function:

init ( )

Definition at line 7 of file block_tag_youtube.php.

Are you going to allow multiple instances of each block? If yes, then it is assumed that the block WILL USE per-instance configuration

Returns:
boolean

Reimplemented from block_base.

Definition at line 22 of file block_tag_youtube.php.

Default case: the block wants to be 180 pixels wide

Deprecated:
since Moodle 2.0.
Returns:
int

Reimplemented from block_base.

Definition at line 26 of file block_tag_youtube.php.

render_video_list ( SimpleXMLElement $  xml)

Definition at line 155 of file block_tag_youtube.php.

Here is the call graph for this function:

Here is the caller graph for this function:

This function is called on your subclass right after an instance is loaded Use this function to act on instance data just after it's loaded and before anything else is done For instance: if your block will have different title's depending on location (site, course, blog, etc)

Reimplemented from block_base.

Definition at line 15 of file block_tag_youtube.php.

Here is the call graph for this function:


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