9include_once 
"./Services/Xml/classes/class.ilSaxParser.php";
 
   10include_once 
"./Services/Xml/exceptions/class.ilSaxParserException.php";
 
   11include_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');
 
   57        $objDefinition = 
$DIC[
'objDefinition'];
 
   58        $ilAccess = 
$DIC[
'ilAccess'];
 
   63        $this->options = array();
 
   64        $this->source_id = (int) $a_attribs[
"source_id"];
 
   68        $this->target_id = (int) $a_attribs[
"target_id"];
 
   76          $id = (int) $a_attribs[
"id"];
 
   90                            $perm_copy = $ilAccess->checkAccess(
'copy', 
'', 
$id);
 
   91                            $copy = $objDefinition->allowCopy(
$type);
 
   93                            if ($perm_copy && $copy) {
 
   94                                $this->options [
$id] = array(
"type" => 
$action);
 
   95                            } elseif ($copy && !$perm_copy) {
 
  102                            $perm_link = $ilAccess->checkAccess(
'write', 
'', 
$id);
 
  103                            $link = $objDefinition->allowLink(
$type);
 
  105                            if ($perm_link && $link) {
 
  106                                $this->options [
$id] = array(
"type" => 
$action);
 
  107                            } elseif ($copy && !$perm_link) {
 
  125        return is_array($this->options) ? $this->options : array();
 
An exception for terminatinating execution or to throw for unit testing.
setHandlers($a_xml_parser)
set event handlers
static getActionForString($s)
__construct($xml)
constructor
handlerBeginTag($a_xml_parser, $a_name, $a_attribs)
handler for begin of element
getTargetId()
read access to target id
handlerCharacterData($a_xml_parser, $a_data)
handler for character data
handlerEndTag($a_xml_parser, $a_name)
getOptions()
read access to options array
getSourceId()
read access to source id
static getTypeByRefId($a_ref_id, $stop_on_error=true)
get object type by reference id
static _isInTrash($a_ref_id)
checks wether object is in trash
SaxParserException thrown by ilSaxParser if property throwException is set.
Base class for sax-based expat parsing extended classes need to overwrite the method setHandlers and ...
setXMLContent($a_xml_content)
if(!array_key_exists('StateId', $_REQUEST)) $id