protected function GetFeeds($Raw = FALSE, $Regen = FALSE)
{
if (is_null($this->FeedList) || $Regen) {
$FeedArray = $this->GetUserMeta(0, "Feed.%");
//die('feeds');
$this->FeedList = array();
$this->RawFeedList = array();
foreach ($FeedArray as $FeedMetaKey => $FeedItem) {
$DecodedFeedItem = json_decode($FeedItem, TRUE);
$FeedURL = GetValue('URL', $DecodedFeedItem, NULL);
$FeedKey = self::EncodeFeedKey($FeedURL);
if (is_null($FeedURL)) {
//$this->RemoveFeed($FeedKey);
continue;
}
$this->RawFeedList[$FeedKey] = $this->FeedList[$FeedURL] = $DecodedFeedItem;
}
}
return $Raw ? $this->RawFeedList : $this->FeedList;
}