Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
function FeedItems() { $output = new DataObjectSet(); $this->feed = new SimplePie($this->RssUrl); $this->feed->init(); if($items = $this->feed->get_items(0, $this->NumberToShow)) { foreach($items as $item) { $output->push(new ArrayData(array( "Title" => $item->get_title(), "Link" => $item->get_link() ))); } return $output; } }
This paste will be private.
From the Design Piracy series on my blog: