cvs: pearweb /include/pepr pepr.php

From: Date: Sun, 05 Sep 2004 01:35:52 +0000
Subject: cvs: pearweb /include/pepr pepr.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-23644@lists.php.net to get a copy of this message
toby Sat Sep 4 21:35:52 2004 EDT Modified files: /pearweb/include/pepr pepr.php Log: * Added helper function for RSS feed. http://cvs.php.net/diff.php/pearweb/include/pepr/pepr.php?r1=1.49&r2=1.50&ty=u Index: pearweb/include/pepr/pepr.php diff -u pearweb/include/pepr/pepr.php:1.49 pearweb/include/pepr/pepr.php:1.50 --- pearweb/include/pepr/pepr.php:1.49 Sat Sep 4 20:16:00 2004 +++ pearweb/include/pepr/pepr.php Sat Sep 4 21:35:51 2004 @@ -22,7 +22,7 @@ * @author Daniel Convissor <danielc@php.net> * @copyright Copyright (c) 1997-2004 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: pepr.php,v 1.49 2004/09/05 00:16:00 toby Exp $ + * @version $Id: pepr.php,v 1.50 2004/09/05 01:35:51 toby Exp $ */ /**#@+ @@ -165,6 +165,18 @@ return true; } + function toRSSArray ( $full = false ) + { + return array( + 'title' => 'PEPr Proposal ['.$this->id.']: '.$this->pkg_category.'::'.$this->pkg_name, + 'link' => 'http://pear.php.net/pepr/pepr-proposal-show.php?id='. $this->id, + 'desc' => ' +Proposed package: '.$this->pkg_category.'::'.$this->pkg_name.'<br /> +Proposer: '.user_link($this->user_handle).'<br /> +'.$this->pkg_describtion, + 'date' => date("Y-m-d\TH:i:s-05:00", $this->draft_date) + ); + } /** * Look up proposal information based on the proposal ID number *

« previous php.pear.cvs (#23644) next »