public function getDataByItems(array $items)
    {
        $output = [];
        foreach ($items as $item) {
            try {
                $output[] = $this->getDataByItem($item);
            } catch (ExtractorException $e) {
                \common_Logger::e('ERROR on item ' . $item->getUri() . ' : ' . $e->getMessage());
            }
        }

        if (empty($output)) {
            throw new ExtractorException('No data item to export.');
        }

        return $output;
    }
public function getDataByItems(array $items)
    {
        $output = [];
        foreach ($items as $item) {
            try {
                $output[] = $this->getDataByItem($item);
            } catch (ExtractorException $e) {
                \common_Logger::e('ERROR on item ' . $item->getUri() . ' : ' . $e->getMessage());
            }
        }

        if (empty($output)) {
            throw new ExtractorException('No data item to export.');
        }

        return $output;
    }
public function getDataByItems ( array $ items ) { $ output = [ ] ; foreach ( $ items as $ item ) { try { $ output [ ] = $ this -> getDataByItem ( $ item ) ; } catch ( ExtractorException $ e ) { \ common_Logger :: e ( 'ERROR on item ' . $ item -> getUri ( ) . ' : ' . $ e -> getMessage ( ) ) ; } } if ( empty ( $ output ) ) { throw new ExtractorException ( 'No data item to export.' ) ; } return $ output ; }
Loop all items and call extract function

@param array $items
@return array
@throws ExtractorException
Loop all items and call extract function