ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 }