protected function getDeliveries()
    {
        $service = $this->getServiceManager()->get(ProctorService::SERVICE_ID);
        $proctor = \common_session_SessionManager::getSession()->getUser();
        $context = $this->hasRequestParameter('context') ? $this->getRequestParameter('context') : null;
        $deliveries = $service->getProctorableDeliveries($proctor, $context);
        $data = array();
        foreach ($deliveries as $delivery) {
            $executions = $service->getProctorableDeliveryExecutions($proctor, $delivery, $context);
            $deliveryData = DeliveryHelper::buildDeliveryData($delivery, $executions);
            $deliveryData['url'] = _url('index', 'Monitor', null, is_null($context)
                ? ['delivery' => $delivery->getUri()]
                : ['delivery' => $delivery->getUri(), 'context' => $context]
            );
            $data[] = $deliveryData;
        }

        return $data;
    }
protected function getDeliveries()
    {
        $service = $this->getServiceManager()->get(ProctorService::SERVICE_ID);
        $proctor = \common_session_SessionManager::getSession()->getUser();
        $context = $this->hasRequestParameter('context') ? $this->getRequestParameter('context') : null;
        $deliveries = $service->getProctorableDeliveries($proctor, $context);
        $data = array();
        foreach ($deliveries as $delivery) {
            $executions = $service->getProctorableDeliveryExecutions($proctor, $delivery, $context);
            $deliveryData = DeliveryHelper::buildDeliveryData($delivery, $executions);
            $deliveryData['url'] = _url('index', 'Monitor', null, is_null($context)
                ? ['delivery' => $delivery->getUri()]
                : ['delivery' => $delivery->getUri(), 'context' => $context]
            );
            $data[] = $deliveryData;
        }

        return $data;
    }
protected function getDeliveries ( ) { $ service = $ this -> getServiceManager ( ) -> get ( ProctorService :: SERVICE_ID ) ; $ proctor = \ common_session_SessionManager :: getSession ( ) -> getUser ( ) ; $ context = $ this -> hasRequestParameter ( 'context' ) ? $ this -> getRequestParameter ( 'context' ) : null ; $ deliveries = $ service -> getProctorableDeliveries ( $ proctor , $ context ) ; $ data = array ( ) ; foreach ( $ deliveries as $ delivery ) { $ executions = $ service -> getProctorableDeliveryExecutions ( $ proctor , $ delivery , $ context ) ; $ deliveryData = DeliveryHelper :: buildDeliveryData ( $ delivery , $ executions ) ; $ deliveryData [ 'url' ] = _url ( 'index' , 'Monitor' , null , is_null ( $ context ) ? [ 'delivery' => $ delivery -> getUri ( ) ] : [ 'delivery' => $ delivery -> getUri ( ) , 'context' => $ context ] ) ; $ data [ ] = $ deliveryData ; } return $ data ; }
Lists all available deliveries
@return array
Lists all available deliveries