ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilPortfolioPageAction Class Reference

Actions on portfolio pages. More...

+ Collaboration diagram for ilPortfolioPageAction:

Public Member Functions

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

Protected Attributes

 $actor
 

Detailed Description

Actions on portfolio pages.

Author
.de

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

Constructor & Destructor Documentation

◆ __construct()

ilPortfolioPageAction::__construct ( ilObjUser  $actor = null)

Constructor.

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

References $actor, and $DIC.

22  {
23  global $DIC;
24  if (is_null($actor)) {
25  $actor = $DIC->user();
26  }
27  $this->actor = $actor;
28  }
global $DIC
Definition: saml.php:7

Member Function Documentation

◆ deletePagesOfBlog()

ilPortfolioPageAction::deletePagesOfBlog (   $a_blog_id)

Delete pages of blog.

Parameters
int$a_blog_id

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

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

36  {
37  $pages = ilPortfolioPage::getPagesForBlog($a_blog_id);
38  foreach ($pages as $page) {
39  if (ilObject::_lookupOwner($page->getPortfolioId()) == $this->actor->getId()) {
40  $page->delete();
41  }
42  }
43  }
static _lookupOwner($a_id)
lookup object owner
static getPagesForBlog($a_blog_id)
Get portfolio pages for blog.
+ Here is the call graph for this function:

Field Documentation

◆ $actor

ilPortfolioPageAction::$actor
protected

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

Referenced by __construct().


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