Re: [PHP] Updating inherited attributes without __construct()

2008-06-06 Thread Nathan Nobbe
On Fri, Jun 6, 2008 at 2:09 PM, Tyson Vanover <[EMAIL PROTECTED]> wrote: > Sorry, I probably should have included the add() function from the parent. > As well as all of the parent constructor. > > Basically the object takes an array of key=>value pairs and parses them > into a string for output.

Re: [PHP] Updating inherited attributes without __construct()

2008-06-06 Thread Tyson Vanover
Sorry, I probably should have included the add() function from the parent. As well as all of the parent constructor. Basically the object takes an array of key=>value pairs and parses them into a string for output. When it takes in the array of pairs it needs to check the keys against a li

Re: [PHP] Updating inherited attributes without __construct()

2008-06-06 Thread Nathan Nobbe
On Thu, Jun 5, 2008 at 12:15 PM, Tyson Vanover <[EMAIL PROTECTED]> wrote: > I have a class that has a list of valid keys, and an array of values. When > a value is added to the array it's key is first checked against the list of > valid keys (this is to prevent injection issues we have been havin

[PHP] Updating inherited attributes without __construct()

2008-06-05 Thread Tyson Vanover
I have a class that has a list of valid keys, and an array of values. When a value is added to the array it's key is first checked against the list of valid keys (this is to prevent injection issues we have been having later on in the project). class parent{ private $validkeys = 'title