Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Functions
lib.php File Reference

Core global functions for Blog. More...

Functions

 blog_comment_permissions ($commentparam)
 
 blog_comment_validate ($commentparam)
 
 blog_delete_external_entries ($externalblog)
 Given an external blog object, deletes all related blog entries from the post table. More...
 
 blog_get_all_options (moodle_page $page, stdClass $userid=null)
 This function gets all of the options available for the current user in respect to blogs. More...
 
 blog_get_associated_count ($courseid, $cmid=null)
 Shortcut function for getting a count of blog entries associated with a course or a module. More...
 
 blog_get_headers ($courseid=null, $groupid=null, $userid=null, $tagid=null, $tag=null, $modid=null, $entryid=null, $search=null)
 This function encapsulates all the logic behind the complex navigation, titles and headings of the blog listing page, depending on URL params. More...
 
 blog_get_options_for_course (stdClass $course, stdClass $user=null)
 Get the blog options that relate to the given course for the given user. More...
 
 blog_get_options_for_module ($module, $user=null)
 Get the blog options relating to the given module for the given user. More...
 
 blog_get_options_for_user (stdClass $user=null)
 Get all of the blog options that relate to the passed user. More...
 
 blog_get_tagged_posts ($tag, $exclusivemode=false, $fromctx=0, $ctx=0, $rec=true, $page=0)
 Returns posts tagged with a specified tag. More...
 
 blog_is_enabled_for_user ()
 This function checks that blogs are enabled, and that the user can see blogs at all. More...
 
 blog_page_type_list ($pagetype, $parentcontext, $currentcontext)
 Return a list of page types. More...
 
 blog_remove_associations_for_course ($courseid)
 remove all associations for the blog entries of a particular course More...
 
 blog_remove_associations_for_module ($modcontextid)
 Remove module associated blogs and blog tag instances. More...
 
 blog_remove_associations_for_user ($userid)
 remove all associations for the blog entries of a particular user More...
 
 blog_sync_external_entries ($externalblog)
 Given a record in the {blog_external} table, checks the blog's URL for new entries not yet copied into Moodle. More...
 
 blog_user_can_edit_entry ($blogentry)
 User can edit a blog entry if this is their own blog entry and they have the capability moodle/blog:create, or if they have the capability moodle/blog:manageentries. More...
 
 blog_user_can_view_user_entry ($targetuserid, $blogentry=null)
 Checks to see if a user can view the blogs of another user. More...
 
 blog_validate_access ($courseid, $modid, $groupid, $entryid, $userid)
 Validate the access to a blog. More...
 
 core_blog_myprofile_navigation (core_user\output\myprofile\tree $tree, $user, $iscurrentuser, $course)
 Add nodes to myprofile page. More...
 

Detailed Description

Core global functions for Blog.

@subpackage blog

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later