protected function insertOtherResource()
    {
        $items = $this->package->getNonStorageServices();
        $imported = false;

        foreach ($items as $service => $resources) {
            foreach ($resources as $resourceName => $details) {
                try {
                    $api = $service . '/' . $resourceName;
                    switch ($api) {
                        case 'system/app':
                        case 'system/role':
                        case 'system/service':
                        case 'system/event_script':
                        case 'system/user':
                            // Skip; already imported at this point.
                            break;
                        case $service . '/_table':
                            $imported = $this->insertDbTableResources($service);
                            break;
                        case $service . '/_proc':
                        case $service . '/_func':
                            // Not supported at this time.
                            $this->log('warning', 'Skipping resource ' . $resourceName . '. Not supported.');
                            break;
                        default:
                            $imported = $this->insertGenericResources($service, $resourceName);
                            break;
                    }
                } catch (UnauthorizedException $e) {
                    $this->log(
                        'error',
                        'Failed to insert resources for ' . $service . '/' . $resourceName . '. ' . $e->getMessage()
                    );
                }
            }
        }

        return $imported;
    }
protected function insertOtherResource()
    {
        $items = $this->package->getNonStorageServices();
        $imported = false;

        foreach ($items as $service => $resources) {
            foreach ($resources as $resourceName => $details) {
                try {
                    $api = $service . '/' . $resourceName;
                    switch ($api) {
                        case 'system/app':
                        case 'system/role':
                        case 'system/service':
                        case 'system/event_script':
                        case 'system/user':
                            // Skip; already imported at this point.
                            break;
                        case $service . '/_table':
                            $imported = $this->insertDbTableResources($service);
                            break;
                        case $service . '/_proc':
                        case $service . '/_func':
                            // Not supported at this time.
                            $this->log('warning', 'Skipping resource ' . $resourceName . '. Not supported.');
                            break;
                        default:
                            $imported = $this->insertGenericResources($service, $resourceName);
                            break;
                    }
                } catch (UnauthorizedException $e) {
                    $this->log(
                        'error',
                        'Failed to insert resources for ' . $service . '/' . $resourceName . '. ' . $e->getMessage()
                    );
                }
            }
        }

        return $imported;
    }
protected function insertOtherResource ( ) { $ items = $ this -> package -> getNonStorageServices ( ) ; $ imported = false ; foreach ( $ items as $ service => $ resources ) { foreach ( $ resources as $ resourceName => $ details ) { try { $ api = $ service . '/' . $ resourceName ; switch ( $ api ) { case 'system/app' : case 'system/role' : case 'system/service' : case 'system/event_script' : case 'system/user' : // Skip; already imported at this point. break ; case $ service . '/_table' : $ imported = $ this -> insertDbTableResources ( $ service ) ; break ; case $ service . '/_proc' : case $ service . '/_func' : // Not supported at this time. $ this -> log ( 'warning' , 'Skipping resource ' . $ resourceName . '. Not supported.' ) ; break ; default : $ imported = $ this -> insertGenericResources ( $ service , $ resourceName ) ; break ; } } catch ( UnauthorizedException $ e ) { $ this -> log ( 'error' , 'Failed to insert resources for ' . $ service . '/' . $ resourceName . '. ' . $ e -> getMessage ( ) ) ; } } } return $ imported ; }
Imports resources that does not need to inserted in a specific order.

@throws \DreamFactory\Core\Exceptions\InternalServerErrorException
Imports resources that does not need to inserted in a specific order .