4 require_once
"Modules/Portfolio/classes/class.ilObjPortfolioBase.php";
32 include_once
"./Services/Object/classes/class.ilObjectActivation.php";
34 switch($activation[
"timing_type"])
65 include_once
"Modules/Portfolio/classes/class.ilPortfolioTemplatePage.php";
67 foreach($pages as $page)
70 $page_obj->setPortfolioId($this->
id);
75 protected function doCloneObject($new_obj, $a_target_id, $a_copy_id = null)
77 self::cloneBasics($this, $new_obj);
80 include_once
"Modules/Portfolio/classes/class.ilPortfolioTemplatePage.php";
88 $new_page->setPortfolioId($new_obj->getId());
89 $new_page->setTitle($page->getTitle());
90 $new_page->setType($page->getType());
91 $new_page->setOrderNr($page->getOrderNr());
94 $page->copy($new_page->getId(),
"", 0,
true);
108 include_once
"./Services/Object/classes/class.ilObjectActivation.php";
124 $item->update($this->ref_id);
135 $this->activation_limited = (bool)$a_value;
140 $this->activation_visibility = (bool) $a_value;
150 $this->activation_starting_time = $starting_time;
155 $this->activation_ending_time = $ending_time;
160 return (strlen($this->activation_starting_time)) ? $this->activation_starting_time : NULL;
165 return (strlen($this->activation_ending_time)) ? $this->activation_ending_time : NULL;
181 $has_permission =
false;
183 if($obj[
"owner"] == $ilUser->getId() &&
false)
185 $has_permission =
true;
191 if($ilAccess->checkAccess($a_permission,
"",
$ref_id))
193 $has_permission =
true;
201 $res[$obj[
"obj_id"]] = $obj[
"title"];
setActivationLimited($a_value)
static getItem($a_ref_id)
Get item data.
const TIMINGS_DEACTIVATED
static _getObjectsByType($a_obj_type="", $a_owner="")
Get objects by type.
setActivationEndDate($ending_time=NULL)
static _getAllReferences($a_id)
get all reference ids of object
$activation_starting_time
setActivationVisibility($a_value)
Page for portfolio template.
static getAvailablePortfolioTemplates($a_permission="read")
getActivationVisibility()
setTimingType($a_type)
Set timing type.
static getAllPages($a_portfolio_id)
Get pages of portfolio.
Class ilObjectActivation.
doCloneObject($new_obj, $a_target_id, $a_copy_id=null)
setActivationStartDate($starting_time=NULL)