ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilClassificationProvider.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
13 {
14  protected $parent_ref_id; // [int]
15  protected $parent_obj_id; // [int]
16  protected $parent_type; // [string]
17 
26  public function __construct($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)
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  }
34 
38  protected function init()
39  {
40 
41  }
42 
51  public static function getValidProviders($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)
52  {
53  $res = array();
54 
55  include_once "Services/Taxonomy/classes/class.ilTaxonomyClassificationProvider.php";
56  if(ilTaxonomyClassificationProvider::isActive($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type))
57  {
58  $res[] = new ilTaxonomyClassificationProvider($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type);
59  }
60 
61  include_once "Services/Tagging/classes/class.ilTaggingClassificationProvider.php";
62  if(ilTaggingClassificationProvider::isActive($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type))
63  {
64  $res[] = new ilTaggingClassificationProvider($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type);
65  }
66 
67  return $res;
68  }
69 
78  abstract public static function isActive($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type);
79 
86  abstract public function render(array &$a_html, $a_parent_gui);
87 
94  abstract public function importPostData($a_saved = null);
95 
101  abstract public function setSelection($a_value);
102 
108  abstract public function getFilteredObjects();
109 
110 
116  public function initListGUI(ilObjectListGUI $a_list_gui)
117  {
118 
119  }
120 }
static isActive($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)
Is provider currently active?
static getValidProviders($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)
Get all valid providers (for parent container)
importPostData($a_saved=null)
Import post data.
getFilteredObjects()
Get filtered object ref ids.
render(array &$a_html, $a_parent_gui)
Render HTML chunks.
static isActive($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)
Add rich text string
The name of the decorator.
static isActive($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)
initListGUI(ilObjectListGUI $a_list_gui)
Init list gui properties.
__construct($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)
Constructor.
Class ilObjectListGUI.
Create styles array
The data for the language used.
setSelection($a_value)
Set selection.