ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
ilObjPortfolioBase Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilObjPortfolioBase:
+ Collaboration diagram for ilObjPortfolioBase:

Public Member Functions

 __construct (int $a_id=0, bool $a_reference=true)
 Constructor. More...
 
 setPublicComments (bool $a_value)
 
 hasPublicComments ()
 
 hasProfilePicture ()
 
 setProfilePicture (bool $a_status)
 
 getBackgroundColor ()
 
 setBackgroundColor (string $a_value)
 Set background color, e.g. More...
 
 getFontColor ()
 
 setFontColor (string $a_value)
 
 fixLinksOnTitleChange (array $a_title_changes)
 Update internal portfolio links on title change. More...
 
- Public Member Functions inherited from ilObject2
 __construct (int $a_id=0, bool $a_reference=true)
 Constructor. More...
 
 read ()
 
 create (bool $a_clone_mode=false)
 
 update ()
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More...
 
 cloneMetaData (ilObject $target_obj)
 Copy meta data. More...
 
 cloneObject (int $target_id, int $copy_id=0, bool $omit_tree=false)
 
- Public Member Functions inherited from ilObject
 getObjectProperties ()
 
 flushObjectProperties ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 processAutoRating ()
 
 read ()
 
 getId ()
 
 setId (int $id)
 
 setRefId (int $ref_id)
 
 getRefId ()
 
 getType ()
 
 setType (string $type)
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 
 getUntranslatedTitle ()
 Get untranslated object title WebDAV needs to access the untranslated title of an object. More...
 
 setTitle (string $title)
 
 getDescription ()
 
 setDescription (string $description)
 
 getLongDescription ()
 get object long description (stored in object_description) More...
 
 getImportId ()
 
 setImportId (string $import_id)
 
 setOfflineStatus (bool $status)
 
 getOfflineStatus ()
 
 supportsOfflineHandling ()
 
 getOwner ()
 
 getOwnerName ()
 get full name of object owner More...
 
 setOwner (int $usr_id)
 
 getCreateDate ()
 Get create date in YYYY-MM-DD HH-MM-SS format. More...
 
 getLastUpdateDate ()
 Get last update date in YYYY-MM-DD HH-MM-SS format. More...
 
 create ()
 note: title, description and type should be set when this function is called More...
 
 update ()
 
 MDUpdateListener (string $element)
 Metadata update listener. More...
 
 createMetaData ()
 
 updateMetaData ()
 
 deleteMetaData ()
 
 updateOwner ()
 update owner of object in db More...
 
 putInTree (int $parent_ref_id)
 maybe this method should be in tree object!? More...
 
 setPermissions (int $parent_ref_id)
 
 setParentRolePermissions (int $parent_ref_id)
 Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More...
 
 createReference ()
 creates reference for object More...
 
 countReferences ()
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More...
 
 initDefaultRoles ()
 init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type. More...
 
 applyDidacticTemplate (int $tpl_id)
 
 getXMLZip ()
 
 getHTMLDirectory ()
 
 appendCopyInfo (int $target_id, int $copy_id, int $new_obj_id)
 Prepend Copy info if object with same name exists in that container. More...
 
 cloneDependencies (int $target_id, int $copy_id)
 Clone object dependencies. More...
 
 cloneMetaData (ilObject $target_obj)
 Copy meta data. More...
 
 selfOrParentWithRatingEnabled ()
 
 getPossibleSubObjects (bool $filter=true)
 get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model More...
 

Static Public Member Functions

static clonePagesAndSettings (ilObjPortfolioBase $a_source, ilObjPortfolioBase $a_target, ?array $a_recipe=null, bool $copy_all=false)
 Build template from portfolio and vice versa. More...
 
- Static Public Member Functions inherited from ilObject
static _lookupObjIdByImportId (string $import_id)
 Get (latest) object id for an import id. More...
 
static _lookupImportId (int $obj_id)
 
static _lookupOwnerName (int $owner_id)
 Lookup owner name for owner id. More...
 
static _getIdForImportId (string $import_id)
 
