Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
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 (   $itemID = ROOT_BLOCK,
  $evalID = NULL 
)

constructor

public

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

Member Function Documentation

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 (   $show = ARRANGMENT_BLOCK)

creates the html for the create new group options

private

Parameters
string$show
Returns
string the html
createGlobalFeatures ( )

creates the html for the global features-input

private

Returns
string the html
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 (   $pic = "forumleer.gif")

creates an td with an image

private

Parameters
string$picthe image
Returns
string the image
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 ( )

creates the html for the global features-input

private

Returns
string the html
createQuestionForm ( )

creates the html for the question-input

private

Returns
string the html
createTemplateSelection (   $selected = NULL)

creates the template selection

private

Parameters
string$selectedthe entry to be preselected (optional)
Returns
string the html
createTitleInput (   $mode = ROOT_BLOCK)

creates the html for the title and text input

private

Parameters
string$mode
Returns
string the html
createTreeItemOutput (   $item_id)

prints out one item

private

Parameters
string$item_idthe items id
Returns
string one item (html)
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 (   $mode = NULL)

creates the html for the update button

private

Parameters
string$mode
Returns
string the html
execCommandAddGroup ( )

Creates a new Group and adds it to the tree

public

Returns
boolean true (reinits the tree)
execCommandAddQGroup ( )

adds a questions-group

private

Returns
boolean true (reinits the tree)
execCommandAddQuestions ( )

Adds Questions

private

Returns
boolean true (reinits the tree)
execCommandAssertDeleteItem ( )

Creates a delete-request

public

Returns
boolean false
execCommandCancel ( )

Creates cancel-message public

Returns
boolean true (reinits the tree)
execCommandChangeTemplate ( )

Updates the templateID of a group

private

Returns
boolean true (reinits the tree)
execCommandDeleteItem ( )

Deletes an Item and its kids public

Returns
boolean true (reinits the tree)
execCommandDeleteQuestions ( )

deletes questions

private

Returns
boolean true (reinits the tree)
execCommandMove ( )
execCommandMoveGroup ( )

Moves a Group from one parent to another

private

Returns
boolean true (reinits the tree)
execCommandMoveQuestionDown ( )

Moves a Questions

private

Returns
boolean true (reinits the tree)
execCommandMoveQuestionUp ( )

Moves a Questions

private

Returns
boolean true (reinits the tree)
execCommandQuestionAnswersCreate ( )

creates an info-message and updates the item

private

Returns
boolean true (reinits the tree)
execCommandQuestionAnswersCreated ( )

creates an confirm-message if answers were created

private

Returns
boolean false
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 (   $no_delete = false)

Update the Question content

private

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

creates the parentslinks

private

Returns
string the eval path as html-links
getInstance (   $itemID)

detects the type of an object by its itemID

private

Parameters
string$itemID
Returns
string the insctance of an object
getItemContent (   $itemID)

creates the content for all item-types

private

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

creates the items head

private

Parameters
string$itemIDthe current item
Returns
string the item head (html)
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 (   $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 (   $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 ( )

parses the _Request-commands and calls the avaible functions

private

showEvalTree ( )

displays the EvaluationTree

public

Returns
string the eval-tree (html)
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 (   $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

string $anchor

contains the item with the current html anchor

public

boolean $changed

true if changedate should be set

private

object Evaluation $eval

Holds the Evaluation object private

integer $evalID

Holds the current evalID private

string $itemID

Holds the current Item-ID private

string $itemInstance

The itemID instance private

string $moveItemID

Holds the currently moved Item-ID

array $msg = []

Possible messages

string $startItemID

the item to start with

public

object EvaluationTree $tree

Reference to the tree structure

public


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