public function createAssemblyFromTemplate(core_kernel_classes_Resource $deliveryTemplate) {
    
        $assemblyClass = $this->getRootClass();
    
        $content = DeliveryTemplateService::singleton()->getContent($deliveryTemplate);
        if (is_null($content)) {
            throw new EmptyDeliveryException('Delivery '.$deliveryTemplate->getUri().' has no content');
        }
    
        $props = $deliveryTemplate->getPropertiesValues(array(
            OntologyRdfs::RDFS_LABEL,
            TAO_DELIVERY_RESULTSERVER_PROP,
            TAO_DELIVERY_MAXEXEC_PROP,
            TAO_DELIVERY_START_PROP,
            TAO_DELIVERY_END_PROP,
            TAO_DELIVERY_EXCLUDEDSUBJECTS_PROP
        ));
        $props[PROPERTY_COMPILEDDELIVERY_DELIVERY] = array($deliveryTemplate);
    
        return $this->createAssemblyByContent($assemblyClass, $content, $props);

    }
public function createAssemblyFromTemplate(core_kernel_classes_Resource $deliveryTemplate) {
    
        $assemblyClass = $this->getRootClass();
    
        $content = DeliveryTemplateService::singleton()->getContent($deliveryTemplate);
        if (is_null($content)) {
            throw new EmptyDeliveryException('Delivery '.$deliveryTemplate->getUri().' has no content');
        }
    
        $props = $deliveryTemplate->getPropertiesValues(array(
            OntologyRdfs::RDFS_LABEL,
            TAO_DELIVERY_RESULTSERVER_PROP,
            TAO_DELIVERY_MAXEXEC_PROP,
            TAO_DELIVERY_START_PROP,
            TAO_DELIVERY_END_PROP,
            TAO_DELIVERY_EXCLUDEDSUBJECTS_PROP
        ));
        $props[PROPERTY_COMPILEDDELIVERY_DELIVERY] = array($deliveryTemplate);
    
        return $this->createAssemblyByContent($assemblyClass, $content, $props);

    }
public function createAssemblyFromTemplate ( core_kernel_classes_Resource $ deliveryTemplate ) { $ assemblyClass = $ this -> getRootClass ( ) ; $ content = DeliveryTemplateService :: singleton ( ) -> getContent ( $ deliveryTemplate ) ; if ( is_null ( $ content ) ) { throw new EmptyDeliveryException ( 'Delivery ' . $ deliveryTemplate -> getUri ( ) . ' has no content' ) ; } $ props = $ deliveryTemplate -> getPropertiesValues ( array ( OntologyRdfs :: RDFS_LABEL , TAO_DELIVERY_RESULTSERVER_PROP , TAO_DELIVERY_MAXEXEC_PROP , TAO_DELIVERY_START_PROP , TAO_DELIVERY_END_PROP , TAO_DELIVERY_EXCLUDEDSUBJECTS_PROP ) ) ; $ props [ PROPERTY_COMPILEDDELIVERY_DELIVERY ] = array ( $ deliveryTemplate ) ; return $ this -> createAssemblyByContent ( $ assemblyClass , $ content , $ props ) ; }
Creates a new assembly from the provided template
and desactivates other assemblies crearted from the same template

@param core_kernel_classes_Resource $deliveryTemplate
@throws EmptyDeliveryException
@return common_report_Report
Creates a new assembly from the provided template and desactivates other assemblies crearted from the same template