ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
ilEditClipboard Class Reference

Class ilEditClipboard. More...

+ Collaboration diagram for ilEditClipboard:

Public Member Functions

 getContentObjectType ()
 
 setAction ($a_action)
 
 getAction ()
 
 getContentObjectId ()
 
 storeContentObject ($a_type, $a_id, $a_action="cut")
 
 clear ()
 

Detailed Description

Class ilEditClipboard.

This class supports only a few basic clipboard functions for the editor and should be further elaborated in the future.

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

Definition at line 36 of file class.ilEditClipboard.php.

Member Function Documentation

◆ clear()

ilEditClipboard::clear ( )

Definition at line 81 of file class.ilEditClipboard.php.

References $_SESSION.

Referenced by ilSkillTreeNode\clearClipboard(), ilSCORM2004Node\insertAssetClip(), ilStructureObjectGUI\insertChapterClip(), ilSCORM2004Node\insertChapterClip(), ilObjContentObjectGUI\insertChapterClip(), ilSCORM2004Node\insertPageClip(), ilStructureObjectGUI\insertPageClip(), and ilObjContentObjectGUI\pastePage().

82  {
83  unset($_SESSION["ilEditClipboard"]);
84  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']
+ Here is the caller graph for this function:

◆ getAction()

ilEditClipboard::getAction ( )

Definition at line 55 of file class.ilEditClipboard.php.

References $_SESSION.

Referenced by ilLMPagesTableGUI\__construct(), ilSCORM2004Node\insertAssetClip(), ilStructureObjectGUI\insertChapterClip(), ilSCORM2004Node\insertChapterClip(), ilObjContentObjectGUI\insertChapterClip(), ilSkillTreeNode\insertItemsFromClip(), ilSCORM2004Node\insertPageClip(), ilStructureObjectGUI\insertPageClip(), ilObjContentObjectGUI\pastePage(), and ilPageObjectGUI\showPage().

56  {
57  if (isset($_SESSION["ilEditClipboard"]))
58  {
59  return $_SESSION["ilEditClipboard"]["action"];
60  }
61  else
62  {
63  return false;
64  }
65  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']
+ Here is the caller graph for this function:

◆ getContentObjectId()

ilEditClipboard::getContentObjectId ( )

Definition at line 67 of file class.ilEditClipboard.php.

References $_SESSION.

Referenced by ilObjContentObjectGUI\pastePage().

68  {
69  if (isset($_SESSION["ilEditClipboard"]))
70  {
71  return $_SESSION["ilEditClipboard"]["id"];
72  }
73  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']
+ Here is the caller graph for this function:

◆ getContentObjectType()

ilEditClipboard::getContentObjectType ( )

Definition at line 38 of file class.ilEditClipboard.php.

References $_SESSION.

Referenced by ilLMPagesTableGUI\__construct(), and ilObjContentObjectGUI\pastePage().

39  {
40  if (isset($_SESSION["ilEditClipboard"]))
41  {
42  return $_SESSION["ilEditClipboard"]["type"];
43  }
44  else
45  {
46  return false;
47  }
48  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']
+ Here is the caller graph for this function:

◆ setAction()

ilEditClipboard::setAction (   $a_action)

Definition at line 50 of file class.ilEditClipboard.php.

References $_SESSION.

Referenced by ilPageObject\copyContents(), ilSkillTreeNodeGUI\copyItems(), ilStructureObjectGUI\copyItems(), ilSCORM2004NodeGUI\copyItems(), ilObjSCORM2004LearningModuleGUI\copyItems(), ilObjContentObjectGUI\copyItems(), ilObjContentObjectGUI\copyPage(), ilSkillTreeNodeGUI\cutItems(), ilStructureObjectGUI\cutItems(), ilSCORM2004NodeGUI\cutItems(), ilObjSCORM2004LearningModuleGUI\cutItems(), ilObjContentObjectGUI\cutItems(), ilObjContentObjectGUI\movePage(), and ilPageEditorGUI\paste().

51  {
52  $_SESSION["ilEditClipboard"] = array("action" => $a_action);
53  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']
+ Here is the caller graph for this function:

◆ storeContentObject()

ilEditClipboard::storeContentObject (   $a_type,
  $a_id,
  $a_action = "cut" 
)

Definition at line 75 of file class.ilEditClipboard.php.

References $_SESSION.

Referenced by ilObjContentObjectGUI\moveChapter().

76  {
77  $_SESSION["ilEditClipboard"] = array("type" => $a_type,
78  "id" => $a_id, "action" => $a_action);
79  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']
+ Here is the caller graph for this function:

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