protected function selectDelivery() {
		
		$ltiSession = LtiService::singleton()->getLtiSession();
		if ($ltiSession->getLaunchData()->hasVariable(LtiLaunchData::RESOURCE_LINK_TITLE)) {
		    $this->setData('linkTitle', $ltiSession->getLaunchData()->getVariable(LtiLaunchData::RESOURCE_LINK_TITLE));
		}
		$this->setData('link', $ltiSession->getLtiLinkResource()->getUri());
		$this->setData('submitUrl', _url('setDelivery'));
		
		$deliveries = DeliveryAssemblyService::singleton()->getAllAssemblies();
		if (count($deliveries) > 0) {
            $this->setData('deliveries', $deliveries);
    		$this->setView('instructor/selectDelivery.tpl');
		} else {
		    $this->returnError(__('No deliveries available'));
		}
	}
protected function selectDelivery() {
		
		$ltiSession = LtiService::singleton()->getLtiSession();
		if ($ltiSession->getLaunchData()->hasVariable(LtiLaunchData::RESOURCE_LINK_TITLE)) {
		    $this->setData('linkTitle', $ltiSession->getLaunchData()->getVariable(LtiLaunchData::RESOURCE_LINK_TITLE));
		}
		$this->setData('link', $ltiSession->getLtiLinkResource()->getUri());
		$this->setData('submitUrl', _url('setDelivery'));
		
		$deliveries = DeliveryAssemblyService::singleton()->getAllAssemblies();
		if (count($deliveries) > 0) {
            $this->setData('deliveries', $deliveries);
    		$this->setView('instructor/selectDelivery.tpl');
		} else {
		    $this->returnError(__('No deliveries available'));
		}
	}
protected function selectDelivery ( ) { $ ltiSession = LtiService :: singleton ( ) -> getLtiSession ( ) ; if ( $ ltiSession -> getLaunchData ( ) -> hasVariable ( LtiLaunchData :: RESOURCE_LINK_TITLE ) ) { $ this -> setData ( 'linkTitle' , $ ltiSession -> getLaunchData ( ) -> getVariable ( LtiLaunchData :: RESOURCE_LINK_TITLE ) ) ; } $ this -> setData ( 'link' , $ ltiSession -> getLtiLinkResource ( ) -> getUri ( ) ) ; $ this -> setData ( 'submitUrl' , _url ( 'setDelivery' ) ) ; $ deliveries = DeliveryAssemblyService :: singleton ( ) -> getAllAssemblies ( ) ; if ( count ( $ deliveries ) > 0 ) { $ this -> setData ( 'deliveries' , $ deliveries ) ; $ this -> setView ( 'instructor/selectDelivery.tpl' ) ; } else { $ this -> returnError ( __ ( 'No deliveries available' ) ) ; } }
Displays the form to select a delivery

@throws \common_Exception
@throws \common_exception_Error
@throws \oat\taoLti\models\classes\LtiException
@throws \oat\taoLti\models\classes\LtiVariableMissingException
Displays the form to select a delivery