Vivek Khera > RWDE-483 > RWDE::Web::Helper

Download:
RWDE-483.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source   Latest Release: RWDE-510

FIELDNAME($field[,$value])

All field names of the record are accessible via the field name. If a second parameter is provided, that value is stored as the data, otherwise the existing value if any is returned. Throws an 'undef' exception on error. It is intended to be called by an AUTOLOAD() method from the subclass.

Example:

 $rec->owner_email('new@add.ress');
 $rec->user_addr2(undef);
 print $rec->user_fname();

Would be converted by AUTOLOAD() in the subclass to calls like

 $rec->FIELDNAME('owner_email','new@add.ress');

and so forth.