ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.ilPageUtil.php
Go to the documentation of this file.
1
<?php
2
7
class
ilPageUtil
8
{
15
public
static
function
_existsAndNotEmpty
($a_parent_type, $a_id, $a_lang =
"-"
)
16
{
17
global
$DIC
;
18
19
$ilDB
= $DIC->database();
20
21
// language must be set at least to "-"
22
if
($a_lang ==
""
) {
23
$a_lang =
"-"
;
24
}
25
$and_lang =
" AND lang = "
.
$ilDB
->quote($a_lang,
"text"
);
26
27
$query
=
"SELECT page_id, is_empty FROM page_object WHERE page_id = "
.
$ilDB
->quote($a_id,
"integer"
) .
" "
.
28
"AND parent_type= "
.
$ilDB
->quote($a_parent_type,
"text"
) . $and_lang;
29
30
$set =
$ilDB
->query(
$query
);
31
if
(
$row
=
$ilDB
->fetchAssoc($set)) {
32
if
(
$row
[
"is_empty"
] != 1) {
33
return
true
;
34
}
35
}
36
return
false
;
37
}
38
}
$DIC
global $DIC
Definition:
saml.php:7
ilPageUtil\_existsAndNotEmpty
static _existsAndNotEmpty($a_parent_type, $a_id, $a_lang="-")
checks whether page exists and is not empty (may return true on some empty pages) ...
Definition:
class.ilPageUtil.php:15
$query
$query
Definition:
proxy_ylocal.php:13
ilPageUtil
Utility class for pages, that is e.g.
Definition:
class.ilPageUtil.php:7
$ilDB
global $ilDB
Definition:
storeScorm2004.php:16
$row
$row
Definition:
10autofilter-selection-1.php:74
Services
COPage
classes
class.ilPageUtil.php
Generated on Sat Jan 18 2025 19:01:29 for ILIAS by
1.8.13 (using
Doxyfile
)