4 require_once
"Modules/Portfolio/classes/class.ilObjPortfolioBase.php";
31 include_once
"./Services/Object/classes/class.ilObjectActivation.php";
33 switch ($activation[
"timing_type"]) {
63 include_once
"Modules/Portfolio/classes/class.ilPortfolioTemplatePage.php";
65 foreach ($pages as $page) {
67 $page_obj->setPortfolioId($this->
id);
72 protected function doCloneObject($new_obj, $a_target_id, $a_copy_id = null)
77 if (!$cp_options->isRootNode($this->getRefId())) {
78 $new_obj->setOnline($this->
isOnline());
81 self::cloneBasics($this, $new_obj);
84 include_once
"Modules/Portfolio/classes/class.ilPortfolioTemplatePage.php";
91 $new_page->setPortfolioId($new_obj->getId());
92 $new_page->setTitle($page->getTitle());
93 $new_page->setType($page->getType());
94 $new_page->setOrderNr($page->getOrderNr());
97 $page->copy($new_page->getId(),
"", 0,
true);
110 include_once
"./Services/Object/classes/class.ilObjectActivation.php";
123 $item->update($this->ref_id);
134 $this->activation_limited = (bool) $a_value;
139 $this->activation_visibility = (bool) $a_value;
149 $this->activation_starting_time = $starting_time;
154 $this->activation_ending_time = $ending_time;
159 return (strlen($this->activation_starting_time)) ? $this->activation_starting_time : null;
164 return (strlen($this->activation_ending_time)) ? $this->activation_ending_time : null;
177 $ilAccess = $DIC->access();
182 $has_permission =
false;
184 if ($obj[
"owner"] ==
$ilUser->getId()) {
185 $has_permission =
true;
188 if ($ilAccess->checkAccess($a_permission,
"",
$ref_id)) {
189 $has_permission =
true;
195 if ($has_permission) {
196 $res[$obj[
"obj_id"]] = $obj[
"title"];
static getAllPortfolioPages($a_portfolio_id)
Get pages of portfolio.
setActivationLimited($a_value)
setActivationEndDate($ending_time=null)
static getItem($a_ref_id)
Get item data.
const TIMINGS_DEACTIVATED
static _getObjectsByType($a_obj_type="", $a_owner="")
Get objects by type.
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.
foreach($_POST as $key=> $value) $res
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.
setActivationStartDate($starting_time=null)
Class ilObjectActivation.
doCloneObject($new_obj, $a_target_id, $a_copy_id=null)