public function RSSItems() {
		if(!$this->FeedURL) return false;
		$doc = new DOMDocument();
		@$doc->load($this->FeedURL);		
		$items = $doc->getElementsByTagName('item');		
		$feeds = array ();
		foreach ($items as $node) {
			$itemRSS = array ( 
				'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
				'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
				'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
				'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue
			);
			$feeds[] = $itemRSS;
		}
		$output = ArrayList::create(array());
		$count = 0;
		foreach($feeds as $item) {					
			if($count >= $this->Count) break;
			// Cast the Date
			$date = new Date('Date');
			$date->setValue($item['date']);

			// Cast the Title
			$title = new Text('Title');
			$title->setValue($item['title']);
			
			$output->push(new ArrayData(array(
				'Title'			=> $title,
				'Date'			=> $date->Format($this->DateFormat),
				'Link'			=> $item['link']
			)));
			$count++;
		}
		
				
		return $output;

	}
public function RSSItems() {
		if(!$this->FeedURL) return false;
		$doc = new DOMDocument();
		@$doc->load($this->FeedURL);		
		$items = $doc->getElementsByTagName('item');		
		$feeds = array ();
		foreach ($items as $node) {
			$itemRSS = array ( 
				'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
				'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
				'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
				'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue
			);
			$feeds[] = $itemRSS;
		}
		$output = ArrayList::create(array());
		$count = 0;
		foreach($feeds as $item) {					
			if($count >= $this->Count) break;
			// Cast the Date
			$date = new Date('Date');
			$date->setValue($item['date']);

			// Cast the Title
			$title = new Text('Title');
			$title->setValue($item['title']);
			
			$output->push(new ArrayData(array(
				'Title'			=> $title,
				'Date'			=> $date->Format($this->DateFormat),
				'Link'			=> $item['link']
			)));
			$count++;
		}
		
				
		return $output;

	}
public function RSSItems ( ) { if ( ! $ this -> FeedURL ) return false ; $ doc = new DOMDocument ( ) ; @ $ doc -> load ( $ this -> FeedURL ) ; $ items = $ doc -> getElementsByTagName ( 'item' ) ; $ feeds = array ( ) ; foreach ( $ items as $ node ) { $ itemRSS = array ( 'title' => $ node -> getElementsByTagName ( 'title' ) -> item ( 0 ) -> nodeValue , 'desc' => $ node -> getElementsByTagName ( 'description' ) -> item ( 0 ) -> nodeValue , 'link' => $ node -> getElementsByTagName ( 'link' ) -> item ( 0 ) -> nodeValue , 'date' => $ node -> getElementsByTagName ( 'pubDate' ) -> item ( 0 ) -> nodeValue ) ; $ feeds [ ] = $ itemRSS ; } $ output = ArrayList :: create ( array ( ) ) ; $ count = 0 ; foreach ( $ feeds as $ item ) { if ( $ count >= $ this -> Count ) break ; // Cast the Date $ date = new Date ( 'Date' ) ; $ date -> setValue ( $ item [ 'date' ] ) ; // Cast the Title $ title = new Text ( 'Title' ) ; $ title -> setValue ( $ item [ 'title' ] ) ; $ output -> push ( new ArrayData ( array ( 'Title' => $ title , 'Date' => $ date -> Format ( $ this -> DateFormat ) , 'Link' => $ item [ 'link' ] ) ) ) ; $ count ++ ; } return $ output ; }
Gets a list of all the items in the RSS feed given a user-provided URL, limit, and date format

@return ArrayList
Gets a list of all the items in the RSS feed given a user - provided URL limit and date format