public function getData()
    {
        $awaiting = $this->getNumberOfAssessments(DeliveryExecution::STATE_AWAITING);
        $authorized = $this->getNumberOfAssessments(DeliveryExecution::STATE_AUTHORIZED);
        $paused = $this->getNumberOfAssessments(DeliveryExecution::STATE_PAUSED);
        $active = $this->getNumberOfAssessments(DeliveryExecution::STATE_ACTIVE);
        $current = $awaiting + $authorized + $paused + $active;
        $assessments = [
            self::GROUPFIELD_USER_ACTIVITY => [
                self::FIELD_ACTIVE_PROCTORS => $this->getNumberOfActiveUsers(ProctorService::ROLE_PROCTOR),
                self::FIELD_ACTIVE_TEST_TAKERS => $this->getNumberOfActiveUsers(TaoRoles::DELIVERY),
            ],
            self::FIELD_TOTAL_ASSESSMENTS => $this->getNumberOfAssessments(),
            self::FIELD_TOTAL_CURRENT_ASSESSMENTS => $current,
            self::STATE_AWAITING_ASSESSMENT => $awaiting,
            self::STATE_AUTHORIZED_BUT_NOT_STARTED_ASSESSMENTS => $authorized,
            self::STATE_PAUSED_ASSESSMENTS => $paused,
            self::STATE_IN_PROGRESS_ASSESSMENTS => $active
        ];

        return $assessments;
    }
public function getData()
    {
        $awaiting = $this->getNumberOfAssessments(DeliveryExecution::STATE_AWAITING);
        $authorized = $this->getNumberOfAssessments(DeliveryExecution::STATE_AUTHORIZED);
        $paused = $this->getNumberOfAssessments(DeliveryExecution::STATE_PAUSED);
        $active = $this->getNumberOfAssessments(DeliveryExecution::STATE_ACTIVE);
        $current = $awaiting + $authorized + $paused + $active;
        $assessments = [
            self::GROUPFIELD_USER_ACTIVITY => [
                self::FIELD_ACTIVE_PROCTORS => $this->getNumberOfActiveUsers(ProctorService::ROLE_PROCTOR),
                self::FIELD_ACTIVE_TEST_TAKERS => $this->getNumberOfActiveUsers(TaoRoles::DELIVERY),
            ],
            self::FIELD_TOTAL_ASSESSMENTS => $this->getNumberOfAssessments(),
            self::FIELD_TOTAL_CURRENT_ASSESSMENTS => $current,
            self::STATE_AWAITING_ASSESSMENT => $awaiting,
            self::STATE_AUTHORIZED_BUT_NOT_STARTED_ASSESSMENTS => $authorized,
            self::STATE_PAUSED_ASSESSMENTS => $paused,
            self::STATE_IN_PROGRESS_ASSESSMENTS => $active
        ];

        return $assessments;
    }
public function getData ( ) { $ awaiting = $ this -> getNumberOfAssessments ( DeliveryExecution :: STATE_AWAITING ) ; $ authorized = $ this -> getNumberOfAssessments ( DeliveryExecution :: STATE_AUTHORIZED ) ; $ paused = $ this -> getNumberOfAssessments ( DeliveryExecution :: STATE_PAUSED ) ; $ active = $ this -> getNumberOfAssessments ( DeliveryExecution :: STATE_ACTIVE ) ; $ current = $ awaiting + $ authorized + $ paused + $ active ; $ assessments = [ self :: GROUPFIELD_USER_ACTIVITY => [ self :: FIELD_ACTIVE_PROCTORS => $ this -> getNumberOfActiveUsers ( ProctorService :: ROLE_PROCTOR ) , self :: FIELD_ACTIVE_TEST_TAKERS => $ this -> getNumberOfActiveUsers ( TaoRoles :: DELIVERY ) , ] , self :: FIELD_TOTAL_ASSESSMENTS => $ this -> getNumberOfAssessments ( ) , self :: FIELD_TOTAL_CURRENT_ASSESSMENTS => $ current , self :: STATE_AWAITING_ASSESSMENT => $ awaiting , self :: STATE_AUTHORIZED_BUT_NOT_STARTED_ASSESSMENTS => $ authorized , self :: STATE_PAUSED_ASSESSMENTS => $ paused , self :: STATE_IN_PROGRESS_ASSESSMENTS => $ active ] ; return $ assessments ; }
Return comprehensive activity monitoring data.
@return array
Return comprehensive activity monitoring data .