ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups 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:
class.ilEditClipboard.php 16897 2008-07-03 15:02:02Z akill

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

Member Function Documentation

ilEditClipboard::getAction ( )

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

References $_SESSION.

Referenced by ilStructureObjectGUI\insertChapterClip(), ilObjContentObjectGUI\insertChapterClip(), ilStructureObjectGUI\insertPageClip(), ilObjContentObjectGUI\pages(), ilObjContentObjectGUI\pasteChapter(), ilStructureObjectGUI\pastePage(), and ilObjContentObjectGUI\pastePage().

{
if (isset($_SESSION["ilEditClipboard"]))
{
return $_SESSION["ilEditClipboard"]["action"];
}
else
{
return false;
}
}

+ Here is the caller graph for this function:

ilEditClipboard::getContentObjectId ( )

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

References $_SESSION.

Referenced by ilStructureObjectGUI\pasteChapter(), ilObjContentObjectGUI\pasteChapter(), ilStructureObjectGUI\pastePage(), and ilObjContentObjectGUI\pastePage().

{
if (isset($_SESSION["ilEditClipboard"]))
{
return $_SESSION["ilEditClipboard"]["id"];
}
}

+ Here is the caller graph for this function:

ilEditClipboard::getContentObjectType ( )

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

References $_SESSION.

Referenced by ilObjContentObjectGUI\pages(), ilObjContentObjectGUI\pasteChapter(), and ilObjContentObjectGUI\pastePage().

{
if (isset($_SESSION["ilEditClipboard"]))
{
return $_SESSION["ilEditClipboard"]["type"];
}
else
{
return false;
}
}

+ Here is the caller graph for this function:

ilEditClipboard::setAction (   $a_action)

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

References $_SESSION.

Referenced by ilStructureObjectGUI\copyItems(), ilObjContentObjectGUI\copyItems(), ilObjContentObjectGUI\copyPage(), ilStructureObjectGUI\cutItems(), ilObjContentObjectGUI\cutItems(), and ilObjContentObjectGUI\movePage().

{
$_SESSION["ilEditClipboard"] = array("action" => $a_action);
}

+ Here is the caller graph for this function:

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

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

References $_SESSION.

Referenced by ilObjContentObjectGUI\copyChapter(), ilStructureObjectGUI\copyPage(), ilStructureObjectGUI\cutPage(), and ilObjContentObjectGUI\moveChapter().

{
$_SESSION["ilEditClipboard"] = array("type" => $a_type,
"id" => $a_id, "action" => $a_action);
}

+ Here is the caller graph for this function:


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