had a similar issue and found this thread, but then I figured it out, if you haven't here it is.
I originally added my new field right under the declaration of the validfields like so:
PHP Code:
var $validfields = array();
$this->validfields['MYVAR'] = array(TYPE_INT, REQ_NO);
But then, duh, I realized, this is a class. You can't do random operations outside of functions and stuff, so if you move that to a function it works. I moved mine into
PHP Code:
function vB_DataManager(&$registry, $errtype = ERRTYPE_STANDARD)
So it looks something like so:
PHP Code:
function vB_DataManager(&$registry, $errtype = ERRTYPE_STANDARD)
{
if (!is_subclass_of($this, 'vB_DataManager'))
{
trigger_error("Direct Instantiation of vB_DataManager class prohibited.", E_USER_ERROR);
}
$this->validfields['MYVAR'] = array(TYPE_INT, REQ_NO);
///...rest of function