19 declare(strict_types=1);
54 $this->
settings = new \ilSetting(self::STORAGE_IDENTIFIER);
62 return self::ELIGIBLE_TYPES;
70 if (isset($this->selected_obj_types)) {
73 $types_from_storage = unserialize(
78 [
'allowed_classes' =>
false]
80 return $this->selected_obj_types = array_intersect(
89 return in_array($type, $types);
94 $this->selected_obj_types = $types;
95 $this->
settings->set(
'collected_types', serialize($types));
103 if (isset($this->selected_cp_entry_ids)) {
106 $ids_from_storage = unserialize(
107 $this->
settings->get(
'templates', serialize([])),
108 [
'allowed_classes' =>
false]
110 $this->selected_cp_entry_ids = [];
111 foreach ($ids_from_storage as
$id) {
112 $this->selected_cp_entry_ids[] = (
int) $id;
120 return in_array($id, $entry_ids);
125 $this->selected_cp_entry_ids = $ids;
126 $this->
settings->set(
'templates', serialize($ids));
131 if (isset($this->target_for_harvesting_ref_id)) {
134 return $this->target_for_harvesting_ref_id = (
int) $this->
settings->get(
142 $this->target_for_harvesting_ref_id =
$ref_id;
143 $this->
settings->set(
'target', (
string) $ref_id);
148 if (isset($this->source_for_exposing_ref_id)) {
151 return $this->source_for_exposing_ref_id = (
int) $this->
settings->get(
159 $this->source_for_exposing_ref_id =
$ref_id;
160 $this->
settings->set(
'exposed_container', (
string) $ref_id);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins