ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilPortfolioTemplatePage.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
include_once(
"./Modules/Portfolio/classes/class.ilPortfolioPage.php"
);
5
14
class
ilPortfolioTemplatePage
extends
ilPortfolioPage
15
{
16
const
TYPE_BLOG_TEMPLATE
= 3;
17
23
public
function
getParentType
()
24
{
25
return
"prtt"
;
26
}
27
28
public
function
getPageDiskSize
()
29
{
30
$quota_sum = 0;
31
32
$this->
buildDom
();
33
$dom
= $this->
getDom
();
34
if
(
$dom
instanceof
php4DOMDocument
) {
35
$dom
=
$dom
->myDOMDocument;
36
}
37
$xpath_temp =
new
DOMXPath
(
$dom
);
38
39
// mobs
40
include_once
"Services/MediaObjects/classes/class.ilObjMediaObject.php"
;
41
$nodes
= $xpath_temp->query(
"//PageContent/MediaObject/MediaAlias"
);
42
foreach
(
$nodes
as
$node
) {
43
$mob_id = array_pop(explode(
"_"
, $node->getAttribute(
"OriginId"
)));
44
$mob_dir =
ilObjMediaObject::_getDirectory
($mob_id);
45
$quota_sum += ilUtil::dirSize($mob_dir);
46
}
47
48
return
$quota_sum;
49
}
50
}
ilPageObject\$dom
$dom
Definition:
class.ilPageObject.php:81
ilPageObject\$node
$node
Definition:
class.ilPageObject.php:84
ilPageObject\buildDom
buildDom($a_force=false)
Definition:
class.ilPageObject.php:447
ilPortfolioTemplatePage\getParentType
getParentType()
Get parent type.
Definition:
class.ilPortfolioTemplatePage.php:23
ilPortfolioTemplatePage\getPageDiskSize
getPageDiskSize()
Definition:
class.ilPortfolioTemplatePage.php:28
ilObjMediaObject\_getDirectory
static _getDirectory($a_mob_id)
Get absolute directory.
Definition:
class.ilObjMediaObject.php:567
php4DOMDocument
Definition:
inc.xml5compliance.php:104
DOMXPath
ilPortfolioPage
Page for user portfolio.
Definition:
class.ilPortfolioPage.php:15
ilPortfolioTemplatePage
Page for portfolio template.
Definition:
class.ilPortfolioTemplatePage.php:14
ilPortfolioTemplatePage\TYPE_BLOG_TEMPLATE
const TYPE_BLOG_TEMPLATE
Definition:
class.ilPortfolioTemplatePage.php:16
ilPageObject\getDom
getDom()
Deprecated php4DomDocument.
Definition:
class.ilPageObject.php:488
$nodes
$nodes
Definition:
addressbookserver.php:38
php
Modules
Portfolio
classes
class.ilPortfolioTemplatePage.php
Generated on Thu Jan 16 2025 19:02:07 for ILIAS by
1.8.13 (using
Doxyfile
)