Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/tag/locallib.php File Reference

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)

Function Documentation

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

Parameters:
array$tagcloudarray of tag objects (fields: id, name, rawname, count and flag)
$returnif true return html string

Definition at line 20 of file locallib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

tag_print_description_box ( tag_object,
return = false 
)

Prints a box with the description of a tag and its related tags

Parameters:
stdClass$tag_object
$returnif true return html string

Definition at line 100 of file locallib.php.

Here is the call graph for this function:

tag_print_management_box ( tag_object,
return = false 
)

Prints a box that contains the management links of a tag

Parameters:
$tagid
$returnif true return html string

Definition at line 153 of file locallib.php.

Here is the call graph for this function:

tag_print_search_box ( return = false)

Prints the tag search box

Parameters:
bool$returnif 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

Parameters:
string$querytext that tag names will be matched against
int$pagecurrent page
int$perpagenr of users displayed per page
$returnif true return html string

Definition at line 225 of file locallib.php.

Here is the call graph for this function:

tag_print_tagged_users_table ( tag_object,
limitfrom = '',
limitnum = '',
return = false 
)

Prints a table of the users tagged with the tag passed as argument

Parameters:
$tag_object
int$users_per_rownumber of users per row to display
int$limitfromprints users starting at this point (optional, required if $limitnum is set).
int$limitnumprints this many users (optional, required if $limitfrom is set).
$returnif true return html string

Definition at line 299 of file locallib.php.

Here is the call graph for this function:

tag_print_user_box ( user,
return = false 
)

Prints an individual user box

Parameters:
$useruser object (contains the following fields: id, firstname, lastname and picture)
$returnif true return html string

Definition at line 320 of file locallib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

tag_print_user_list ( userlist,
return = false 
)

Prints a list of users

Parameters:
array$userlistan array of user objects
$returnif true return html string

Definition at line 368 of file locallib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations