Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
EvaluationTreeEditView Class Reference
Collaboration diagram for EvaluationTreeEditView:
Collaboration graph

Public Member Functions

 EvaluationTreeEditView ($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 ()
 createButton ($name, $alt="", $value="")
 createLinkButton ($name, $alt="", $value="")
 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

Member Function Documentation

createButton (   $name,
  $alt = "",
  $value = "" 
)

creates an input-button

private

Parameters
string$namethe name (and button-image)
string$altthe alt-text (optional)
string$valuethe value (optional)
Returns
string the button

Here is the call graph for this function:

Here is the caller graph for this function:

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 (   $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 ( )

creates the html for the global features-input

private

Returns
string the html

Here is the caller graph for this function:

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 call graph for this function:

Here is the caller graph for this function:

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:

createLinkButton (   $name,
  $alt = "",
  $value = "" 
)

creates a link-button

private

Parameters
string$namethe name (and button-image)
string$altthe alt-text (optional)
string$valuethe value (optional)
Returns
string the button (html)

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

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 (   $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 (   $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 (   $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 (   $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 (   $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 (   $mode = NULL)

creates the html for the update button

private

Parameters
string$mode
Returns
string the html

Here is the call graph for this function:

EvaluationTreeEditView (   $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:

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

adds a questions-group

private

Returns
boolean true (reinits the tree)

Here is the call graph for this function:

execCommandAddQuestions ( )

Adds Questions

private

Returns
boolean true (reinits the tree)

Here is the call graph for this function:

execCommandAssertDeleteItem ( )

Creates a delete-request

public

Returns
boolean false

Here is the call graph for this function:

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)

Here is the call graph for this function:

execCommandDeleteItem ( )

Deletes an Item and its kids public

Returns
boolean true (reinits the tree)

Here is the call graph for this function:

execCommandDeleteQuestions ( )

deletes questions

private

Returns
boolean true (reinits the tree)

Here is the call graph for this function:

execCommandMove ( )

Moves a Group up or down

private

Returns
boolean true (reinits the tree)

Here is the call graph for this function:

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

Moves a Questions

private

Returns
boolean true (reinits the tree)

Here is the call graph for this function:

execCommandMoveQuestionUp ( )

Moves a Questions

private

Returns
boolean true (reinits the tree)

Here is the call graph for this function:

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

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)

Here is the call graph for this function:

Here is the caller graph for this function:

execCommandUpdateQuestions (   $no_delete = false)

Update the Question content

private

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

Here is the caller graph for this function:

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 (   $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 (   $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 (   $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 (   $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 (   $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 (   $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 ( )

parses the _Request-commands and calls the avaible functions

private

Here is the caller graph for this function:

showEvalTree ( )

displays the EvaluationTree

public

Returns
string the eval-tree (html)

Here is the call graph for this function:

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 (   $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

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