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

Public Member Functions

 __construct ()
 
 load (&$evalObject)
 
 save (&$evalObject)
 
 delete (&$evalObject)
 
 exists ($evalID)
 
 hasVoted ($evalID, $userID="")
 
 getType ($objectID)
 
 connectWithUser ($evalID, $userID)
 
 removeUser ($evalID, $userID="")
 
 getUserVoted ($evalID, $answerIDs=array(), $questionIDs=array())
 
 search_range ($search_str)
 
- 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)
 

Static Public Member Functions

static getNumberOfVotes ($evalID)
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Constructor public

Member Function Documentation

◆ connectWithUser()

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

delete ( $evalObject)

Deletes an evaluation public

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

◆ exists()

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

static getNumberOfVotes (   $evalID)
static

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

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:

◆ getUserVoted()

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

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

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

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

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

public

Parameters
string$search_str
Returns
array

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