ILIAS  release_8 Revision v8.24
ilPortfolioPageAction Class Reference

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

+ Collaboration diagram for ilPortfolioPageAction:

Public Member Functions

 __construct (ilObjUser $actor=null)
 
 deletePagesOfBlog (int $a_blog_id)
 Delete pages of blog. More...
 

Protected Attributes

ilObjUser $actor
 

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 Actions on portfolio pages

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 23 of file class.ilPortfolioPageAction.php.

Constructor & Destructor Documentation

◆ __construct()

ilPortfolioPageAction::__construct ( ilObjUser  $actor = null)

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

28 {
29 global $DIC;
30 if (is_null($actor)) {
31 $actor = $DIC->user();
32 }
33 $this->actor = $actor;
34 }
global $DIC
Definition: feed.php:28

References $actor, and $DIC.

Member Function Documentation

◆ deletePagesOfBlog()

ilPortfolioPageAction::deletePagesOfBlog ( int  $a_blog_id)

Delete pages of blog.

Definition at line 39 of file class.ilPortfolioPageAction.php.

39 : void
40 {
41 $pages = ilPortfolioPage::getPagesForBlog($a_blog_id);
42 foreach ($pages as $page) {
43 if (ilObject::_lookupOwner($page->getPortfolioId()) === $this->actor->getId()) {
44 $page->delete();
45 }
46 }
47 }
static _lookupOwner(int $obj_id)
Lookup owner user ID for object ID.
static getPagesForBlog(int $a_blog_id)
Get portfolio pages for blog.

References ilObject\_lookupOwner(), and ilPortfolioPage\getPagesForBlog().

+ Here is the call graph for this function:

Field Documentation

◆ $actor

ilObjUser ilPortfolioPageAction::$actor
protected

Definition at line 25 of file class.ilPortfolioPageAction.php.

Referenced by __construct().


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