Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
blog_filter_user Class Reference

This filter defines the user level of the blog entries being searched: a userid or a groupid. More...

Inheritance diagram for blog_filter_user:

Public Member Functions

 __construct ($id=null, $type='user')
 Constructor.
 

Static Public Member Functions

static get_instance ($id, $type)
 TODO This is poor design.
 

Public Attributes

array $availabletypes = array()
 An array of strings representing the available filter types for each blog_filter.
 
array $conditions = array()
 An array of WHERE conditions $conditions.
 
int $id
 The unique ID for a filter's associated record $id.
 
 $overrides = array()
 An array of filter types which this particular filter type overrides: their conditions will not be evaluated.
 
array $params = array()
 An array of SQL params $params.
 
 $tables = array('u' => 'user')
 
string $type
 The type of filter (for example, types of blog_filter_context are site, course and module) $type.
 

Detailed Description

This filter defines the user level of the blog entries being searched: a userid or a groupid.

It can be combined with a context filter in order to refine the search.

Constructor & Destructor Documentation

◆ __construct()

blog_filter_user::__construct ( $id = null,
$type = 'user' )

Constructor.

Parameters
string$type
int$id

Reimplemented from blog_filter.

Member Function Documentation

◆ get_instance()

static blog_filter::get_instance ( $id,
$type )
staticinherited

TODO This is poor design.

A parent class should not know anything about its children. The default case helps to resolve this design issue

Member Data Documentation

◆ $availabletypes

array blog_filter::$availabletypes = array()
inherited

An array of strings representing the available filter types for each blog_filter.

$availabletypes


The documentation for this class was generated from the following file: