|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | moodlecore |
Functions | |
| tag_print_cloud ($nr_of_tags=150, $return=false) | |
| tag_cloud_sort ($a, $b) | |
| tag_print_description_box ($tag_object, $return=false) | |
| tag_print_management_box ($tag_object, $return=false) | |
| tag_print_search_box ($return=false) | |
| tag_print_search_results ($query, $page, $perpage, $return=false) | |
| tag_print_tagged_users_table ($tag_object, $limitfrom='', $limitnum='', $return=false) | |
| tag_print_user_box ($user, $return=false) | |
| tag_print_user_list ($userlist, $return=false) | |
| tag_cloud_sort | ( | $ | a, |
| $ | b | ||
| ) |
This function is used by print_tag_cloud, to usort() the tags in the cloud. See php.net/usort for the parameters documentation. This was originally in blocks/blog_tags/block_blog_tags.php, named blog_tags_sort().
Definition at line 76 of file locallib.php.
| tag_print_cloud | ( | $ | nr_of_tags = 150, |
| $ | return = false |
||
| ) |
Prints a tag cloud
| array | $tagcloud | array of tag objects (fields: id, name, rawname, count and flag) |
| $return | if true return html string |
Definition at line 20 of file locallib.php.


| tag_print_description_box | ( | $ | tag_object, |
| $ | return = false |
||
| ) |
Prints a box with the description of a tag and its related tags
| stdClass | $tag_object | |
| $return | if true return html string |
Definition at line 100 of file locallib.php.

| tag_print_management_box | ( | $ | tag_object, |
| $ | return = false |
||
| ) |
Prints a box that contains the management links of a tag
| $tagid | |
| $return | if true return html string |
Definition at line 153 of file locallib.php.

| tag_print_search_box | ( | $ | return = false | ) |
Prints the tag search box
| bool | $return | if true return html string |
Definition at line 197 of file locallib.php.
| tag_print_search_results | ( | $ | query, |
| $ | page, | ||
| $ | perpage, | ||
| $ | return = false |
||
| ) |
Prints the tag search results
| string | $query | text that tag names will be matched against |
| int | $page | current page |
| int | $perpage | nr of users displayed per page |
| $return | if true return html string |
Definition at line 225 of file locallib.php.

| tag_print_tagged_users_table | ( | $ | tag_object, |
| $ | limitfrom = '', |
||
| $ | limitnum = '', |
||
| $ | return = false |
||
| ) |
Prints a table of the users tagged with the tag passed as argument
| $tag_object | ||
| int | $users_per_row | number of users per row to display |
| int | $limitfrom | prints users starting at this point (optional, required if $limitnum is set). |
| int | $limitnum | prints this many users (optional, required if $limitfrom is set). |
| $return | if true return html string |
Definition at line 299 of file locallib.php.

| tag_print_user_box | ( | $ | user, |
| $ | return = false |
||
| ) |
Prints an individual user box
| $user | user object (contains the following fields: id, firstname, lastname and picture) |
| $return | if true return html string |
Definition at line 320 of file locallib.php.


| tag_print_user_list | ( | $ | userlist, |
| $ | return = false |
||
| ) |
Prints a list of users
| array | $userlist | an array of user objects |
| $return | if true return html string |
Definition at line 368 of file locallib.php.

