Stud.IP  trunk Revision
EvaluationTreeEditView Class Reference
Collaboration diagram for EvaluationTreeEditView:
Collaboration graph

Public Member Functions

 __construct ( $itemID=ROOT_BLOCK, $evalID=NULL)
 
 showEvalTree ()
 
 showTree ($itemID=ROOT_BLOCK, $start=NULL)
 
 getEvalPath ()
 
 getItemHeadPics ( $itemID)
 
 getItemContent ($itemID)
 
 createTreeLevelOutput ($item_id, $start_itemID=NULL)
 
 createTreeItemOutput ($item_id)
 
 createTreeItemDetails ($item_id)
 
 getItemHead ($itemID)
 
 getItemMessage ($itemID, $colspan=1)
 
 getSelf ( $param="", $with_start_item=true)
 
 parseCommand ()
 
 execCommandCancel ()
 
 execCommandUpdateItem ( $no_delete=false)
 
 execCommandAssertDeleteItem ()
 
 execCommandDeleteItem ()
 
 execCommandAddGroup ()
 
 execCommandAddQGroup ()
 
 execCommandChangeTemplate ()
 
 execCommandUpdateQuestions ( $no_delete=false)
 
 execCommandAddQuestions ()
 
 execCommandDeleteQuestions ()
 
 execCommandQuestionAnswersCreate ()
 
 execCommandQuestionAnswersCreated ()
 
 execCommandMoveQuestionUp ()
 
 execCommandMoveQuestionDown ()
 
 execCommandMove ()
 
 execCommandMoveGroup ()
 
 createButtonbar ( $show=ARRANGMENT_BLOCK)
 
 createFormNew ($show=ARRANGMENT_BLOCK)
 
 createTitleInput ($mode=ROOT_BLOCK)
 
 createUpdateButton ( $mode=NULL)
 
 createGlobalFeatures ()
 
 createQuestionFeatures ()
 
 createQuestionForm ()
 
 createLinkImage ( $pic, $alt="", $value="", $tooltip=true, $args=NULL, $self=true)
 
 createImage ( $pic, $alt="", $args=NULL)
 
 createLevelOutputTD ( $pic="forumleer.gif")
 
 createTemplateSelection ( $selected=NULL)
 
 getInstance ( $itemID)
 
 swapPosition ( $parentID, $objectID, $oldposition, $direction)
 

Data Fields

 $tree
 
 $anchor
 
 $startItemID
 
 $changed
 
 $eval
 
 $itemID
 
 $evalID
 
 $itemInstance
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $itemID = ROOT_BLOCK,
  $evalID = NULL 
)

constructor

public

Parameters
string$itemIDthe item to display
string$evalIDthe evaluation of the item
Here is the call graph for this function:

Member Function Documentation

◆ createButtonbar()

createButtonbar (   $show = ARRANGMENT_BLOCK)

creates the html for the create new group options

private

Parameters
string$showthe blocktyp to display
Returns
string the buttons (html)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createFormNew()

createFormNew (   $show = ARRANGMENT_BLOCK)

creates the html for the create new group options

private

Parameters
string$show
Returns
string the html
Here is the call graph for this function:

◆ createGlobalFeatures()

createGlobalFeatures ( )

creates the html for the global features-input

private

Returns
string the html
Here is the caller graph for this function:

◆ createImage()

createImage (   $pic,
  $alt = "",
  $args = NULL 
)

creates an image

private

Parameters
string$picthe image
string$altthe alt-text (optional)
string$argsadditional options (optional)
Returns
string the image (html)
Here is the caller graph for this function:

◆ createLevelOutputTD()

createLevelOutputTD (   $pic = "forumleer.gif")

creates an td with an image

private

Parameters
string$picthe image
Returns
string the image
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createLinkImage()

createLinkImage (   $pic,
  $alt = "",
  $value = "",
  $tooltip = true,
  $args = NULL,
  $self = true 
)

creates a link-image

private

Parameters
string$picthe image
string$altthe alt-text (optional)
string$valuethe value (optional)
boolean$tooltipdisplay as tooltip? (optional)
string$argsadditional options (optional)
boolean$selfget self? (optional)
Returns
string the image with a link (html)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createQuestionFeatures()

createQuestionFeatures ( )

creates the html for the global features-input

private

Returns
string the html
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createQuestionForm()

createQuestionForm ( )

creates the html for the question-input

private

Returns
string the html
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createTemplateSelection()

createTemplateSelection (   $selected = NULL)

creates the template selection

private

Parameters
string$selectedthe entry to be preselected (optional)
Returns
string the html
Here is the caller graph for this function:

◆ createTitleInput()

createTitleInput (   $mode = ROOT_BLOCK)

creates the html for the title and text input

private

Parameters
string$mode
Returns
string the html
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createTreeItemDetails()

createTreeItemDetails (   $item_id)

prints out the item details

private

Parameters
string$item_idthe current item
Returns
string the item details (html)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createTreeItemOutput()

createTreeItemOutput (   $item_id)

prints out one item

private

Parameters
string$item_idthe items id
Returns
string one item (html)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createTreeLevelOutput()

createTreeLevelOutput (   $item_id,
  $start_itemID = NULL 
)

prints out the lines before an item ("Strichlogik" (c) rstockm)

private

Parameters
string$item_idthe current item
string$start_itemIDthe start item
Returns
string the level output (html)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createUpdateButton()

createUpdateButton (   $mode = NULL)

creates the html for the update button

private

Parameters
string$mode
Returns
string the html

