Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
blog_filter_entry Class Reference

This filter defines a specific blog entry id. More...

Inheritance diagram for blog_filter_entry:
blog_filter

Public Member Functions

 __construct ($id)
 

Static Public Member Functions

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

Public Attributes

array $availabletypes = array()
 An array of strings representing the available filter types for each blog_filter. More...
 
 $conditions = array('p.id = ?')
 
int $id
 The unique ID for a filter's associated record $id.
 
 $overrides = array('site', 'course', 'module', 'group', 'user', 'tag')
 
array $params = array()
 An array of SQL params $params.
 
array $tables = array()
 An array of table aliases that are used in the WHERE conditions $tables.
 
string $type
 The type of filter (for example, types of blog_filter_context are site, course and module) $type.
 

Detailed Description

This filter defines a specific blog entry id.

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: