ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilClassificationProvider Class Reference

Classification provider. More...

+ Inheritance diagram for ilClassificationProvider:
+ Collaboration diagram for ilClassificationProvider:

Public Member Functions

 __construct (int $a_parent_ref_id, int $a_parent_obj_id, string $a_parent_obj_type)
 
 render (array &$a_html, object $a_parent_gui)
 Render HTML chunks. More...
 
 importPostData (?array $a_saved=null)
 Import post data. More...
 
 setSelection (array $a_value)
 Set selection. More...
 
 getFilteredObjects ()
 Get filtered object ref ids. More...
 
 initListGUI (ilObjectListGUI $a_list_gui)
 Init list gui properties. More...
 

Static Public Member Functions

static getValidProviders (int $a_parent_ref_id, int $a_parent_obj_id, string $a_parent_obj_type)
 Get all valid providers (for parent container) More...
 
static isActive (int $a_parent_ref_id, int $a_parent_obj_id, string $a_parent_obj_type)
 Is provider currently active? More...
 

Protected Member Functions

 init ()
 

Protected Attributes

int $parent_ref_id
 
int $parent_obj_id
 
string $parent_type
 
RequestInterface $request
 

Detailed Description

Classification provider.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 25 of file class.ilClassificationProvider.php.

Constructor & Destructor Documentation

◆ __construct()

ilClassificationProvider::__construct ( int  $a_parent_ref_id,
int  $a_parent_obj_id,
string  $a_parent_obj_type 
)

Reimplemented in ilTaggingClassificationProvider.

Definition at line 32 of file class.ilClassificationProvider.php.

36 {
37 global $DIC;
38
39 $this->request = $DIC->http()->request();
40 $this->parent_ref_id = $a_parent_ref_id;
41 $this->parent_obj_id = $a_parent_obj_id;
42 $this->parent_type = $a_parent_obj_type;
43
44 $this->init();
45 }
global $DIC
Definition: shib_login.php:26

References $DIC, and init().

+ Here is the call graph for this function:

Member Function Documentation

◆ getFilteredObjects()

ilClassificationProvider::getFilteredObjects ( )
abstract

Get filtered object ref ids.

Reimplemented in ilTaggingClassificationProvider, and ilTaxonomyClassificationProvider.

◆ getValidProviders()

static ilClassificationProvider::getValidProviders ( int  $a_parent_ref_id,
int  $a_parent_obj_id,
string  $a_parent_obj_type 
)
static

Get all valid providers (for parent container)

Definition at line 54 of file class.ilClassificationProvider.php.

58 : array {
59 $res = array();
60
61 if (ilTaxonomyClassificationProvider::isActive($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)) {
62 $res[] = new ilTaxonomyClassificationProvider($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type);
63 }
64
65 if (ilTaggingClassificationProvider::isActive($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)) {
66 $res[] = new ilTaggingClassificationProvider($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type);
67 }
68
69 return $res;
70 }
static isActive(int $a_parent_ref_id, int $a_parent_obj_id, string $a_parent_obj_type)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static isActive(int $a_parent_ref_id, int $a_parent_obj_id, string $a_parent_obj_type)
Is provider currently active?
$res
Definition: ltiservices.php:69

References $res.

Referenced by ILIAS\Container\Content\ItemSetManager\applyClassificationFilter(), ilClassificationBlockGUI\initProviders(), ilContainer\isClassificationFilterActive(), ILIAS\Container\Content\ItemPresentationManager\isClassificationFilterActive(), and ILIAS\Container\Content\ItemSetManager\isClassificationFilterActive().

+ Here is the caller graph for this function:

◆ importPostData()

ilClassificationProvider::importPostData ( ?array  $a_saved = null)
abstract

Import post data.

Parameters
array | null$a_saved

Reimplemented in ilTaggingClassificationProvider, and ilTaxonomyClassificationProvider.

◆ init()

ilClassificationProvider::init ( )
protected

Reimplemented in ilTaggingClassificationProvider, and ilTaxonomyClassificationProvider.

Definition at line 47 of file class.ilClassificationProvider.php.

47 : void
48 {
49 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ initListGUI()

ilClassificationProvider::initListGUI ( ilObjectListGUI  $a_list_gui)

Init list gui properties.

Reimplemented in ilTaggingClassificationProvider.

Definition at line 105 of file class.ilClassificationProvider.php.

105 : void
106 {
107 }

◆ isActive()

static ilClassificationProvider::isActive ( int  $a_parent_ref_id,
int  $a_parent_obj_id,
string  $a_parent_obj_type 
)
staticabstract

Is provider currently active?

Reimplemented in ilTaggingClassificationProvider, and ilTaxonomyClassificationProvider.

◆ render()

ilClassificationProvider::render ( array &  $a_html,
object  $a_parent_gui 
)
abstract

Render HTML chunks.

Reimplemented in ilTaggingClassificationProvider, and ilTaxonomyClassificationProvider.

◆ setSelection()

ilClassificationProvider::setSelection ( array  $a_value)
abstract

Field Documentation

◆ $parent_obj_id

int ilClassificationProvider::$parent_obj_id
protected

Definition at line 28 of file class.ilClassificationProvider.php.

◆ $parent_ref_id

int ilClassificationProvider::$parent_ref_id
protected

Definition at line 27 of file class.ilClassificationProvider.php.

◆ $parent_type

string ilClassificationProvider::$parent_type
protected

Definition at line 29 of file class.ilClassificationProvider.php.

◆ $request

RequestInterface ilClassificationProvider::$request
protected

Definition at line 30 of file class.ilClassificationProvider.php.


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