protected function createQtiService(
        core_kernel_classes_Resource $item,
        tao_models_classes_service_StorageDirectory $publicDirectory,
        tao_models_classes_service_StorageDirectory $privateDirectory
    ) {

        $service = new tao_models_classes_service_ServiceCall(new core_kernel_classes_Resource(self::INSTANCE_ITEMRUNNER));
        $service->addInParameter(new tao_models_classes_service_ConstantParameter(
                new core_kernel_classes_Resource(taoItems_models_classes_ItemsService::INSTANCE_FORMAL_PARAM_ITEM_PATH), $publicDirectory->getId()
            )
        );
        $service->addInParameter(
            new tao_models_classes_service_ConstantParameter(
                new core_kernel_classes_Resource(taoItems_models_classes_ItemsService::INSTANCE_FORMAL_PARAM_ITEM_DATA_PATH), $privateDirectory->getId()
            )
        );
        $service->addInParameter(
            new tao_models_classes_service_ConstantParameter(
                new core_kernel_classes_Resource(taoItems_models_classes_ItemsService::INSTANCE_FORMAL_PARAM_ITEM_URI), $item
            )
        );

        return $service;
    }
protected function createQtiService(
        core_kernel_classes_Resource $item,
        tao_models_classes_service_StorageDirectory $publicDirectory,
        tao_models_classes_service_StorageDirectory $privateDirectory
    ) {

        $service = new tao_models_classes_service_ServiceCall(new core_kernel_classes_Resource(self::INSTANCE_ITEMRUNNER));
        $service->addInParameter(new tao_models_classes_service_ConstantParameter(
                new core_kernel_classes_Resource(taoItems_models_classes_ItemsService::INSTANCE_FORMAL_PARAM_ITEM_PATH), $publicDirectory->getId()
            )
        );
        $service->addInParameter(
            new tao_models_classes_service_ConstantParameter(
                new core_kernel_classes_Resource(taoItems_models_classes_ItemsService::INSTANCE_FORMAL_PARAM_ITEM_DATA_PATH), $privateDirectory->getId()
            )
        );
        $service->addInParameter(
            new tao_models_classes_service_ConstantParameter(
                new core_kernel_classes_Resource(taoItems_models_classes_ItemsService::INSTANCE_FORMAL_PARAM_ITEM_URI), $item
            )
        );

        return $service;
    }
protected function createQtiService ( core_kernel_classes_Resource $ item , tao_models_classes_service_StorageDirectory $ publicDirectory , tao_models_classes_service_StorageDirectory $ privateDirectory ) { $ service = new tao_models_classes_service_ServiceCall ( new core_kernel_classes_Resource ( self :: INSTANCE_ITEMRUNNER ) ) ; $ service -> addInParameter ( new tao_models_classes_service_ConstantParameter ( new core_kernel_classes_Resource ( taoItems_models_classes_ItemsService :: INSTANCE_FORMAL_PARAM_ITEM_PATH ) , $ publicDirectory -> getId ( ) ) ) ; $ service -> addInParameter ( new tao_models_classes_service_ConstantParameter ( new core_kernel_classes_Resource ( taoItems_models_classes_ItemsService :: INSTANCE_FORMAL_PARAM_ITEM_DATA_PATH ) , $ privateDirectory -> getId ( ) ) ) ; $ service -> addInParameter ( new tao_models_classes_service_ConstantParameter ( new core_kernel_classes_Resource ( taoItems_models_classes_ItemsService :: INSTANCE_FORMAL_PARAM_ITEM_URI ) , $ item ) ) ; return $ service ; }
Create a servicecall that runs the prepared qti item

@param core_kernel_classes_Resource $item
@param tao_models_classes_service_StorageDirectory $publicDirectory
@param tao_models_classes_service_StorageDirectory $privateDirectory
@return tao_models_classes_service_ServiceCall
Create a servicecall that runs the prepared qti item