◆ __construct()
      
        
          | ilCopyWizardSettingsXMLParser::__construct  | 
          ( | 
          string  | 
          $xml | ) | 
           | 
        
      
 
 
◆ getActionForString()
  
  
      
        
          | static ilCopyWizardSettingsXMLParser::getActionForString  | 
          ( | 
            | 
          $s | ) | 
           | 
         
       
   | 
  
staticprivate   | 
  
 
 
◆ getOptions()
      
        
          | ilCopyWizardSettingsXMLParser::getOptions  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getSourceId()
      
        
          | ilCopyWizardSettingsXMLParser::getSourceId  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getTargetId()
      
        
          | ilCopyWizardSettingsXMLParser::getTargetId  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ handlerBeginTag()
      
        
          | ilCopyWizardSettingsXMLParser::handlerBeginTag  | 
          ( | 
            | 
          $a_xml_parser,  | 
        
        
           | 
           | 
          string  | 
          $a_name,  | 
        
        
           | 
           | 
          array  | 
          $a_attribs  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Parameters
 - 
  
    | XMLParser | resource | $a_xml_parser |  | 
  
   
Definition at line 38 of file class.ilCopyWizardSettingsXMLParser.php.
References $DIC, $id, ilObject\_isInTrash(), ilCopyWizardOptions\COPY_WIZARD_COPY, ilCopyWizardOptions\COPY_WIZARD_LINK, ilObjectFactory\getTypeByRefId(), and ILIAS\Repository\int().
   42         $objDefinition = $DIC[
'objDefinition'];
    43         $ilAccess = $DIC[
'ilAccess'];
    48                 $this->options = array();
    49                 $this->source_id = (
int) $a_attribs[
"source_id"];
    53                 $this->target_id = (
int) $a_attribs[
"target_id"];
    59                 $id = (
int) $a_attribs[
"id"];
    63                 if (!$tree->isInTree(
$id)) {
    67                 $action = self::getActionForString($a_attribs[
"action"]);
    72                         $perm_copy = $ilAccess->checkAccess(
'copy', 
'', 
$id);
    73                         $copy = $objDefinition->allowCopy($type);
    75                         if ($perm_copy && $copy) {
    76                             $this->options [
$id] = array(
"type" => $action);
    77                         } elseif ($copy && !$perm_copy) {
    84                         $perm_link = $ilAccess->checkAccess(
'write', 
'', 
$id);
    85                         $link = $objDefinition->allowLink($type);
    87                         if ($perm_link && $link) {
    88                             $this->options [
$id] = array(
"type" => $action);
    89                         } elseif ($link && !$perm_link) {
 SaxParserException thrown by ilSaxParser if property throwException is set. 
 
static getTypeByRefId(int $ref_id, bool $stop_on_error=true)
get object type by reference id 
 
static _isInTrash(int $ref_id)
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
 
 
 
◆ handlerCharacterData()
      
        
          | ilCopyWizardSettingsXMLParser::handlerCharacterData  | 
          ( | 
            | 
          $a_xml_parser,  | 
        
        
           | 
           | 
          string  | 
          $a_data  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ handlerEndTag()
      
        
          | ilCopyWizardSettingsXMLParser::handlerEndTag  | 
          ( | 
            | 
          $a_xml_parser,  | 
        
        
           | 
           | 
          string  | 
          $a_name  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ setHandlers()
      
        
          | ilCopyWizardSettingsXMLParser::setHandlers  | 
          ( | 
            | 
          $a_xml_parser | ) | 
           | 
        
      
 
- Parameters
 - 
  
    | XMLParser | resource | $a_xml_parser |  | 
  
   
- Returns
 - void 
 
Definition at line 28 of file class.ilCopyWizardSettingsXMLParser.php.
   30         xml_set_object($a_xml_parser, $this);
    31         xml_set_element_handler($a_xml_parser, 
'handlerBeginTag', 
'handlerEndTag');
    32         xml_set_character_data_handler($a_xml_parser, 
'handlerCharacterData');
  
 
 
◆ $options
  
  
      
        
          | array ilCopyWizardSettingsXMLParser::$options = [] | 
         
       
   | 
  
private   | 
  
 
 
◆ $source_id
  
  
      
        
          | int ilCopyWizardSettingsXMLParser::$source_id = 0 | 
         
       
   | 
  
private   | 
  
 
 
◆ $target_id
  
  
      
        
          | int ilCopyWizardSettingsXMLParser::$target_id = 0 | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: