Stud.IP  jlu_3.3 Revision
EvaluationDB Class Reference
Inheritance diagram for EvaluationDB:
Inheritance graph
Collaboration diagram for EvaluationDB:
Collaboration graph

Public Member Functions

 EvaluationDB ()
 
 load (&$evalObject)
 
 save (&$evalObject)
 
 delete (&$evalObject)
 
 exists ($evalID)
 
 hasVoted ($evalID, $userID="")
 
 getType ($objectID)
 
 connectWithUser ($evalID, $userID)
 
 removeUser ($evalID, $userID="")
 
 getNumberOfVotes ($evalID)
 
 getUserVoted ($evalID, $answerIDs=array(), $questionIDs=array())
 
 search_range ($search_str)
 
- Public Member Functions inherited from EvaluationObjectDB
 EvaluationObjectDB ()
 
 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
 DatabaseObject ()
 
 getObjectID ()
 
 setObjectID ($objectID)
 
 getAuthorID ()
 
 setAuthorID ($authorID)
 
 getRangeID ()
 
 setRangeID ($rangeID)
 
- Public Member Functions inherited from AuthorObject
 AuthorObject ()
 
 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
 

Member Function Documentation

◆ connectWithUser()

connectWithUser (   $evalID,
  $userID 
)

Connect a user with an evaluation @access public

Parameters
string$evalIDThe evaluation id
string$userIDThe user id
Here is the call graph for this function:

◆ delete()

delete ( $evalObject)

Deletes an evaluation @access public

Parameters
objectEvaluation &$evalObject The evaluation to delete
Exceptions
error
Here is the call graph for this function:

◆ EvaluationDB()

Constructor @access public

◆ exists()

exists (   $evalID)

Checks if evaluation with this ID exists @access public

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

◆ getNumberOfVotes()

getNumberOfVotes (   $evalID)

Get number of users who participated in the eval @access public

Parameters
string$evalIDThe eval id
Returns
integer The number of users
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getType()

getType (   $objectID)

Returns the type of an objectID @access public

Parameters
string$objectIDThe objectID
Returns
string INSTANCEOF_x, else NO

Reimplemented from EvaluationObjectDB.

Here is the call graph for this function:

◆ getUserVoted()

getUserVoted (   $evalID,
  $answerIDs = array (),
  $questionIDs = array () 
)

Get users who participated in the eval @access public

Parameters
string$evalIDThe eval id
array$answerIDsThe answerIDs to get the pseudonym users
Returns
integer The number of users
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasVoted()

hasVoted (   $evalID,
  $userID = "" 
)

Checks if someone used the evaluation @access public

Parameters
string$evalIDThe eval id
string$userIDThe user id
Returns
bool YES if evaluation was used
Here is the call graph for this function:

◆ load()

load ( $evalObject)

Loads an evaluation from DB into an object

@access public

Parameters
objectEvaluationObject &$evalObject The evaluation to load
Exceptions
error
Here is the call graph for this function:

◆ removeUser()

removeUser (   $evalID,
  $userID = "" 
)

Removes the connection of an evaluation with a user or all users @access public

Parameters
string$evalIDThe evaluation id
string$userIDThe user id
Here is the call graph for this function:

◆ save()

save ( $evalObject)

Saves an evaluation @access public

Parameters
objectEvaluation &$evalObject The evaluation to save
Exceptions
error
Here is the call graph for this function:

◆ search_range()

search_range (   $search_str)

@access public

Parameters
string$search_str
Returns
array
Here is the call graph for this function:
Here is the caller graph for this function:

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