38 if (($this->ref_id ?? 0) > 0) {
40 switch ($activation[
"timing_type"]) {
55 protected function doCreate(
bool $clone_mode =
false): void
57 parent::doCreate($clone_mode);
71 foreach ($pages as $page) {
73 $page_obj->setPortfolioId($this->
id);
98 $new_page->setPortfolioId($new_obj->
getId());
99 $new_page->setTitle($page->getTitle());
100 $new_page->setType($page->getType());
101 $new_page->setOrderNr($page->getOrderNr());
102 $new_page->create(
false);
104 $page->copy($new_page->getId(),
"", $new_obj->
getId(),
true, $a_copy_id);
116 if (($this->ref_id ?? 0) > 0) {
129 $item->update($this->ref_id);
140 $this->activation_limited = $a_value;
145 $this->activation_visibility = $a_value;
155 $this->activation_starting_time = $starting_time;
160 $this->activation_ending_time = $ending_time;
165 return ($this->activation_starting_time > 0) ? $this->activation_starting_time :
null;
170 return ($this->activation_ending_time > 0) ? $this->activation_ending_time :
null;
178 string $a_permission =
"read"
182 $ilUser =
$DIC->user();
183 $ilAccess =
$DIC->access();
188 $has_permission =
false;
190 if ($obj[
"owner"] == $ilUser->getId()) {
191 $has_permission =
true;
194 if ($ilAccess->checkAccess($a_permission,
"",
$ref_id)) {
195 $has_permission =
true;
201 if ($has_permission) {
202 $res[$obj[
"obj_id"]] = $obj[
"title"];
static _getInstance(int $a_copy_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static cloneBasics(ilObjPortfolioBase $a_source, ilObjPortfolioBase $a_target)
Clone basic settings.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getActivationVisibility()
bool $activation_visibility
doCloneObject(ilObject2 $new_obj, int $a_target_id, ?int $a_copy_id=null)
int $activation_ending_time
doCreate(bool $clone_mode=false)
setActivationEndDate(?int $ending_time=null)
int $activation_starting_time
static getAvailablePortfolioTemplates(string $a_permission="read")
setActivationVisibility(bool $a_value)
setActivationLimited(bool $a_value)
setActivationStartDate(?int $starting_time=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjectActivation.
const TIMINGS_DEACTIVATED
static getItem(int $ref_id)
static _getAllReferences(int $id)
get all reference ids for object ID
static _getObjectsByType(string $obj_type="", ?int $owner=null)
static getAllPortfolioPages(int $a_portfolio_id)
Get pages of portfolio.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...