Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
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)
- 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 (   $evalID,
  $userID 
)

Connect a user with an evaluation public

Parameters
string$evalIDThe evaluation id
string$userIDThe user id

Here is the call graph for this function:

delete ( $evalObject)

Deletes an evaluation public

Parameters
objectEvaluation &$evalObject The evaluation to delete
Exceptions
error

Here is the call graph for this function:

Constructor public

Here is the call graph for this function:

exists (   $evalID)

Checks if evaluation with this ID exists 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 (   $evalID)

Get number of users who participated in the eval 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 (   $objectID)

Returns the type of an objectID public

Parameters
string$objectIDThe objectID
Returns
string INSTANCEOF_x, else NO

Reimplemented from EvaluationObjectDB.

Here is the call graph for this function:

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

Get users who participated in the eval 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 (   $evalID,
  $userID = "" 
)

Checks if someone used the evaluation 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 ( $evalObject)

Loads an evaluation from DB into an object

public

Parameters
objectEvaluationObject &$evalObject The evaluation to load
Exceptions
error

Here is the call graph for this function:

removeUser (   $evalID,
  $userID = "" 
)

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

Parameters
string$evalIDThe evaluation id
string$userIDThe user id

Here is the call graph for this function:

save ( $evalObject)

Saves an evaluation public

Parameters
objectEvaluation &$evalObject The evaluation to save
Exceptions
error

Here is the call graph for this function:

search_range (   $search_str)

public

Parameters
string$search_str
Returns
array

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