|
Moodle
2.2.1
http://www.collinsharper.com
|


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) | |
Definition at line 5 of file block_tag_youtube.php.
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.
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
| int | $oldcat | old category code |
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.

| fetch_request | ( | $ | request | ) |
Definition at line 145 of file block_tag_youtube.php.


| get_categories | ( | ) |
Definition at line 184 of file block_tag_youtube.php.
| get_content | ( | ) |
Parent class version of this function simply returns NULL This should be implemented by the derived class to return the content object.
Reimplemented from block_base.
Definition at line 30 of file block_tag_youtube.php.

Definition at line 64 of file block_tag_youtube.php.


Definition at line 80 of file block_tag_youtube.php.


Definition at line 111 of file block_tag_youtube.php.


| 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
Reimplemented from block_base.
Definition at line 22 of file block_tag_youtube.php.
| preferred_width | ( | ) |
Default case: the block wants to be 180 pixels wide
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.


| specialization | ( | ) |
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.
