19declare(strict_types=1);
63 $this->
settings = new \ilSetting(self::STORAGE_IDENTIFIER);
79 if (isset($this->selected_obj_types)) {
82 $types_from_storage = unserialize(
87 [
'allowed_classes' =>
false]
89 return $this->selected_obj_types = array_intersect(
98 return in_array($type, $types);
103 $this->selected_obj_types = $types;
104 $this->
settings->set(
'collected_types', serialize($types));
112 if (isset($this->selected_cp_entry_ids)) {
115 $ids_from_storage = unserialize(
116 $this->
settings->get(
'templates', serialize([])),
117 [
'allowed_classes' =>
false]
119 $this->selected_cp_entry_ids = [];
120 foreach ($ids_from_storage as
$id) {
121 $this->selected_cp_entry_ids[] = (
int)
$id;
129 return in_array(
$id, $entry_ids);
134 $this->selected_cp_entry_ids = $ids;
135 $this->
settings->set(
'templates', serialize($ids));
140 if (isset($this->editorial_step_enabled)) {
143 return $this->editorial_step_enabled = (bool) $this->
settings->get(
151 $this->editorial_step_enabled = $enabled;
152 $this->
settings->set(
'editorial_step', $enabled ?
'1' :
'0');
157 if (isset($this->editorial_ref_id)) {
160 return $this->editorial_ref_id = (
int) $this->
settings->get(
168 $this->editorial_ref_id =
$ref_id;
169 $this->
settings->set(
'target', (
string) $ref_id);
174 if (isset($this->source_for_exposing_ref_id)) {
177 return $this->source_for_exposing_ref_id = (
int) $this->
settings->get(
185 $this->source_for_exposing_ref_id =
$ref_id;
186 $this->
settings->set(
'exposed_container', (
string) $ref_id);
193 if (isset($this->manual_publishing_enabled)) {
196 return $this->manual_publishing_enabled = (bool) $this->
settings->get(
204 $this->editorial_step_enabled = $enabled;
205 $this->
settings->set(
'manual_publishing', $enabled ?
'1' :
'0');
210 if (isset($this->automatic_publishing_enabled)) {
213 return $this->automatic_publishing_enabled = (bool) $this->
settings->get(
214 'automatic_publishing',
221 $this->editorial_step_enabled = $enabled;
222 $this->
settings->set(
'automatic_publishing', $enabled ?
'1' :
'0');
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins