src/Events/AssignmentGraded.php
public function read(array $opts) {
        $grade = $this->repo->readObject($opts['objectid'], $opts['objecttable']);
        $grade_comment = $this->repo->readGradeComment($grade->id, $grade->assignment)->commenttext;
        $grade_items = $this->repo->readGradeItems($grade->assignment, 'assign');
        return array_merge(parent::read($opts), [
            'grade' => $grade,
            'grade_comment' => $grade_comment,
            'grade_items' => $grade_items,
            'graded_user' => $this->repo->readUser($grade->userid),
            'module' => $this->repo->readModule($grade->assignment, 'assign'),
        ]);
    }
public function read(array $opts) {
        $grade = $this->repo->readObject($opts['objectid'], $opts['objecttable']);
        $grade_comment = $this->repo->readGradeComment($grade->id, $grade->assignment)->commenttext;
        $grade_items = $this->repo->readGradeItems($grade->assignment, 'assign');
        return array_merge(parent::read($opts), [
            'grade' => $grade,
            'grade_comment' => $grade_comment,
            'grade_items' => $grade_items,
            'graded_user' => $this->repo->readUser($grade->userid),
            'module' => $this->repo->readModule($grade->assignment, 'assign'),
        ]);
    }
public function read ( array $ opts ) { $ grade = $ this -> repo -> readObject ( $ opts [ 'objectid' ] , $ opts [ 'objecttable' ] ) ; $ grade_comment = $ this -> repo -> readGradeComment ( $ grade -> id , $ grade -> assignment ) -> commenttext ; $ grade_items = $ this -> repo -> readGradeItems ( $ grade -> assignment , 'assign' ) ; return array_merge ( parent :: read ( $ opts ) , [ 'grade' => $ grade , 'grade_comment' => $ grade_comment , 'grade_items' => $ grade_items , 'graded_user' => $ this -> repo -> readUser ( $ grade -> userid ) , 'module' => $ this -> repo -> readModule ( $ grade -> assignment , 'assign' ) , ] ) ; }
Reads data for an event.
@param [String => Mixed] $opts
@return [String => Mixed]
@override Event
Reads data for an event .