Public Member Functions

ilEditClipboard Class Reference

Public Member Functions

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

Detailed Description

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


Member Function Documentation

ilEditClipboard::clear (  ) 

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

References $_SESSION.

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

        {
                unset($_SESSION["ilEditClipboard"]);
        }

Here is the caller graph for this function:

ilEditClipboard::getAction (  ) 

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

References $_SESSION.

Referenced by ilObjContentObjectGUI::chapters(), ilObjContentObjectGUI::pages(), ilObjContentObjectGUI::pasteChapter(), ilStructureObjectGUI::pastePage(), ilObjContentObjectGUI::pastePage(), ilStructureObjectGUI::subchap(), and ilStructureObjectGUI::view().

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

Here is the caller graph for this function:

ilEditClipboard::getContentObjectId (  ) 

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

References $_SESSION.

Referenced by ilObjContentObjectGUI::chapters(), ilStructureObjectGUI::pasteChapter(), ilObjContentObjectGUI::pasteChapter(), ilStructureObjectGUI::pastePage(), ilObjContentObjectGUI::pastePage(), ilStructureObjectGUI::subchap(), and ilStructureObjectGUI::view().

        {
                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::chapters(), ilObjContentObjectGUI::pages(), ilObjContentObjectGUI::pasteChapter(), ilStructureObjectGUI::pastePage(), ilObjContentObjectGUI::pastePage(), ilStructureObjectGUI::subchap(), and ilStructureObjectGUI::view().

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

Here is the caller graph for this function:

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

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

References $_SESSION.

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

        {
                $_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: