Public Member Functions

ilPCListItemGUI Class Reference

Inheritance diagram for ilPCListItemGUI:
Collaboration diagram for ilPCListItemGUI:

Public Member Functions

 ilPCListItemGUI (&$a_pg_obj, &$a_content_obj, $a_hier_id)
 Constructor public.
executeCommand ()
 execute command
 newItemAfter ()
 insert new list item after current one
 newItemBefore ()
 insert new list item before current one
 deleteItem ()
 delete a list item
 moveItemDown ()
 move list item down
 moveItemUp ()
 move list item up

Detailed Description

Definition at line 37 of file class.ilPCListItemGUI.php.


Member Function Documentation

ilPCListItemGUI::deleteItem (  ) 

delete a list item

Definition at line 94 of file class.ilPCListItemGUI.php.

References $_SESSION.

        {
                $this->content_obj->deleteItem();
                $_SESSION["il_pg_error"] = $this->pg_obj->update();
                $this->ctrl->returnToParent($this, "jump".$this->hier_id);
        }

& ilPCListItemGUI::executeCommand (  ) 

execute command

Definition at line 52 of file class.ilPCListItemGUI.php.

References $cmd.

        {
                // get next class that processes or forwards current command
                $next_class = $this->ctrl->getNextClass($this);

                // get current command
                $cmd = $this->ctrl->getCmd();

                switch($next_class)
                {
                        default:
                                $ret =& $this->$cmd();
                                break;
                }

                return $ret;
        }

ilPCListItemGUI::ilPCListItemGUI ( &$  a_pg_obj,
&$  a_content_obj,
a_hier_id 
)

Constructor public.

Definition at line 44 of file class.ilPCListItemGUI.php.

References ilPageContentGUI::ilPageContentGUI().

        {
                parent::ilPageContentGUI($a_pg_obj, $a_content_obj, $a_hier_id);
        }

Here is the call graph for this function:

ilPCListItemGUI::moveItemDown (  ) 

move list item down

Definition at line 104 of file class.ilPCListItemGUI.php.

References $_SESSION.

        {
                $this->content_obj->moveItemDown();
                $_SESSION["il_pg_error"] = $this->pg_obj->update();
                $this->ctrl->returnToParent($this, "jump".$this->hier_id);
        }

ilPCListItemGUI::moveItemUp (  ) 

move list item up

Definition at line 114 of file class.ilPCListItemGUI.php.

References $_SESSION.

        {
                $this->content_obj->moveItemUp();
                $_SESSION["il_pg_error"] = $this->pg_obj->update();
                $this->ctrl->returnToParent($this, "jump".$this->hier_id);
        }

ilPCListItemGUI::newItemAfter (  ) 

insert new list item after current one

Definition at line 74 of file class.ilPCListItemGUI.php.

References $_SESSION.

        {
                $this->content_obj->newItemAfter();
                $_SESSION["il_pg_error"] = $this->pg_obj->update();
                $this->ctrl->returnToParent($this, "jump".$this->hier_id);
        }

ilPCListItemGUI::newItemBefore (  ) 

insert new list item before current one

Definition at line 84 of file class.ilPCListItemGUI.php.

References $_SESSION.

        {
                $this->content_obj->newItemBefore();
                $_SESSION["il_pg_error"] = $this->pg_obj->update();
                $this->ctrl->returnToParent($this, "jump".$this->hier_id);
        }


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