19 declare(strict_types=1);
60 $this->
settings = new \ilSetting(self::STORAGE_IDENTIFIER);
68 return self::ELIGIBLE_TYPES;
76 if (isset($this->selected_obj_types)) {
79 $types_from_storage = unserialize(
84 [
'allowed_classes' =>
false]
86 return $this->selected_obj_types = array_intersect(
95 return in_array($type, $types);
100 $this->selected_obj_types = $types;
101 $this->
settings->set(
'collected_types', serialize($types));
109 if (isset($this->selected_cp_entry_ids)) {
112 $ids_from_storage = unserialize(
113 $this->
settings->get(
'templates', serialize([])),
114 [
'allowed_classes' =>
false]
116 $this->selected_cp_entry_ids = [];
117 foreach ($ids_from_storage as
$id) {
118 $this->selected_cp_entry_ids[] = (
int) $id;
126 return in_array($id, $entry_ids);
131 $this->selected_cp_entry_ids = $ids;
132 $this->
settings->set(
'templates', serialize($ids));
137 if (isset($this->target_for_harvesting_ref_id)) {
140 return $this->target_for_harvesting_ref_id = (
int) $this->
settings->get(
148 $this->target_for_harvesting_ref_id =
$ref_id;
149 $this->
settings->set(
'target', (
string) $ref_id);
154 if (isset($this->source_for_exposing_ref_id)) {
157 return $this->source_for_exposing_ref_id = (
int) $this->
settings->get(
165 $this->source_for_exposing_ref_id =
$ref_id;
166 $this->
settings->set(
'exposed_container', (
string) $ref_id);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins