[PEPr] Comment on File Formats::iCal
| From: | Alan Knowles | Date: | Thu, 18 Aug 2005 01:21:31 +0000 |
| Subject: | [PEPr] Comment on File Formats::iCal | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-39450@lists.php.net to get a copy of this message | ||
Alan Knowles (http://pear.php.net/user/alan_k) has commented on the proposal for File Formats::iCal.
Comment:
There is alot of redundancy here:
eg.
public function getDateStart() {
return parent::getDateStart();
}
It would be far better to make the general usage something like:
$calendar = File_iCal::factory('calendar');
$event = File_iCal::factory('calendar',
array(
'dateStart' => .....
'dateEnd' => .....
'summary' => .....
);
);
$calender->add($event);
$calender->getICal();
The current structure of the package would have me writing set alot of
times, just to do that simple piece of code.
Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=251
--
Sent by PEPr, the automatic proposal system at http://pear.php.net