示例#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;
 }
示例#2
0
 /** Parses the entry's contents. */
 private function parseContentsFromEntry()
 {
     $this->content = Splunk_AtomFeed::parseValueInside($this->entry->content);
     $this->loaded = TRUE;
 }
示例#3
0
 private function checkParseResult($xmlString, $expectedValue)
 {
     $this->assertEquals($expectedValue, Splunk_AtomFeed::parseValueInside(new SimpleXMLElement($xmlString)));
 }