Stud.IP  5.4
EvaluationTreeEditView Class Reference

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)
 
 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
 
 $moveItemID
 
 $evalID
 
 $itemInstance
 
 $msg = []
 

Constructor & Destructor Documentation

◆ __construct()

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

constructor

public

Parameters
string$itemIDthe item to display
string$evalIDthe evaluation of the item

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)

◆ createFormNew()

createFormNew (   $show = ARRANGMENT_BLOCK)

creates the html for the create new group options

private

Parameters
string$show
Returns
string the html

◆ createGlobalFeatures()

createGlobalFeatures ( )

creates the html for the global features-input

private

Returns
string the html

◆ 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)

◆ createLevelOutputTD()

createLevelOutputTD (   $pic = "forumleer.gif")

creates an td with an image

private

Parameters
string$picthe image
Returns
string the image

◆ 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)

◆ createQuestionFeatures()

createQuestionFeatures ( )

creates the html for the global features-input

private

Returns
string the html

◆ createQuestionForm()

createQuestionForm ( )

creates the html for the question-input

private

Returns
string the html

◆ createTemplateSelection()

createTemplateSelection (   $selected = NULL)

creates the template selection

private

Parameters
string$selectedthe entry to be preselected (optional)
Returns
string the html

◆ createTitleInput()

createTitleInput (   $mode = ROOT_BLOCK)

creates the html for the title and text input

private

Parameters
string$mode
Returns
string the html

◆ createTreeItemOutput()

createTreeItemOutput (   $item_id)

prints out one item

private

Parameters
string$item_idthe items id
Returns
string one item (html)

◆ 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)

◆ 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)

◆ execCommandAddQGroup()

execCommandAddQGroup ( )

adds a questions-group

private

Returns
boolean true (reinits the tree)

◆ execCommandAddQuestions()

execCommandAddQuestions ( )

Adds Questions

private

Returns
boolean true (reinits the tree)

◆ execCommandAssertDeleteItem()

execCommandAssertDeleteItem ( )

Creates a delete-request

public

Returns
boolean false

◆ execCommandCancel()

execCommandCancel ( )

Creates cancel-message public

Returns
boolean true (reinits the tree)

◆ execCommandChangeTemplate()

execCommandChangeTemplate ( )

Updates the templateID of a group

private

Returns
boolean true (reinits the tree)

◆ execCommandDeleteItem()

execCommandDeleteItem ( )

Deletes an Item and its kids public

Returns
boolean true (reinits the tree)

◆ execCommandDeleteQuestions()

execCommandDeleteQuestions ( )

deletes questions

private

Returns
boolean true (reinits the tree)

◆ execCommandMove()

execCommandMove ( )

◆ execCommandMoveGroup()

execCommandMoveGroup ( )

Moves a Group from one parent to another

private

Returns
boolean true (reinits the tree)

◆ execCommandMoveQuestionDown()

execCommandMoveQuestionDown ( )

Moves a Questions

private

Returns
boolean true (reinits the tree)

◆ execCommandMoveQuestionUp()

execCommandMoveQuestionUp ( )

Moves a Questions

private

Returns
boolean true (reinits the tree)

◆ execCommandQuestionAnswersCreate()

execCommandQuestionAnswersCreate ( )

creates an info-message and updates the item

private

Returns
boolean true (reinits the tree)

◆ execCommandQuestionAnswersCreated()

execCommandQuestionAnswersCreated ( )

creates an confirm-message if answers were created

private

Returns
boolean false

◆ 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)

◆ execCommandUpdateQuestions()

execCommandUpdateQuestions (   $no_delete = false)

Update the Question content

private

Parameters
boolean$no_deleteYES/NO (optional)
Returns
string the udpatemessage

◆ getEvalPath()

getEvalPath ( )

creates the parentslinks

private

Returns
string the eval path as html-links

◆ getInstance()

getInstance (   $itemID)

detects the type of an object by its itemID

private

Parameters
string$itemID
Returns
string the insctance of an object

◆ getItemContent()

getItemContent (   $itemID)

creates the content for all item-types

private

Parameters
string$itemIDthe item-heas id
Returns
string the item content (html)

◆ getItemHead()

getItemHead (   $itemID)

creates the items head

private

Parameters
string$itemIDthe current item
Returns
string the item head (html)

◆ 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)

◆ 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)

◆ 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

◆ parseCommand()

parseCommand ( )

parses the _Request-commands and calls the avaible functions

private

◆ showEvalTree()

showEvalTree ( )

displays the EvaluationTree

public

Returns
string the eval-tree (html)

◆ 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)

◆ 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

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

◆ $moveItemID

string $moveItemID

Holds the currently moved Item-ID

◆ $msg

array $msg = []

Possible messages

◆ $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: