|
|
| version 1.1, 2001/03/13 17:54:12 | version 1.2, 2001/03/13 20:02:08 |
|---|---|
| Line 16 VStateless_class *form_base_class; | Line 16 VStateless_class *form_base_class; |
| // methods | // methods |
| static void _fields(Request& r, const String&, Array *params) { | |
| Pool& pool=r.pool(); | |
| VForm *vform=static_cast<VForm *>(r.self); | |
| r.write_no_lang(*new(pool) VHash(pool, &vform->fields())); | |
| } | |
| // initialize | // initialize |
| void initialize_form_base_class(Pool& pool, VStateless_class& vclass) { | void initialize_form_base_class(Pool& pool, VStateless_class& vclass) { |
| // ^form:fields[] | |
| vclass.add_native_method("fields", _fields, 0, 0); | |
| } | } |