static _getAllReferences (int $id)
 get all reference ids for object ID More...
 
static _lookupTitle (int $obj_id)
 
static lookupOfflineStatus (int $obj_id)
 Lookup offline status using objectDataCache. More...
 
static _lookupOwner (int $obj_id)
 Lookup owner user ID for object ID. More...
 
static _getIdsForTitle (string $title, string $type='', bool $partial_match=false)
 
static _lookupDescription (int $obj_id)
 
static _lookupLastUpdate (int $obj_id, bool $formatted=false)
 
static _getLastUpdateOfObjects (array $obj_ids)
 
static _lookupObjId (int $ref_id)
 
static _setDeletedDate (int $ref_id, int $deleted_by)
 
static setDeletedDates (array $ref_ids, int $user_id)
 
static _resetDeletedDate (int $ref_id)
 
static _lookupDeletedDate (int $ref_id)
 
static _writeTitle (int $obj_id, string $title)
 write title to db (static) More...
 
static _writeDescription (int $obj_id, string $desc)
 write description to db (static) More...
 
static _writeImportId (int $obj_id, string $import_id)
 write import id to db (static) More...
 
static _lookupType (int $id, bool $reference=false)
 
static _isInTrash (int $ref_id)
 
static _hasUntrashedReference (int $obj_id)
 checks whether an object has at least one reference that is not in trash More...
 
static _lookupObjectId (int $ref_id)
 
static _getObjectsDataForType (string $type, bool $omit_trash=false)
 get all objects of a certain type More...
 
static _exists (int $id, bool $reference=false, ?string $type=null)
 checks if an object exists in object_data More...
 
static _getObjectsByType (string $obj_type="", ?int $owner=null)
 
static _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true)
 Prepare copy wizard object selection. More...
 
static getIconForType (string $type)
 
static _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false)
 Get icon for repository item. More...
 
static collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0)
 Collect deletion dependencies. More...
 
static getDeletionDependencies (int $obj_id)
 Get deletion dependencies. More...
 
static getLongDescriptions (array $obj_ids)
 
static getAllOwnedRepositoryObjects (int $user_id)
 
static fixMissingTitles ($type, array &$obj_title_map)
 Try to fix missing object titles. More...
 
static _lookupCreationDate (int $obj_id)
 
static _getObjectTypeIdByTitle (string $type, ?\ilDBInterface $ilDB=null)
 

Protected Member Functions

 doRead ()
 
 doReadCustom (array $a_row)
 May be overwritten by derived classes. More...
 
 doCreate (bool $clone_mode=false)
 
 doUpdate ()
 
 doUpdateCustom (array &$a_fields)
 May be overwritte by derived classes. More...
 
 doDelete ()
 
 deleteAllPages ()
 
- Protected Member Functions inherited from ilObject2
 initType ()
 
 doRead ()
 
 doCreate (bool $clone_mode=false)
 
 beforeCreate ()
 If overwritten this method should return true, there is currently no "abort" handling for cases where "false" is returned. More...
 
 doUpdate ()
 
 beforeUpdate ()
 
 doDelete ()
 
 beforeDelete ()
 
 doCloneObject (ilObject2 $new_obj, int $a_target_id, ?int $a_copy_id=null)
 
 beforeCloneObject ()
 
- Protected Member Functions inherited from ilObject
 doMDUpdateListener (string $a_element)
 
 beforeMDUpdateListener (string $a_element)
 
 doCreateMetaData ()
 
 beforeCreateMetaData ()
 
 doUpdateMetaData ()
 
 beforeUpdateMetaData ()
 
 doDeleteMetaData ()
 
 beforeDeleteMetaData ()
 
 handleAutoRating ()
 
 hasAutoRating ()
 

Static Protected Member Functions

static cloneBasics (ilObjPortfolioBase $a_source, ilObjPortfolioBase $a_target)
 Clone basic settings. More...
 
static updateDomNodes (DOMDocument $a_dom, string $a_xpath, string $a_attr_id, string $a_attr_value)
 

