Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
EvaluationObjectDB Class Reference
Inheritance diagram for EvaluationObjectDB:
DatabaseObject AuthorObject EvaluationAnswerDB EvaluationDB EvaluationGroupDB EvaluationQuestionDB

Public Member Functions

 __construct ()
 
 getRangename ($rangeID, $html_decode=true)
 
 getValidRangeIDs (&$permObj, &$userObj, $rangeID)
 
 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 ()
 
 x_instanceof ()
 
 isError ()
 
 getErrors ()
 
 resetErrors ()
 
 throwError ($errcode, $errstring)
 
 throwErrorFromClass (AuthorObject $class)
 

Static Public Member Functions

static getGlobalPerm ($as_value=false)
 
static getRangePerm ($rangeID, $userID=NULL, $as_value=false)
 
static getEvalUserRangesWithNoPermission (&$eval, $return_ids=false)
 

Additional Inherited Members

- Data Fields inherited from DatabaseObject
 $authorID
 
 $objectID
 
 $rangeID
 
- Data Fields inherited from AuthorObject
 $errorArray
 
 $instanceof
 

Constructor & Destructor Documentation

__construct ( )

Constructor public

Member Function Documentation

getEvalID (   $objectID)

Gets the evaluation id for a object id public

Parameters
string$objectIDThe object id
Returns
string The evaluation id or nothing
getEvaluationIDs (   $rangeID = "",
  $state = "" 
)

Return all evaluationIDs in a specific range

public

Parameters
string$rangeIDSpecific rangeID or it is a template
string$stateSpecific state
Returns
array All evaluations in this range and this state
static getEvalUserRangesWithNoPermission ( $eval,
  $return_ids = false 
)
static

Returns the number of ranges with no permission public

Parameters
EvaluationObject&$evalThe evaluation
boolean$return_idsIf YES return the ids
Returns
array|integer Number of ranges with no permission or array of ids
static getGlobalPerm (   $as_value = false)
static

Gets the global Studi.IP perm public

Parameters
boolean$as_valueIf YES return as value
Returns
string the perm or NULL
getPublicTemplateIDs (   $searchString)

Gets the public template ids public

Parameters
string$searchStringThe name of the template
Returns
array The public template ids
getRangename (   $rangeID,
  $html_decode = true 
)

Gets the name of the range. Copied somewhere from Stud.IP... public

Parameters
string$rangeIDthe rangeID
boolean$html_decode(optional)
Returns
string The name of the range
static getRangePerm (   $rangeID,
  $userID = NULL,
  $as_value = false 
)
static

Get the Stud.IP-Perm for a range

Parameters
string$rangeIDThe range id
string$userIDThe user id
boolean$as_valueIf YES return as value public
Returns
string
getType (   $objectID)

Returns the type of an objectID public

Parameters
string$objectIDThe objectID
Returns
string INSTANCEOF_x, else NO
getValidRangeIDs ( $permObj,
$userObj,
  $rangeID 
)

Look for all rangeIDs for my permissions

Parameters
objectPerm &$permObj PHP-LIB-Perm-Object
objectUser &$userObj PHP-LIB-User-Object
string$rangeIDRangeID of actual page

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