ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPageUtil Class Reference

Utility class for pages, that is e.g. More...

+ Collaboration diagram for ilPageUtil:

Public Member Functions

 _existsAndNotEmpty ($a_parent_type, $a_id)
 checks whether page exists and is not empty (may return true on some empty pages)

Detailed Description

Utility class for pages, that is e.g.

used in the repository to avoid including the whole large page object class

Definition at line 7 of file class.ilPageUtil.php.

Member Function Documentation

ilPageUtil::_existsAndNotEmpty (   $a_parent_type,
  $a_id 
)

checks whether page exists and is not empty (may return true on some empty pages)

Parameters
string$a_parent_typeparent type
int$a_idpage id

Definition at line 15 of file class.ilPageUtil.php.

References $ilDB, $query, and $row.

Referenced by ilContainerGUI\getContainerPageHTML().

{
global $ilDB;
$query = "SELECT page_id, is_empty FROM page_object WHERE page_id = ".$ilDB->quote($a_id, "integer")." ".
"AND parent_type= ".$ilDB->quote($a_parent_type, "text");
$set = $ilDB->query($query);
if ($row = $ilDB->fetchAssoc($set))
{
if ($row["is_empty"] != 1)
{
return true;
}
}
return false;
}

+ Here is the caller graph for this function:


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