Protected Attributes

ILIAS Notes Service $notes
 
ilSetting $setting
 
bool $comments = false
 
string $bg_color = ""
 
string $font_color = ""
 
string $img = ""
 
string $ppic = ""
 
bool $style = false
 
- Protected Attributes inherited from ilObject
ilLogger $obj_log
 
ILIAS $ilias
 
ilObjectDefinition $obj_definition
 
ilDBInterface $db
 
ilLogger $log
 
ilErrorHandling $error
 
ilTree $tree
 
ilAppEventHandler $app_event_handler
 
ilRbacAdmin $rbac_admin
 
ilRbacReview $rbac_review
 
ilObjUser $user
 
ilLanguage $lng
 
LOMServices $lom_services
 
bool $call_by_reference
 
int $max_title = self::TITLE_LENGTH
 
int $max_desc = self::DESC_LENGTH
 
bool $add_dots = true
 
int $ref_id = null
 
string $type = ""
 
string $title = ""
 
string $desc = ""
 
string $long_desc = ""
 
int $owner = 0
 
string $create_date = ""
 
string $last_update = ""
 
string $import_id = ""
 
bool $register = false
 

Additional Inherited Members

- Data Fields inherited from ilObject
const TITLE_LENGTH = 255
 
const DESC_LENGTH = 128
 
const LONG_DESC_LENGTH = 4000
 
const TABLE_OBJECT_DATA = "object_data"
 
array $objectList
 
string $untranslatedTitle
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Portfolio base

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 24 of file class.ilObjPortfolioBase.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjPortfolioBase::__construct ( int  $a_id = 0,
bool  $a_reference = true 
)

Constructor.

Parameters
int$a_idreference_id or object_id
bool$a_referencetreat the id as reference_id (true) or object_id (false)

Reimplemented from ilObject2.

Definition at line 35 of file class.ilObjPortfolioBase.php.

