ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
50  public static function getValidProviders($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)
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  }
66 
75  abstract public static function isActive($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type);
76 
83  abstract public function render(array &$a_html, $a_parent_gui);
84 
91  abstract public function importPostData($a_saved = null);
92 
98  abstract public function setSelection($a_value);
99 
105  abstract public function getFilteredObjects();
106 
107 
113  public function initListGUI(ilObjectListGUI $a_list_gui)
114  {
115  }
116 }
Add rich text string
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)
static isActive($a_parent_ref_id, $a_parent_obj_id, $a_parent_obj_type)
initListGUI(ilObjectListGUI $a_list_gui)
Init list gui properties.
foreach($_POST as $key=> $value) $res
__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.