Damjan Pelemis > RWDE-573 > RWDE::Web::Helper

Download:
RWDE-573.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 509   Source  

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.

syntax highlighting: