9 include_once
"./Services/Xml/classes/class.ilSaxParser.php";
10 include_once
"./Services/Xml/exceptions/class.ilSaxParserException.php";
11 include_once
"./Services/CopyWizard/classes/class.ilCopyWizardOptions.php";
29 parent::__construct(
'',
true);
41 xml_set_object($a_xml_parser, $this);
42 xml_set_element_handler($a_xml_parser,
'handlerBeginTag',
'handlerEndTag');
43 xml_set_character_data_handler($a_xml_parser,
'handlerCharacterData');
55 global $objDefinition, $ilAccess, $tree;
59 $this->options =
array();
60 $this->source_id = (int) $a_attribs[
"source_id"];
64 $this->target_id = (int) $a_attribs[
"target_id"];
72 $id = (int) $a_attribs[
"id"];
76 if (!$tree->isInTree(
$id)) {
86 $perm_copy = $ilAccess->checkAccess(
'copy',
'',
$id);
87 $copy = $objDefinition->allowCopy(
$type);
89 if ($perm_copy && $copy) {
91 } elseif ($copy && !$perm_copy) {
98 $perm_link = $ilAccess->checkAccess(
'write',
'',
$id);
99 $link = $objDefinition->allowLink(
$type);
101 if ($perm_link && $link) {
103 } elseif ($copy && !$perm_link) {
121 return is_array($this->options) ? $this->options :
array();
static getActionForString($s)
handlerBeginTag($a_xml_parser, $a_name, $a_attribs)
handler for begin of element
__construct($xml)
constructor
getTargetId()
read access to target id
if(!array_key_exists('StateId', $_REQUEST)) $id
static _isInTrash($a_ref_id)
checks wether object is in trash
SaxParserException thrown by ilSaxParser if property throwException is set.
getOptions()
read access to options array
handlerEndTag($a_xml_parser, $a_name)
Base class for sax-based expat parsing extended classes need to overwrite the method setHandlers and ...
static getTypeByRefId($a_ref_id, $stop_on_error=true)
get object type by reference id
setHandlers($a_xml_parser)
set event handlers
Create styles array
The data for the language used.
handlerCharacterData($a_xml_parser, $a_data)
handler for character data
getSourceId()
read access to source id
setXMLContent($a_xml_content)