protected function getCurrentItemId(DeliveryExecution $deliveryExecution)
    {
        $result = null;
        $session = $this->getTestSessionService()->getTestSession($deliveryExecution);
        if ($session) {
            $item = $session->getCurrentAssessmentItemRef();
            if ($item) {
                $result = $item->getIdentifier();
            }
        }
        return $result;
    }
protected function getCurrentItemId(DeliveryExecution $deliveryExecution)
    {
        $result = null;
        $session = $this->getTestSessionService()->getTestSession($deliveryExecution);
        if ($session) {
            $item = $session->getCurrentAssessmentItemRef();
            if ($item) {
                $result = $item->getIdentifier();
            }
        }
        return $result;
    }
protected function getCurrentItemId ( DeliveryExecution $ deliveryExecution ) { $ result = null ; $ session = $ this -> getTestSessionService ( ) -> getTestSession ( $ deliveryExecution ) ; if ( $ session ) { $ item = $ session -> getCurrentAssessmentItemRef ( ) ; if ( $ item ) { $ result = $ item -> getIdentifier ( ) ; } } return $ result ; }
Get identifier of current item.
@param DeliveryExecution $deliveryExecution
@return null|string
Get identifier of current item .