protected function hasDeliveryGuestAccess(core_kernel_classes_Resource $delivery )
    {
        $returnValue = false;
    
        $properties = $delivery->getPropertiesValues(array(
            new core_kernel_classes_Property(DeliveryContainerService::PROPERTY_ACCESS_SETTINGS ),
        ));
        $propAccessSettings = current($properties[DeliveryContainerService::PROPERTY_ACCESS_SETTINGS ]);
        $accessSetting = (!(is_object($propAccessSettings)) or ($propAccessSettings=="")) ? null : $propAccessSettings->getUri();
    
        if( !is_null($accessSetting) ){
            $returnValue = ($accessSetting === DeliveryAssemblyService::PROPERTY_DELIVERY_GUEST_ACCESS);
        }
    
        return $returnValue;
    }
protected function hasDeliveryGuestAccess(core_kernel_classes_Resource $delivery )
    {
        $returnValue = false;
    
        $properties = $delivery->getPropertiesValues(array(
            new core_kernel_classes_Property(DeliveryContainerService::PROPERTY_ACCESS_SETTINGS ),
        ));
        $propAccessSettings = current($properties[DeliveryContainerService::PROPERTY_ACCESS_SETTINGS ]);
        $accessSetting = (!(is_object($propAccessSettings)) or ($propAccessSettings=="")) ? null : $propAccessSettings->getUri();
    
        if( !is_null($accessSetting) ){
            $returnValue = ($accessSetting === DeliveryAssemblyService::PROPERTY_DELIVERY_GUEST_ACCESS);
        }
    
        return $returnValue;
    }
protected function hasDeliveryGuestAccess ( core_kernel_classes_Resource $ delivery ) { $ returnValue = false ; $ properties = $ delivery -> getPropertiesValues ( array ( new core_kernel_classes_Property ( DeliveryContainerService :: PROPERTY_ACCESS_SETTINGS ) , ) ) ; $ propAccessSettings = current ( $ properties [ DeliveryContainerService :: PROPERTY_ACCESS_SETTINGS ] ) ; $ accessSetting = ( ! ( is_object ( $ propAccessSettings ) ) or ( $ propAccessSettings == "" ) ) ? null : $ propAccessSettings -> getUri ( ) ; if ( ! is_null ( $ accessSetting ) ) { $ returnValue = ( $ accessSetting === DeliveryAssemblyService :: PROPERTY_DELIVERY_GUEST_ACCESS ) ; } return $ returnValue ; }
Check if delivery configured for guest access

@param core_kernel_classes_Resource $delivery
@return bool
@throws \common_exception_InvalidArgumentType
Check if delivery configured for guest access