38 {
39 global $DIC;
40
41 $this->notes = $DIC->notes();
42
43 parent::__construct($a_id, $a_reference);
44
45 $this->setting = $DIC->settings();
46
47 $this->db = $DIC->database();
48 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

References $DIC, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ cloneBasics()

static ilObjPortfolioBase::cloneBasics ( ilObjPortfolioBase  $a_source,
ilObjPortfolioBase  $a_target 
)
staticprotected

Clone basic settings.

Parameters
ilObjPortfolioBase$a_source
ilObjPortfolioBase$a_target

Definition at line 199 of file class.ilObjPortfolioBase.php.

202 : void {
203 global $DIC;
204
205 // copy portfolio properties
206 $a_target->setPublicComments($a_source->hasPublicComments());
207 $a_target->setProfilePicture($a_source->hasProfilePicture());
208 $a_target->setFontColor($a_source->getFontColor());
209 $a_target->setBackgroundColor($a_source->getBackgroundColor());
210 $a_target->update();
211
212 // container settings
213 foreach (ilContainer::_getContainerSettings($a_source->getId()) as $keyword => $value) {
214 ilContainer::_writeContainerSetting($a_target->getId(), $keyword, $value);
215 }
216
217 // style
218 $content_style_domain = $DIC
219 ->contentStyle()
220 ->domain()
221 ->styleForObjId($a_source->getId());
222 $content_style_domain->cloneTo($a_target->getId());
223 }
static _writeContainerSetting(int $a_id, string $a_keyword, string $a_value)
static _getContainerSettings(int $a_id)
setProfilePicture(bool $a_status)
setBackgroundColor(string $a_value)
Set background color, e.g.

References ilContainer\_writeContainerSetting(), and ilObject\getId().

Referenced by ilObjPortfolioTemplate\doCloneObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clonePagesAndSettings()

static ilObjPortfolioBase::clonePagesAndSettings ( ilObjPortfolioBase  $a_source,
ilObjPortfolioBase  $a_target,
?array  $a_recipe = null,
bool  $copy_all = false 
)
static

Build template from portfolio and vice versa.

Definition at line 228 of file class.ilObjPortfolioBase.php.

233 : void {
234 global $DIC;
235
236 $lng = $DIC->language();
237 $ilUser = $DIC->user();
238 $skill_personal_service = $DIC->skills()->personal();
239
240 $source_id = $a_source->getId();
241 $target_id = $a_target->getId();
242
243 if ($a_source instanceof ilObjPortfolioTemplate &&
244 $a_target instanceof ilObjPortfolio) {
245 $direction = "t2p";
246 } elseif ($a_source instanceof ilObjPortfolio &&
247 $a_target instanceof ilObjPortfolioTemplate) {
248 $direction = "p2t";
249 } else {
250 return;
251 }
252
253 self::cloneBasics($a_source, $a_target);
254
255 // copy advanced metadata
257 ilAdvancedMDValues::_cloneValues($copy_id, $a_source->getId(), $a_target->getId());
258
259 // copy selection of global optional sets
261 $a_target->getId(),
262 'pfpg',
264 );
265
266 // fix metadata record type assignment
267 // e.g. if portfolio is created from template
268 // we need to change this from prtt to prtf
270 ilObject::_lookupType($a_source->getId()),
271 $a_target->getId(),
272 "pfpg",
273 false
274 ) as $rec) {
275 /*
276 * BT 35494: reset assignement of the newly cloned local records,
277 * and only append what's needed to global ones
278 */
279 $target_type = ilObject::_lookupType($a_target->getId());
280 if ($rec->getParentObject() == $a_target->getId()) {
281 $rec->setAssignedObjectTypes(
282 [[
283 "obj_type" => $target_type,
284 "sub_type" => "pfpg",
285 "optional" => 0
286 ]
287 ]
288 );
289 } elseif (!$rec->isAssignedObjectType($target_type, 'pfpg')) {
290 $rec->appendAssignedObjectType(
291 $target_type,
292 "pfpg"
293 );
294 }
295 $rec->update();
296 }
297
298 // personal skills
299 $pskills = array_keys($skill_personal_service->getSelectedUserSkills($ilUser->getId()));
300
301 // copy pages
302 $page_map = array();
303 foreach (ilPortfolioPage::getAllPortfolioPages($source_id) as $page) {
304 $page_id = $page["id"];
305
306 if ($direction === "t2p") {
307 $source_page = new ilPortfolioTemplatePage($page_id);
308 $target_page = new ilPortfolioPage();
309 } else {
310 $source_page = new ilPortfolioPage($page_id);
311 $target_page = new ilPortfolioTemplatePage();
312 }
313 $source_page->setPortfolioId($source_id);
314 $target_page->setPortfolioId($target_id);
315
316 $page_type = $source_page->getType();
317 $page_title = $source_page->getTitle();
318
319
320
321
322 $page_recipe = null;
323 if (isset($a_recipe)) {
324 $page_recipe = $a_recipe[$page_id] ?? null;
325 }
326
327 $valid = false;
328 switch ($page_type) {
329 // page editor
330 default:
331 $target_page->setXMLContent(
332 $source_page->copyXmlContent(
333 true,
334 $a_target->getId(),
335 $copy_id
336 )
337 );
338 $target_page->buildDom(true);
339
340 // parse content / blocks
341
342 if ($direction === "t2p") {
343 $dom = $target_page->getDomDoc();
344
345 // update profile/consultation hours user id
346 self::updateDomNodes($dom, "//PageContent/Profile", "User", $ilUser->getId());
347 self::updateDomNodes($dom, "//PageContent/ConsultationHours", "User", $ilUser->getId());
348 self::updateDomNodes($dom, "//PageContent/MyCourses", "User", $ilUser->getId());
349
350 // skills
351 $xpath = new DOMXPath($dom);
352 $nodes = $xpath->query("//PageContent/Skills");
353 foreach ($nodes as $node) {
354 $skill_id = $node->getAttribute("Id");
355
356 // existing personal skills
357 if (in_array($skill_id, $pskills)) {
358 $node->setAttribute("User", $ilUser->getId());
359 }
360 // new skill
361 elseif ($copy_all || in_array($skill_id, $a_recipe["skills"])) {
362 $skill_personal_service->addPersonalSkill($ilUser->getId(), $skill_id);
363
364 $node->setAttribute("User", $ilUser->getId());
365 }
366 // remove skill
367 else {
368 $page_element = $node->parentNode;
369 $page_element->parentNode->removeChild($page_element);
370 }
371 }
372 }
373
374 $valid = true;
375 break;
376 }
377
378 if ($valid) {
379 // #12038 - update xml from dom
380 $target_page->setXMLContent($target_page->getXMLFromDom());
381
382 $target_page->setType($page_type);
383 $target_page->setTitle($page_title);
384 $target_page->create(false);
385
386 if ($page_type === ilPortfolioPage::TYPE_PAGE) {
387 $target_page->update(); // handle mob usages!
388 }
389 $page_map[$source_page->getId()] = $target_page->getId();
390 }
391 }
392 ilPortfolioPage::updateInternalLinks($page_map, $a_target);
393 }
static getObjRecSelection(int $a_obj_id, string $a_sub_type="")
Get repository object record selection.
static _getSelectedRecordsByObject(string $a_obj_type, int $a_id, string $a_sub_type="", bool $is_ref_id=true)
static saveObjRecSelection(int $a_obj_id, string $a_sub_type="", ?array $a_records=null, bool $a_delete_before=true)
Save repository object record selection.
static _cloneValues(int $copy_id, int $a_source_id, int $a_target_id, ?string $a_sub_type=null, ?int $a_source_sub_id=null, ?int $a_target_sub_id=null)
Clone Advanced Meta Data.
static _allocateCopyId()
Allocate a copy for further entries.
static cloneBasics(ilObjPortfolioBase $a_source, ilObjPortfolioBase $a_target)
Clone basic settings.
static updateDomNodes(DOMDocument $a_dom, string $a_xpath, string $a_attr_id, string $a_attr_value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupType(int $id, bool $reference=false)
ilLanguage $lng
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getAllPortfolioPages(int $a_portfolio_id)
Get pages of portfolio.
static updateInternalLinks(array $a_copied_nodes, ilObjPortfolioBase $a_target_obj)
Update internal links, after multiple pages have been copied.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$valid

Referenced by ILIAS\Portfolio\Administration\PortfolioRoleAssignmentManager\assignPortfoliosOnLogin(), and ilObjPortfolioGUI\createPortfolioFromAssignment().

+ Here is the caller graph for this function:

◆ deleteAllPages()

ilObjPortfolioBase::deleteAllPages ( )
abstractprotected

Reimplemented in ilObjPortfolio, and ilObjPortfolioTemplate.

Referenced by doDelete().

+ Here is the caller graph for this function:

◆ doCreate()

ilObjPortfolioBase::doCreate ( bool  $clone_mode = false)
protected

Reimplemented from ilObject2.

Reimplemented in ilObjPortfolioTemplate.

Definition at line 140 of file class.ilObjPortfolioBase.php.

140 : void
141 {
143
144 $ilDB->manipulate("INSERT INTO usr_portfolio (id)" .
145 " VALUES (" . $ilDB->quote($this->id, "integer") . ")");
146 }
ilDBInterface $db

References ilObject\$db, and $ilDB.

◆ doDelete()

ilObjPortfolioBase::doDelete ( )
protected

Reimplemented from ilObject2.

Definition at line 176 of file class.ilObjPortfolioBase.php.

176 : void
177 {
179
180 $this->deleteAllPages();
181
182 $ilDB->manipulate("DELETE FROM usr_portfolio" .
183 " WHERE id = " . $ilDB->quote($this->id, "integer"));
184 }

References ilObject\$db, $ilDB, and deleteAllPages().

+ Here is the call graph for this function:

◆ doRead()

ilObjPortfolioBase::doRead ( )
protected

Reimplemented from ilObject2.

Reimplemented in ilObjPortfolioTemplate.

Definition at line 115 of file class.ilObjPortfolioBase.php.

115 : void
116 {
118
119 $set = $ilDB->query("SELECT * FROM usr_portfolio" .
120 " WHERE id = " . $ilDB->quote($this->id, "integer"));
121 $row = $ilDB->fetchAssoc($set);
122
123 $this->setProfilePicture((bool) $row["ppic"]);
124 $this->setBackgroundColor((string) $row["bg_color"]);
125 $this->setFontColor((string) $row["font_color"]);
126
127 // #14661
128 $this->setPublicComments($this->notes->domain()->commentsActive($this->id));
129
130 $this->doReadCustom($row);
131 }
doReadCustom(array $a_row)
May be overwritten by derived classes.

References ilObject\$db, $ilDB, doReadCustom(), setBackgroundColor(), setFontColor(), setProfilePicture(), and setPublicComments().

+ Here is the call graph for this function:

◆ doReadCustom()

ilObjPortfolioBase::doReadCustom ( array  $a_row)
protected

May be overwritten by derived classes.

Definition at line 136 of file class.ilObjPortfolioBase.php.

136 : void
137 {
138 }

Referenced by doRead().

+ Here is the caller graph for this function:

◆ doUpdate()

ilObjPortfolioBase::doUpdate ( )
protected

Reimplemented from ilObject2.

Reimplemented in ilObjPortfolioTemplate.

Definition at line 148 of file class.ilObjPortfolioBase.php.

148 : void
149 {
151
152 $fields = array(
153 "ppic" => array("integer", $this->hasProfilePicture()),
154 "bg_color" => array("text", $this->getBackgroundColor()),
155 "font_color" => array("text", $this->getFontColor())
156 );
157 $this->doUpdateCustom($fields);
158
159 // #14661
160 $this->notes->domain()->activateComments($this->id, $this->hasPublicComments());
161
162 $ilDB->update(
163 "usr_portfolio",
164 $fields,
165 array("id" => array("integer", $this->id))
166 );
167 }
doUpdateCustom(array &$a_fields)
May be overwritte by derived classes.

References ilObject\$db, $ilDB, doUpdateCustom(), getBackgroundColor(), getFontColor(), hasProfilePicture(), and hasPublicComments().

+ Here is the call graph for this function:

◆ doUpdateCustom()

ilObjPortfolioBase::doUpdateCustom ( array &  $a_fields)
protected

May be overwritte by derived classes.

Definition at line 172 of file class.ilObjPortfolioBase.php.

172 : void
173 {
174 }

Referenced by doUpdate().

+ Here is the caller graph for this function:

◆ fixLinksOnTitleChange()

ilObjPortfolioBase::fixLinksOnTitleChange ( array  $a_title_changes)

Update internal portfolio links on title change.

Definition at line 411 of file class.ilObjPortfolioBase.php.

411 : void
412 {
413 foreach (ilPortfolioPage::getAllPortfolioPages($this->getId()) as $port_page) {
414 if ($this->getType() === "prtt") {
415 $page = new ilPortfolioTemplatePage($port_page["id"]);
416 } else {
417 $page = new ilPortfolioPage($port_page["id"]);
418 }
419 if ($page->renameLinksOnTitleChange($a_title_changes)) {
420 $page->update(true, true);
421 }
422 }
423 }

References ilPortfolioPage\getAllPortfolioPages(), and ILIAS\Survey\Mode\getId().

+ Here is the call graph for this function:

◆ getBackgroundColor()

ilObjPortfolioBase::getBackgroundColor ( )

Definition at line 82 of file class.ilObjPortfolioBase.php.

82 : string
83 {
84 if (!$this->bg_color) {
85 $this->bg_color = "ffffff";
86 }
87 return $this->bg_color;
88 }

References $bg_color.

Referenced by doUpdate().

+ Here is the caller graph for this function:

◆ getFontColor()

ilObjPortfolioBase::getFontColor ( )

Definition at line 98 of file class.ilObjPortfolioBase.php.

98 : string
99 {
100 if (!$this->font_color) {
101 $this->font_color = "505050";
102 }
103 return $this->font_color;
104 }

References $font_color.

Referenced by doUpdate().

+ Here is the caller graph for this function:

◆ hasProfilePicture()

ilObjPortfolioBase::hasProfilePicture ( )

Definition at line 72 of file class.ilObjPortfolioBase.php.

72 : bool
73 {
74 return $this->ppic;
75 }

References $ppic.

Referenced by doUpdate().

+ Here is the caller graph for this function:

◆ hasPublicComments()

ilObjPortfolioBase::hasPublicComments ( )

Definition at line 67 of file class.ilObjPortfolioBase.php.

67 : bool
68 {
69 return $this->comments;
70 }

References $comments.

Referenced by doUpdate().

+ Here is the caller graph for this function:

◆ setBackgroundColor()

ilObjPortfolioBase::setBackgroundColor ( string  $a_value)

Set background color, e.g.

"efefef"

Definition at line 93 of file class.ilObjPortfolioBase.php.

93 : void
94 {
95 $this->bg_color = $a_value;
96 }

Referenced by doRead().

+ Here is the caller graph for this function:

◆ setFontColor()

ilObjPortfolioBase::setFontColor ( string  $a_value)

Definition at line 106 of file class.ilObjPortfolioBase.php.

106 : void
107 {
108 $this->font_color = $a_value;
109 }

Referenced by doRead().

+ Here is the caller graph for this function:

◆ setProfilePicture()

ilObjPortfolioBase::setProfilePicture ( bool  $a_status)

Definition at line 77 of file class.ilObjPortfolioBase.php.

77 : void
78 {
79 $this->ppic = $a_status;
80 }

Referenced by doRead().

+ Here is the caller graph for this function:

◆ setPublicComments()

ilObjPortfolioBase::setPublicComments ( bool  $a_value)

Definition at line 62 of file class.ilObjPortfolioBase.php.

62 : void
63 {
64 $this->comments = $a_value;
65 }

Referenced by doRead().

+ Here is the caller graph for this function:

◆ updateDomNodes()

static ilObjPortfolioBase::updateDomNodes ( DOMDocument  $a_dom,
string  $a_xpath,
string  $a_attr_id,
string  $a_attr_value 
)
staticprotected

Definition at line 395 of file class.ilObjPortfolioBase.php.

400 : void {
401 $xpath_temp = new DOMXPath($a_dom);
402 $nodes = $xpath_temp->query($a_xpath);
403 foreach ($nodes as $node) {
404 $node->setAttribute($a_attr_id, $a_attr_value);
405 }
406 }

Field Documentation

◆ $bg_color

string ilObjPortfolioBase::$bg_color = ""
protected

Definition at line 29 of file class.ilObjPortfolioBase.php.

Referenced by getBackgroundColor().

◆ $comments

bool ilObjPortfolioBase::$comments = false
protected

Definition at line 28 of file class.ilObjPortfolioBase.php.

Referenced by hasPublicComments().

◆ $font_color

string ilObjPortfolioBase::$font_color = ""
protected

Definition at line 30 of file class.ilObjPortfolioBase.php.

Referenced by getFontColor().

◆ $img

string ilObjPortfolioBase::$img = ""
protected

Definition at line 31 of file class.ilObjPortfolioBase.php.

◆ $notes

ILIAS Notes Service ilObjPortfolioBase::$notes
protected

Definition at line 26 of file class.ilObjPortfolioBase.php.

◆ $ppic

string ilObjPortfolioBase::$ppic = ""
protected

Definition at line 32 of file class.ilObjPortfolioBase.php.

Referenced by hasProfilePicture().

◆ $setting

ilSetting ilObjPortfolioBase::$setting
protected

Definition at line 27 of file class.ilObjPortfolioBase.php.

◆ $style

bool ilObjPortfolioBase::$style = false
protected

Definition at line 33 of file class.ilObjPortfolioBase.php.


The documentation for this class was generated from the following file: