| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
DB repo for survey run. More...
 Collaboration diagram for ILIAS\Survey\Execution\RunDBRepository:Public Member Functions | |
| __construct (InternalDataService $data, \ilDBInterface $db=null) | |
| getFinishedSurveysOfUser (int $user_id) | |
| Get all finished surveys of a user.  More... | |
| getUnfinishedSurveysOfUser (int $user_id) | |
| Get all unfinished surveys of a user.  More... | |
| getFinishedAppraiseesForRater (int $rater_id) | |
| getCurrentRunId (int $survey_id, int $user_id, string $code="", int $appr_id=0) | |
| getState (int $run_id) | |
| getRunsForUser (int $survey_id, int $user_id, string $code="") | |
| getById (int $run_id) | |
| add (int $survey_id, int $user_id, string $code, int $appraisee_id=0) | |
| Add new run.  More... | |
| addTime (int $run_id, int $time, int $first_question) | |
| Add time record.  More... | |
| updateTime (int $run_id, int $time, int $entered_time) | |
Data Fields | |
| const | NOT_STARTED = -1 | 
| const | STARTED_NOT_FINISHED = 0 | 
| const | FINISHED = 1 | 
Protected Attributes | |
| ilDBInterface | $db | 
| InternalDataService | $data | 
DB repo for survey run.
Table svy_finished. Please note that there are lots of accesses to svy_finished in other classes.
Definition at line 31 of file class.RunDBRepository.php.
| ILIAS\Survey\Execution\RunDBRepository::__construct | ( | InternalDataService | $data, | 
| \ilDBInterface | $db = null  | 
        ||
| ) | 
Definition at line 40 of file class.RunDBRepository.php.
References ILIAS\Survey\Execution\RunDBRepository\$data, ILIAS\Survey\Execution\RunDBRepository\$db, and $DIC.
| ILIAS\Survey\Execution\RunDBRepository::add | ( | int | $survey_id, | 
| int | $user_id, | ||
| string | $code, | ||
| int | $appraisee_id = 0  | 
        ||
| ) | 
Add new run.
Definition at line 234 of file class.RunDBRepository.php.
References ILIAS\Survey\Execution\RunDBRepository\$db, and ilDBInterface\nextId().
 Here is the call graph for this function:| ILIAS\Survey\Execution\RunDBRepository::addTime | ( | int | $run_id, | 
| int | $time, | ||
| int | $first_question | ||
| ) | 
Add time record.
Definition at line 256 of file class.RunDBRepository.php.
References ILIAS\Survey\Execution\RunDBRepository\$db, and $id.
| ILIAS\Survey\Execution\RunDBRepository::getById | ( | int | $run_id | ) | 
Definition at line 209 of file class.RunDBRepository.php.
References ILIAS\Survey\Execution\RunDBRepository\$db, and ilDBInterface\quote().
 Here is the call graph for this function:| ILIAS\Survey\Execution\RunDBRepository::getCurrentRunId | ( | int | $survey_id, | 
| int | $user_id, | ||
| string | $code = "",  | 
        ||
| int | $appr_id = 0  | 
        ||
| ) | 
Definition at line 122 of file class.RunDBRepository.php.
References ILIAS\Survey\Execution\RunDBRepository\$db, and ilDBInterface\queryF().
Referenced by ILIAS\Survey\Execution\RunManager\belongsToFinishedRun(), and ILIAS\Survey\Execution\RunManager\getCurrentRunId().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ILIAS\Survey\Execution\RunDBRepository::getFinishedAppraiseesForRater | ( | int | $rater_id | ) | 
| int | $rater_id | 
Definition at line 101 of file class.RunDBRepository.php.
References ILIAS\Survey\Execution\RunDBRepository\$db, ILIAS\Repository\int(), and ilDBInterface\queryF().
 Here is the call graph for this function:| ILIAS\Survey\Execution\RunDBRepository::getFinishedSurveysOfUser | ( | int | $user_id | ) | 
Get all finished surveys of a user.
Definition at line 57 of file class.RunDBRepository.php.
References ILIAS\Survey\Execution\RunDBRepository\$db, ILIAS\Repository\int(), and ilDBInterface\queryF().
 Here is the call graph for this function:| ILIAS\Survey\Execution\RunDBRepository::getRunsForUser | ( | int | $survey_id, | 
| int | $user_id, | ||
| string | $code = ""  | 
        ||
| ) | 
Definition at line 171 of file class.RunDBRepository.php.
References ILIAS\Survey\Execution\RunDBRepository\$db, ANONYMOUS_USER_ID, and ilDBInterface\quote().
 Here is the call graph for this function:| ILIAS\Survey\Execution\RunDBRepository::getState | ( | int | $run_id | ) | 
Definition at line 151 of file class.RunDBRepository.php.
References ILIAS\Survey\Execution\RunDBRepository\$db, and ilDBInterface\queryF().
Referenced by ILIAS\Survey\Execution\RunManager\belongsToFinishedRun(), and ILIAS\Survey\Execution\RunManager\getCurrentState().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ILIAS\Survey\Execution\RunDBRepository::getUnfinishedSurveysOfUser | ( | int | $user_id | ) | 
Get all unfinished surveys of a user.
Definition at line 79 of file class.RunDBRepository.php.
References ILIAS\Survey\Execution\RunDBRepository\$db, ILIAS\Repository\int(), and ilDBInterface\queryF().
 Here is the call graph for this function:| ILIAS\Survey\Execution\RunDBRepository::updateTime | ( | int | $run_id, | 
| int | $time, | ||
| int | $entered_time | ||
| ) | 
Definition at line 267 of file class.RunDBRepository.php.
References ILIAS\Survey\Execution\RunDBRepository\$db, and ilDBInterface\manipulateF().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 38 of file class.RunDBRepository.php.
Referenced by ILIAS\Survey\Execution\RunDBRepository\__construct().
      
  | 
  protected | 
Definition at line 37 of file class.RunDBRepository.php.
Referenced by ILIAS\Survey\Execution\RunDBRepository\__construct(), ILIAS\Survey\Execution\RunDBRepository\add(), ILIAS\Survey\Execution\RunDBRepository\addTime(), ILIAS\Survey\Execution\RunDBRepository\getById(), ILIAS\Survey\Execution\RunDBRepository\getCurrentRunId(), ILIAS\Survey\Execution\RunDBRepository\getFinishedAppraiseesForRater(), ILIAS\Survey\Execution\RunDBRepository\getFinishedSurveysOfUser(), ILIAS\Survey\Execution\RunDBRepository\getRunsForUser(), ILIAS\Survey\Execution\RunDBRepository\getState(), ILIAS\Survey\Execution\RunDBRepository\getUnfinishedSurveysOfUser(), and ILIAS\Survey\Execution\RunDBRepository\updateTime().
| const ILIAS\Survey\Execution\RunDBRepository::FINISHED = 1 | 
Definition at line 35 of file class.RunDBRepository.php.
Referenced by ILIAS\Survey\Execution\RunManager\belongsToFinishedRun(), ILIAS\Survey\Execution\RunManager\hasFinished(), and ILIAS\Survey\Execution\RunManager\hasStarted().
| const ILIAS\Survey\Execution\RunDBRepository::NOT_STARTED = -1 | 
Definition at line 33 of file class.RunDBRepository.php.
| const ILIAS\Survey\Execution\RunDBRepository::STARTED_NOT_FINISHED = 0 | 
Definition at line 34 of file class.RunDBRepository.php.
Referenced by ILIAS\Survey\Execution\RunManager\hasStarted().