src/MediaServices/MediaServicesRestProxy.php
protected function getEntryList($xmlString)
    {
        $xml = simplexml_load_string($xmlString);

        if ($xml->getName() == Resources::ENTRY) {
            $entry = new Entry();
            $entry->fromXml($xml);
            $entries = [$entry];
        } else {
            $feed = new Feed();
            $feed->parseXml($xmlString);
            $entries = $feed->getEntry();
        }

        $result = [];
        if (is_array($entries)) {
            foreach ($entries as $entry) {
                $properties = $this->getPropertiesFromAtomEntry($entry);
                if (!empty($properties)) {
                    $result[] = $properties;
                }
            }
        }

        return $result;
    }
protected function getEntryList($xmlString)
    {
        $xml = simplexml_load_string($xmlString);

        if ($xml->getName() == Resources::ENTRY) {
            $entry = new Entry();
            $entry->fromXml($xml);
            $entries = [$entry];
        } else {
            $feed = new Feed();
            $feed->parseXml($xmlString);
            $entries = $feed->getEntry();
        }

        $result = [];
        if (is_array($entries)) {
            foreach ($entries as $entry) {
                $properties = $this->getPropertiesFromAtomEntry($entry);
                if (!empty($properties)) {
                    $result[] = $properties;
                }
            }
        }

        return $result;
    }
protected function getEntryList ( $ xmlString ) { $ xml = simplexml_load_string ( $ xmlString ) ; if ( $ xml -> getName ( ) == Resources :: ENTRY ) { $ entry = new Entry ( ) ; $ entry -> fromXml ( $ xml ) ; $ entries = [ $ entry ] ; } else { $ feed = new Feed ( ) ; $ feed -> parseXml ( $ xmlString ) ; $ entries = $ feed -> getEntry ( ) ; } $ result = [ ] ; if ( is_array ( $ entries ) ) { foreach ( $ entries as $ entry ) { $ properties = $ this -> getPropertiesFromAtomEntry ( $ entry ) ; if ( ! empty ( $ properties ) ) { $ result [ ] = $ properties ; } } } return $ result ; }
Get array of properties of atom entities passed via feed or single entry.

@param string $xmlString Atom xml

@return array of properties arrays
Get array of properties of atom entities passed via feed or single entry .