ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilCOPageDefReader Class Reference

COPage definition xml reader class. More...

+ Collaboration diagram for ilCOPageDefReader:

Public Member Functions

 clearTables ()
 Clear definition tables.
 handlerBeginTag ($a_xml_parser, $a_name, $a_attribs, $a_comp)
 Start tag handler.
 handlerEndTag ($a_xml_parser, $a_name)
 End tag handler.

Detailed Description

COPage definition xml reader class.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 11 of file class.ilCOPageDefReader.php.

Member Function Documentation

ilCOPageDefReader::clearTables ( )

Clear definition tables.

Parameters
@return

Definition at line 19 of file class.ilCOPageDefReader.php.

References $ilDB.

{
global $ilDB;
$ilDB->manipulate("DELETE FROM copg_pc_def");
$ilDB->manipulate("DELETE FROM copg_pobj_def");
}
ilCOPageDefReader::handlerBeginTag (   $a_xml_parser,
  $a_name,
  $a_attribs,
  $a_comp 
)

Start tag handler.

Parameters
objectinternal xml_parser_handler
stringelement tag name
arrayelement attributes

Definition at line 34 of file class.ilCOPageDefReader.php.

References $ilDB.

{
global $ilDB;
switch ($a_name)
{
case "pagecontent":
$ilDB->manipulate("INSERT INTO copg_pc_def ".
"(pc_type, name, component, directory, int_links, style_classes, xsl, def_enabled) VALUES (".
$ilDB->quote($a_attribs["pc_type"], "text").",".
$ilDB->quote($a_attribs["name"], "text").",".
$ilDB->quote($a_comp, "text").",".
$ilDB->quote($a_attribs["directory"], "text").",".
$ilDB->quote($a_attribs["int_links"], "integer").",".
$ilDB->quote($a_attribs["style_classes"], "integer").",".
$ilDB->quote($a_attribs["xsl"], "integer").",".
$ilDB->quote($a_attribs["def_enabled"], "integer").
")");
break;
case "pageobject":
$ilDB->manipulate("INSERT INTO copg_pobj_def ".
"(parent_type, class_name, component, directory) VALUES (".
$ilDB->quote($a_attribs["parent_type"], "text").",".
$ilDB->quote($a_attribs["class_name"], "text").",".
$ilDB->quote($a_comp, "text").",".
$ilDB->quote($a_attribs["directory"], "text").
")");
break;
}
}
ilCOPageDefReader::handlerEndTag (   $a_xml_parser,
  $a_name 
)

End tag handler.

Parameters
objectinternal xml_parser_handler
stringelement tag name

Definition at line 72 of file class.ilCOPageDefReader.php.

{
}

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