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

Public Member Functions

 init ()
 instance_allow_multiple ()
 has_config ()
 applicable_formats ()
 instance_allow_config ()
 specialization ()
 get_content ()

Detailed Description

Definition at line 32 of file block_blog_tags.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 45 of file block_blog_tags.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

Get a list of tags

convert to seconds

There are 2 things to do: 1. tags with the same count should have the same size class 2. however many tags we have should be spread evenly over the 20 size classes

Now we sort the tag display order

Finally we create the output Accessibility: markup as a list.

Reimplemented from block_base.

Definition at line 63 of file block_blog_tags.php.

Here is the call graph for this function:

Subclasses should override this and return true if the subclass block has a config_global.html file.

Returns:
boolean

Reimplemented from block_base.

Definition at line 41 of file block_blog_tags.php.

init ( )

Definition at line 33 of file block_blog_tags.php.

Is each block of this type going to have instance-specific configuration? Normally, this setting is controlled by instance_allow_multiple(): if multiple instances are allowed, then each will surely need its own configuration. However, in some cases it may be necessary to provide instance configuration to blocks that do not want to allow multiple instances. In that case, make this function return true. I stress again that this makes a difference ONLY if instance_allow_multiple() returns false.

Returns:
boolean

Reimplemented from block_base.

Definition at line 49 of file block_blog_tags.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 37 of file block_blog_tags.php.

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 53 of file block_blog_tags.php.


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