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)
80 if(!$cp_options->isRootNode($this->getRefId()))
82 $new_obj->setOnline($this->
isOnline());
85 self::cloneBasics($this, $new_obj);
88 include_once
"Modules/Portfolio/classes/class.ilPortfolioTemplatePage.php";
96 $new_page->setPortfolioId($new_obj->getId());
97 $new_page->setTitle($page->getTitle());
98 $new_page->setType($page->getType());
99 $new_page->setOrderNr($page->getOrderNr());
102 $page->copy($new_page->getId(),
"", 0,
true);
116 include_once
"./Services/Object/classes/class.ilObjectActivation.php";
132 $item->update($this->ref_id);
143 $this->activation_limited = (bool)$a_value;
148 $this->activation_visibility = (bool) $a_value;
158 $this->activation_starting_time = $starting_time;
163 $this->activation_ending_time = $ending_time;
168 return (strlen($this->activation_starting_time)) ? $this->activation_starting_time : NULL;
173 return (strlen($this->activation_ending_time)) ? $this->activation_ending_time : NULL;
189 $has_permission =
false;
191 if($obj[
"owner"] == $ilUser->getId())
193 $has_permission =
true;
199 if($ilAccess->checkAccess($a_permission,
"",
$ref_id))
201 $has_permission =
true;
209 $res[$obj[
"obj_id"]] = $obj[
"title"];
static getAllPortfolioPages($a_portfolio_id)
Get pages of portfolio.
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)
static _getInstance($a_copy_id)
Get instance of copy wizard options.
Page for portfolio template.
static getAvailablePortfolioTemplates($a_permission="read")
getActivationVisibility()
Create styles array
The data for the language used.
setTimingType($a_type)
Set timing type.
Class ilObjectActivation.
doCloneObject($new_obj, $a_target_id, $a_copy_id=null)
setActivationStartDate($starting_time=NULL)