scripts/tools/RecompileItemsElements.php
protected function recompileItems()
    {
        $extManager = $this->getServiceLocator()->get(\common_ext_ExtensionsManager::SERVICE_ID);

        if ($extManager->isInstalled('taoDeliveryRdf') === true && $extManager->isEnabled('taoDeliveryRdf') === true) {
            $compiledDeliveryClass = $this->getClass(DeliveryAssemblyService::CLASS_URI);
            if ($compiledDeliveryClass->exists() === true) {
                foreach ($compiledDeliveryClass->getInstances(true) as $compiledDelivery) {
                    try {
                        $this->getAssessmentsFromDelivery($compiledDelivery);
                    } catch (\Exception $e) {
                        $this->report->add(
                            new Report(
                                Report::TYPE_WARNING,
                                "Delivery {$compiledDelivery->getUri()} was skipped with message: '{$e->getMessage()}'"
                            )
                        );
                    }
                }
            }
        } else {
            $this->report->add(
                new Report(
                    Report::TYPE_WARNING,
                    "Extension taoDeliveryRdf is not installed. No compilation environment is available."
                )
            );
        }
    }
protected function recompileItems()
    {
        $extManager = $this->getServiceLocator()->get(\common_ext_ExtensionsManager::SERVICE_ID);

        if ($extManager->isInstalled('taoDeliveryRdf') === true && $extManager->isEnabled('taoDeliveryRdf') === true) {
            $compiledDeliveryClass = $this->getClass(DeliveryAssemblyService::CLASS_URI);
            if ($compiledDeliveryClass->exists() === true) {
                foreach ($compiledDeliveryClass->getInstances(true) as $compiledDelivery) {
                    try {
                        $this->getAssessmentsFromDelivery($compiledDelivery);
                    } catch (\Exception $e) {
                        $this->report->add(
                            new Report(
                                Report::TYPE_WARNING,
                                "Delivery {$compiledDelivery->getUri()} was skipped with message: '{$e->getMessage()}'"
                            )
                        );
                    }
                }
            }
        } else {
            $this->report->add(
                new Report(
                    Report::TYPE_WARNING,
                    "Extension taoDeliveryRdf is not installed. No compilation environment is available."
                )
            );
        }
    }
protected function recompileItems ( ) { $ extManager = $ this -> getServiceLocator ( ) -> get ( \ common_ext_ExtensionsManager :: SERVICE_ID ) ; if ( $ extManager -> isInstalled ( 'taoDeliveryRdf' ) === true && $ extManager -> isEnabled ( 'taoDeliveryRdf' ) === true ) { $ compiledDeliveryClass = $ this -> getClass ( DeliveryAssemblyService :: CLASS_URI ) ; if ( $ compiledDeliveryClass -> exists ( ) === true ) { foreach ( $ compiledDeliveryClass -> getInstances ( true ) as $ compiledDelivery ) { try { $ this -> getAssessmentsFromDelivery ( $ compiledDelivery ) ; } catch ( \ Exception $ e ) { $ this -> report -> add ( new Report ( Report :: TYPE_WARNING , "Delivery {$compiledDelivery->getUri()} was skipped with message: '{$e->getMessage()}'" ) ) ; } } } } else { $ this -> report -> add ( new Report ( Report :: TYPE_WARNING , "Extension taoDeliveryRdf is not installed. No compilation environment is available." ) ) ; } }
Recompile items

@throws \common_Exception
@throws \common_exception_Error
Recompile items