Re: [PEPr] +1 for File Formats::File_DNS
| From: | Cipriano Groenendal | Date: | Sun, 20 Jun 2004 22:38:37 +0000 |
| Subject: | Re: [PEPr] +1 for File Formats::File_DNS | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-30994@lists.php.net to get a copy of this message | ||
> Markus Wolff (http://pear.php.net/user/mw21st) has voted +1 on the
proposal for File Formats::File_DNS.
>
> Proposal information:
> http://pear.php.net/pepr/pepr-proposal-show.php?id=53
> Vote information:
>
> http://pear.php.net/pepr/pepr-vote-show.php?id=53&handle=mw21st
>Comment:
> It would be nice if there were a function like toArray()
> to retrieve all the entries in a file and display them using
> a template engine or something like that.
> Currently, all the arrays containing the structure are
> marked private.
> This is not a real condition though, I'll vote +1 anyway :-)
Hi Markus :)
Since I can't add any information to the proposal anymore since it's in CvF,
I'd like to let you know there's a getRecord() function in my design that'll
be implemented sometime this week. It'll basicly function like the setFoo()
functions already implemented:
getRecord(s)([name], [type], [data]);
Like the setFoo() functions, any argument left empty/set to NULL means
select all, so a getRecords() call would return all the records from the
zonefile.
I'll probably also add a toArray() function to it, but that should also
return the SOA record, I'd think... Hmm, much still left to ponder.
Like I already told Stefan, I implemented all the advanced setFoo()
functions, and didn't think to implement simple getFoo() funcs ;)
Cipri