ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilClassificationProvider Class Reference

Classification provider. More...

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

Public Member Functions

 __construct ($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)
 Constructor. More...
 
 render (array &$a_html, $a_parent_gui)
 Render HTML chunks. More...
 
 importPostData ($a_saved=null)
 Import post data. More...
 
 setSelection ($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 ($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)
 Get all valid providers (for parent container) More...
 
static isActive ($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)
 Is provider currently active? More...
 

Protected Member Functions

 init ()
 Instance initialisation. More...
 

Protected Attributes

 $parent_ref_id
 
 $parent_obj_id
 
 $parent_type
 

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
Version
$Id$

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

Constructor & Destructor Documentation

◆ __construct()

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

Constructor.

Parameters
int$a_parent_ref_id
int$a_parent_obj_id
string$a_parent_obj_type
Returns
self

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

References init().

27  {
28  $this->parent_ref_id = (int) $a_parent_ref_id;
29  $this->parent_obj_id = (int) $a_parent_obj_id;
30  $this->parent_type = (string) $a_parent_obj_type;
31 
32  $this->init();
33  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getFilteredObjects()

ilClassificationProvider::getFilteredObjects ( )
abstract

Get filtered object ref ids.

Returns
array

Referenced by getValidProviders().

+ Here is the caller graph for this function:

◆ getValidProviders()

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

Get all valid providers (for parent container)

Parameters
int$a_parent_ref_id
int$a_parent_obj_id
string$a_parent_obj_type
Returns
array

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

References $res, getFilteredObjects(), importPostData(), ilTaxonomyClassificationProvider\isActive(), ilTaggingClassificationProvider\isActive(), isActive(), render(), and setSelection().

Referenced by ilClassificationBlockGUI\initProviders().

51  {
52  $res = array();
53 
54  include_once "Services/Taxonomy/classes/class.ilTaxonomyClassificationProvider.php";
55  if (ilTaxonomyClassificationProvider::isActive($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)) {
56  $res[] = new ilTaxonomyClassificationProvider($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type);
57  }
58 
59  include_once "Services/Tagging/classes/class.ilTaggingClassificationProvider.php";
60  if (ilTaggingClassificationProvider::isActive($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)) {
61  $res[] = new ilTaggingClassificationProvider($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type);
62  }
63 
64  return $res;
65  }
static isActive($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)
static isActive($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)
foreach($_POST as $key=> $value) $res
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ importPostData()

ilClassificationProvider::importPostData (   $a_saved = null)
abstract

Import post data.

Parameters
mixed$a_saved
Returns
mixed

Referenced by getValidProviders().

+ Here is the caller graph for this function:

◆ init()

ilClassificationProvider::init ( )
protected

Instance initialisation.

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

Referenced by __construct().

39  {
40  }
+ Here is the caller graph for this function:

◆ initListGUI()

ilClassificationProvider::initListGUI ( ilObjectListGUI  $a_list_gui)

Init list gui properties.

Parameters
ilObjectListGUI$a_list_gui

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

114  {
115  }

◆ isActive()

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

Is provider currently active?

Parameters
int$a_parent_ref_id
int$a_parent_obj_id
string$a_parent_obj_type
Returns
bool

Referenced by getValidProviders().

+ Here is the caller graph for this function:

◆ render()

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

Render HTML chunks.

Parameters
array$a_html
object$a_parent_gui

Referenced by getValidProviders().

+ Here is the caller graph for this function:

◆ setSelection()

ilClassificationProvider::setSelection (   $a_value)
abstract

Set selection.

Parameters
mixed$a_value

Referenced by getValidProviders().

+ Here is the caller graph for this function:

Field Documentation

◆ $parent_obj_id

ilClassificationProvider::$parent_obj_id
protected

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

◆ $parent_ref_id

ilClassificationProvider::$parent_ref_id
protected

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

◆ $parent_type

ilClassificationProvider::$parent_type
protected

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


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