Stud.IP  4.2 Revision
EvaluationQuestionDB Class Reference
Inheritance diagram for EvaluationQuestionDB:
Inheritance graph
Collaboration diagram for EvaluationQuestionDB:
Collaboration graph

Public Member Functions

 __construct ()
 
 load (&$questionObject)
 
 save (&$questionObject)
 
 delete (&$questionObject)
 
 exists ($questionID)
 
 titleExists ($questionTitle, $userID)
 
 addChildren (&$parentObject)
 
 getType ($objectID)
 
 getParentID ($objectID)
 
 getTemplateID ($userID)
 
- Public Member Functions inherited from EvaluationObjectDB
 __construct ()
 
 getRangename ($rangeID, $html_decode=true)
 
 getGlobalPerm ($as_value=false)
 
 getRangePerm ($rangeID, $userID=NULL, $as_value=false)
 
 getValidRangeIDs (&$permObj, &$userObj, $rangeID)
 
 getEvalUserRangesWithNoPermission (&$eval, $return_ids=false)
 
 getPublicTemplateIDs ($searchString)
 
 getEvaluationIDs ($rangeID="", $state="")
 
 getEvalID ($objectID)
 
 getType ($objectID)
 
- Public Member Functions inherited from DatabaseObject
 __construct ()
 
 getObjectID ()
 
 setObjectID ($objectID)
 
 getAuthorID ()
 
 setAuthorID ($authorID)
 
 getRangeID ()
 
 setRangeID ($rangeID)
 
- Public Member Functions inherited from AuthorObject
 __construct ()
 
 finalize ()
 
 setAuthorEmail ($email)
 
 getAuthorEmail ()
 
 setAuthorName ($name)
 
 getAuthorName ()
 
 x_instanceof ()
 
 isError ()
 
 getErrors ()
 
 resetErrors ()
 
 throwError ($errcode, $errstring, $errline=0, $errfile=0, $errtype=ERROR_NORMAL)
 
 throwErrorFromClass (&$class)
 
 errorHandler ($no, $str, $file, $line, $ctx)
 

Additional Inherited Members

- Data Fields inherited from AuthorObject
 $errorArray
 
 $authorEmail
 
 $authorName
 
 $instanceof
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Constructor public

Member Function Documentation

◆ addChildren()

addChildren ( $parentObject)

Adds the children to a parent object public

Parameters
EvaluationObject&$parentObjectThe parent object
Here is the call graph for this function:
Here is the caller graph for this function:

◆ delete()

delete ( $questionObject)

Deletes a question public

Parameters
objectEvaluationQuestion &$questionObject The question to delete
Exceptions
error
Here is the call graph for this function:

◆ exists()

exists (   $questionID)

Checks if question with this ID exists public

Parameters
string$questionIDThe questionID
Returns
bool YES if exists
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getParentID()

getParentID (   $objectID)

Returns the id from the parent object public

Parameters
string$objectIDThe object id
Returns
string The id from the parent object
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTemplateID()

getTemplateID (   $userID)

Returns the ids of the Answertemplates of a user public

Parameters
string$userIDThe user id
Returns
array The ids of the answertemplates
Here is the call graph for this function:

◆ getType()

getType (   $objectID)

Returns the type of an objectID public

Parameters
string$objectIDThe objectID
Returns
string INSTANCEOF_x, else NO
Here is the call graph for this function:

◆ load()

load ( $questionObject)

Loads a question from the DB public

Parameters
EvaluationQuestion&$questionObjectThe question object
Here is the call graph for this function:

◆ save()

save ( $questionObject)

Writes or updates a question into the DB public

Parameters
EvaluationQuestion&$questionObjectThe question object
Here is the call graph for this function:

◆ titleExists()

titleExists (   $questionTitle,
  $userID 
)

Checks if a template exists with this title public

Parameters
string$questionTitleThe title of the question
string$userIDThe user id
Returns
bool YES if exists
Here is the call graph for this function:

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