Exemple #1
0
 private static function parseList($listXml)
 {
     $list = array();
     foreach ($listXml->children(Splunk_AtomFeed::NS_S)->item as $itemXml) {
         $list[] = Splunk_AtomFeed::parseValueInside($itemXml);
     }
     return $list;
 }
Exemple #2
0
 /** Parses the entry's contents. */
 private function parseContentsFromEntry()
 {
     $this->content = Splunk_AtomFeed::parseValueInside($this->entry->content);
     $this->loaded = TRUE;
 }
 private function checkParseResult($xmlString, $expectedValue)
 {
     $this->assertEquals($expectedValue, Splunk_AtomFeed::parseValueInside(new SimpleXMLElement($xmlString)));
 }