PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Date and Time » Date » Bug #686

Factory

Details

Submitted2004-02-05 09:34 UTC
Fromshuther at gmx dot net
StatusWont fix
PackageDate
PHP Version4.3.4
OSWindows 2000
Roadmaps(Not assigned)

Comments

[2004-02-05 09:34 UTC] shuther at gmx dot net

Description:
------------
It is good to have a factory, at least to use the Date object within smarty.

Reproduce code:
---------------
133a139,143
> /* Facvtory, to be used by Smarty,... */
> function &factory($date = null) {
> return new Date($date);
> }
>

[2004-02-25 10:19 UTC] shuther at gmx dot net

Yes, ie. if we use smarty, we can call a method of an object, but we can't do a new Date(); but we may need a Date object to compare 2 dates.
I am not sure it is usefull otherwise, but still.