ILIAS
release_4-4 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
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
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
{
36
$dom
=
$dom
->myDOMDocument;
37
}
38
$xpath_temp =
new
DOMXPath(
$dom
);
39
40
// mobs
41
include_once
"Services/MediaObjects/classes/class.ilObjMediaObject.php"
;
42
$nodes = $xpath_temp->query(
"//PageContent/MediaObject/MediaAlias"
);
43
foreach
($nodes as
$node
)
44
{
45
$mob_id = array_pop(explode(
"_"
, $node->getAttribute(
"OriginId"
)));
46
$mob_dir =
ilObjMediaObject::_getDirectory
($mob_id);
47
$quota_sum += ilUtil::dirSize($mob_dir);
48
}
49
50
return
$quota_sum;
51
}
52
}
53
54
?>
ilPageObject\$dom
$dom
Definition:
class.ilPageObject.php:52
ilPageObject\$node
$node
Definition:
class.ilPageObject.php:55
ilPageObject\buildDom
buildDom($a_force=false)
Definition:
class.ilPageObject.php:401
ilPortfolioTemplatePage\getParentType
getParentType()
Get parent type.
Definition:
class.ilPortfolioTemplatePage.php:23
ilPortfolioTemplatePage\getPageDiskSize
getPageDiskSize()
Definition:
class.ilPortfolioTemplatePage.php:28
php4DOMDocument
Definition:
inc.xml5compliance.php:100
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:440
ilObjMediaObject\_getDirectory
_getDirectory($a_mob_id)
get directory for files of media object (static)
Definition:
class.ilObjMediaObject.php:538
Modules
Portfolio
classes
class.ilPortfolioTemplatePage.php
Generated on Mon Dec 21 2020 19:01:03 for ILIAS by
1.8.13 (using
Doxyfile
)