ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilPortfolioPageAction.php
Go to the documentation of this file.
1
<?
php
2
3
/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4
11
class
ilPortfolioPageAction
12
{
16
protected
$actor
;
17
21
public
function
__construct
(
ilObjUser
$actor
= null)
22
{
23
global
$DIC
;
24
if
(is_null(
$actor
)) {
25
$actor
= $DIC->user();
26
}
27
$this->actor =
$actor
;
28
}
29
35
public
function
deletePagesOfBlog
($a_blog_id)
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
}
44
}
ilPortfolioPageAction
Actions on portfolio pages.
Definition:
class.ilPortfolioPageAction.php:11
$DIC
global $DIC
Definition:
saml.php:7
ilPortfolioPageAction\deletePagesOfBlog
deletePagesOfBlog($a_blog_id)
Delete pages of blog.
Definition:
class.ilPortfolioPageAction.php:35
ilObject\_lookupOwner
static _lookupOwner($a_id)
lookup object owner
Definition:
class.ilObject.php:1020
ilPortfolioPageAction\$actor
$actor
Definition:
class.ilPortfolioPageAction.php:16
ilPortfolioPage\getPagesForBlog
static getPagesForBlog($a_blog_id)
Get portfolio pages for blog.
Definition:
class.ilPortfolioPage.php:465
php
ilObjUser
Definition:
class.ilObjUser.php:25
ilPortfolioPageAction\__construct
__construct(ilObjUser $actor=null)
Constructor.
Definition:
class.ilPortfolioPageAction.php:21
Modules
Portfolio
classes
class.ilPortfolioPageAction.php
Generated on Thu Jan 16 2025 19:02:07 for ILIAS by
1.8.13 (using
Doxyfile
)