Re: New Class: OS
| From: | Stig S. Bakken | Date: | Mon, 28 Jan 2002 08:31:30 +0000 |
| Subject: | Re: New Class: OS | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-4225@lists.php.net to get a copy of this message | ||
Another option could be OS_Detect.
- Stig
On Mon, 2002-01-28 at 02:16, Alan Knowles wrote:
> Just a thought - maybe just "OS" is a bit dangerous...
> OS_Query
>
> It may be that
>
> OS_Linux_Recompile_Kernel
> OS_BSD_Recomiple_Kernel...
> OS_Linux_File (for hdparms settings?)
>
> -- or maybe OS' specific classes...
>
> or on a more fun side :)
> OS_Windows_remove
>
> any 2c to think about..
>
> regards
> alan
>
>
> Stig S. Bakken wrote:
>
> >On Sat, 2002-01-26 at 18:42, Sterling Hughes wrote:
> >
> >> Hey all,
> >>
> >> I've written a new OS class (currently very-beta, I wrote it in the
> >> past 1/2 hour :). Which will give you information about the current
> >> operating system that your using.
> >>
> >> The source code is available at:
> >> http://www.bumblebury.com/OS.phps,
> >> and a test script is available at:
> >> http://www.bumblebury.com/tst.phps.
> >>
> >> I'll add this in a day or so, unless someone speaks up (is there
> >> some sort of "process" for module acceptance, since I've last posted
> >> here? :)
> >>
> >
> >The only process is for picking the right name, but I guess "OS" is
> >pretty obvious for this one. Just create a package on pear.php.net (go
> >to /?devme first, then reload /).
> >
> >If OS is meant for only static methods, there's no point in inheriting
> >the PEAR class though...
> >
> > - Stig
> >
> >
>
>
>