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";
 
   42         xml_set_object($a_xml_parser,$this);
 
   43     xml_set_element_handler($a_xml_parser,
'handlerBeginTag',
'handlerEndTag');
 
   44     xml_set_character_data_handler($a_xml_parser,
'handlerCharacterData');
 
   56         global $objDefinition, $ilAccess, $tree;
 
   61         $this->options = array();
 
   62         $this->source_id = (int) $a_attribs[
"source_id"];
 
   67         $this->target_id = (int) $a_attribs[
"target_id"];
 
   76         $id = (int) $a_attribs[
"id"];
 
   81         if(!$tree->isInTree($id))
 
   92                                                         $perm_copy = $ilAccess->checkAccess(
'copy',
'',$id);
 
   93                                                         $copy = $objDefinition->allowCopy($type);
 
   95                                                         if ($perm_copy && $copy)
 
   96                                                                 $this->options [$id] = array(
"type" => $action);
 
   97                                                         elseif ($copy && !$perm_copy)
 
  103                                                         $perm_link = $ilAccess->checkAccess(
'write',
'',$id);
 
  104                                                         $link = $objDefinition->allowLink($type);
 
  106                                                         if ($perm_link && $link)
 
  107                                                                 $this->options [$id] = array(
"type" => $action);
 
  108                                                         elseif ($copy && !$perm_link)
 
  124     return is_array($this->options) ? $this->options : array();