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);
 
   84        if (!$cp_options->isRootNode($this->getRefId())) {
 
   85            $new_obj->setOnline($this->
isOnline());
 
   97            $new_page->setPortfolioId($new_obj->
getId());
 
   98            $new_page->setTitle($page->getTitle());
 
   99            $new_page->setType($page->getType());
 
  100            $new_page->setOrderNr($page->getOrderNr());
 
  101            $new_page->create(
false);
 
  103            $page->copy($new_page->getId(), 
"", $new_obj->
getId(), 
true, $a_copy_id);
 
  115        if (($this->ref_id ?? 0) > 0) {
 
  128            $item->update($this->ref_id);
 
  139        $this->activation_limited = $a_value;
 
  144        $this->activation_visibility = $a_value;
 
  154        $this->activation_starting_time = $starting_time;
 
  159        $this->activation_ending_time = $ending_time;
 
  164        return ($this->activation_starting_time > 0) ? $this->activation_starting_time : 
null;
 
  169        return ($this->activation_ending_time > 0) ? $this->activation_ending_time : 
null;
 
  177        string $a_permission = 
"read" 
  182        $ilAccess = 
$DIC->access();
 
  187            $has_permission = 
false;
 
  189            if ($obj[
"owner"] == 
$ilUser->getId()) {
 
  190                $has_permission = 
true;
 
  193                    if ($ilAccess->checkAccess($a_permission, 
"", 
$ref_id)) {
 
  194                        $has_permission = 
true;
 
  200            if ($has_permission) {
 
  201                $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 _getObjectsByType(string $obj_type="", int $owner=null)
 
static _getAllReferences(int $id)
get all reference ids for object ID
 
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...