[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
Moodle tag local library - output functions
Copyright: | 2007 Luiz Cruz <[email protected]> |
License: | http://www.gnu.org/copyleft/gpl.html GNU Public License |
File Size: | 443 lines (16 kb) |
Included or required: | 2 times |
Referenced: | 2 times |
Includes or requires: | 0 files |
tag_print_cloud($tagset=null, $nr_of_tags=150, $return=false, $sort='') X-Ref |
Prints or returns a HTML tag cloud with varying classes styles depending on the popularity and type of each tag. param: array $tagset Array of tags to display param: int $nr_of_tags Limit for the number of tags to return/display, used if $tagset is null param: bool $return if true the function will return the generated tag cloud instead of displaying it. param: string $sort (optional) selected sorting, default is alpha sort (name) also timemodified or popularity return: string|null a HTML string or null if this function does the output |
tag_cloud_sort($a, $b) X-Ref |
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(). param: string $a Tag name to compare against $b param: string $b Tag name to compare against $a return: int The result of the comparison/validation 1, 0 or -1 |
tag_print_description_box($tag_object, $return=false) X-Ref |
Prints a box with the description of a tag and its related tags param: stdClass $tag_object param: bool $return if true the function will return the generated tag cloud instead of displaying it. return: string/null a HTML box showing a description of the tag object and it's relationsips or null if output is done directly |
tag_print_management_box($tag_object, $return=false) X-Ref |
Prints a box that contains the management links of a tag param: stdClass $tag_object param: bool $return if true the function will return the generated tag cloud instead of displaying it. return: string|null a HTML string or null if this function does the output |
tag_print_search_box($return=false) X-Ref |
Prints the tag search box param: bool $return if true return html string return: string|null a HTML string or null if this function does the output |
tag_print_search_results($query, $page, $perpage, $return=false) X-Ref |
Prints the tag search results param: string $query text that tag names will be matched against param: int $page current page param: int $perpage nr of users displayed per page param: bool $return if true return html string return: string|null a HTML string or null if this function does the output |
tag_print_tagged_users_table($tag_object, $limitfrom='', $limitnum='', $return=false) X-Ref |
Prints a table of the users tagged with the tag passed as argument param: int $tag_object the tag we wish to return data for param: int $limitfrom (optional, required if $limitnum is set) prints users starting at this point. param: int $limitnum (optional, required if $limitfrom is set) prints this many users. param: bool $return if true return html string return: string|null a HTML string or null if this function does the output |
tag_print_user_box($user, $return=false) X-Ref |
Prints an individual user box param: user_object $user (contains the following fields: id, firstname, lastname and picture) param: bool $return if true return html string return: string|null a HTML string or null if this function does the output |
tag_print_user_list($userlist, $return=false) X-Ref |
Prints a list of users param: array $userlist an array of user objects param: bool $return if true return html string, otherwise output the result return: string|null a HTML string or null if this function does the output |
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |