28 switch ($activation[
"timing_type"]) {
59 foreach ($pages as $page) {
61 $page_obj->setPortfolioId($this->
id);
66 protected function doCloneObject($new_obj, $a_target_id, $a_copy_id =
null)
71 if (!$cp_options->isRootNode($this->getRefId())) {
72 $new_obj->setOnline($this->
isOnline());
84 $new_page->setPortfolioId($new_obj->getId());
85 $new_page->setTitle($page->getTitle());
86 $new_page->setType($page->getType());
87 $new_page->setOrderNr($page->getOrderNr());
90 $page->copy($new_page->getId(),
"", 0,
true);
115 $item->update($this->ref_id);
126 $this->activation_limited = (bool) $a_value;
131 $this->activation_visibility = (bool) $a_value;
141 $this->activation_starting_time = $starting_time;
146 $this->activation_ending_time = $ending_time;
151 return (strlen($this->activation_starting_time)) ? $this->activation_starting_time :
null;
156 return (strlen($this->activation_ending_time)) ? $this->activation_ending_time :
null;
169 $ilAccess =
$DIC->access();
174 $has_permission =
false;
176 if ($obj[
"owner"] ==
$ilUser->getId()) {
177 $has_permission =
true;
180 if ($ilAccess->checkAccess($a_permission,
"",
$ref_id)) {
181 $has_permission =
true;
187 if ($has_permission) {
188 $res[$obj[
"obj_id"]] = $obj[
"title"];
An exception for terminatinating execution or to throw for unit testing.
static _getInstance($a_copy_id)
Get instance of copy wizard options.
static cloneBasics(ilObjPortfolioBase $a_source, ilObjPortfolioBase $a_target)
Clone basic settings.
getActivationVisibility()
setActivationLimited($a_value)
static getAvailablePortfolioTemplates($a_permission="read")
setActivationEndDate($ending_time=null)
setActivationStartDate($starting_time=null)
setActivationVisibility($a_value)
doCloneObject($new_obj, $a_target_id, $a_copy_id=null)
$activation_starting_time
Class ilObjectActivation.
const TIMINGS_DEACTIVATED
setTimingType($a_type)
Set timing type.
static getItem($a_ref_id)
Get item data.
static _getObjectsByType($a_obj_type="", $a_owner="")
Get objects by type.
static _getAllReferences($a_id)
get all reference ids of object
getId()
get object id @access public
static getAllPortfolioPages($a_portfolio_id)
Get pages of portfolio.
Page for portfolio template.
foreach($_POST as $key=> $value) $res