◆ execCommandAddGroup()

execCommandAddGroup ( )

Creates a new Group and adds it to the tree

public

Returns
boolean true (reinits the tree)
Here is the call graph for this function:

◆ execCommandAddQGroup()

execCommandAddQGroup ( )

adds a questions-group

private

Returns
boolean true (reinits the tree)
Here is the call graph for this function:

◆ execCommandAddQuestions()

execCommandAddQuestions ( )

Adds Questions

private

Returns
boolean true (reinits the tree)
Here is the call graph for this function:

◆ execCommandAssertDeleteItem()

execCommandAssertDeleteItem ( )

Creates a delete-request

public

Returns
boolean false
Here is the call graph for this function:

◆ execCommandCancel()

execCommandCancel ( )

Creates cancel-message public

Returns
boolean true (reinits the tree)
Here is the call graph for this function:

◆ execCommandChangeTemplate()

execCommandChangeTemplate ( )

Updates the templateID of a group

private

Returns
boolean true (reinits the tree)
Here is the call graph for this function:

◆ execCommandDeleteItem()

execCommandDeleteItem ( )

Deletes an Item and its kids public

Returns
boolean true (reinits the tree)
Here is the call graph for this function:

◆ execCommandDeleteQuestions()

execCommandDeleteQuestions ( )

deletes questions

private

Returns
boolean true (reinits the tree)
Here is the call graph for this function:

◆ execCommandMove()

execCommandMove ( )

Moves a Group up or down

private

Returns
boolean true (reinits the tree)
Here is the call graph for this function:

◆ execCommandMoveGroup()

execCommandMoveGroup ( )

Moves a Group from one parent to another

private

Returns
boolean true (reinits the tree)
Here is the call graph for this function:

◆ execCommandMoveQuestionDown()

execCommandMoveQuestionDown ( )

Moves a Questions

private

Returns
boolean true (reinits the tree)
Here is the call graph for this function:

◆ execCommandMoveQuestionUp()

execCommandMoveQuestionUp ( )

Moves a Questions

private

Returns
boolean true (reinits the tree)
Here is the call graph for this function:

◆ execCommandQuestionAnswersCreate()

execCommandQuestionAnswersCreate ( )

creates an info-message and updates the item

private

Returns
boolean true (reinits the tree)
Here is the call graph for this function:

◆ execCommandQuestionAnswersCreated()

execCommandQuestionAnswersCreated ( )

creates an confirm-message if answers were created

private

Returns
boolean false
Here is the call graph for this function:

◆ execCommandUpdateItem()

execCommandUpdateItem (   $no_delete = false)

Updates the item content of any kind

private

Parameters
boolean$no_deleteYES/NO (optional)
Returns
boolean true (reinits the tree)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ execCommandUpdateQuestions()

execCommandUpdateQuestions (   $no_delete = false)

Update the Question content

private

Parameters
boolean$no_deleteYES/NO (optional)
Returns
string the udpatemessage
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getEvalPath()

getEvalPath ( )

creates the parentslinks

private

Returns
string the eval path as html-links
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getInstance()

getInstance (   $itemID)

detects the type of an object by its itemID

private

Parameters
string$itemID
Returns
string the insctance of an object
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getItemContent()

getItemContent (   $itemID)

creates the content for all item-types

private

Parameters
string$itemIDthe item-heas id
Returns
string the item content (html)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getItemHead()

getItemHead (   $itemID)

creates the items head

private

Parameters
string$itemIDthe current item
Returns
string the item head (html)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getItemHeadPics()

getItemHeadPics (   $itemID)

returns html for the icons in front of the name of the item

private

Parameters
string$itemIDthe item-heas id
Returns
string the item head (html)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getItemMessage()

getItemMessage (   $itemID,
  $colspan = 1 
)

creates a table and calls the ItemMessages

private

Parameters
string$itemIDthe current item
integer$colspanthe needed colspan (optional)
Returns
string the item message (html)
Here is the caller graph for this function:

◆ getSelf()

getSelf (   $param = "",
  $with_start_item = true 
)

creates a self-url with add. items

private

Parameters
string$paramparams (optional)
boolean$with_start_itemstartItem needed? (optional)
Returns
string the self url
Here is the caller graph for this function:

◆ parseCommand()

parseCommand ( )

parses the _Request-commands and calls the avaible functions

private

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showEvalTree()

showEvalTree ( )

displays the EvaluationTree

public

Returns
string the eval-tree (html)
Here is the call graph for this function:

◆ showTree()

showTree (   $itemID = ROOT_BLOCK,
  $start = NULL 
)

prints out the tree beginning at the parent-item

public

Parameters
string$itemIDthe item to display
string$startYES if its the basecall
Returns
string the tree (html)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ swapPosition()

swapPosition (   $parentID,
  $objectID,
  $oldposition,
  $direction 
)

swaps positions of two objects

private

Parameters
string$parentIDthe parentID
string$objectIDthe object to swap
string$oldpositionthe old position
string$directionthe direction to swap
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ $anchor

string $anchor

contains the item with the current html anchor

public

◆ $changed

boolean $changed

true if changedate should be set

private

◆ $eval

object Evaluation $eval

Holds the Evaluation object private

◆ $evalID

integer $evalID

Holds the current evalID private

◆ $itemID

string $itemID

Holds the current Item-ID private

◆ $itemInstance

string $itemInstance

The itemID instance private

◆ $startItemID

string $startItemID

the item to start with

public

◆ $tree

object EvaluationTree $tree

Reference to the tree structure

public


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