Annotation of parser3/src/classes/form.C, revision 1.1

1.1     ! paf         1: /*
        !             2:        Parser
        !             3:        Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
        !             4:        Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
        !             5: 
        !             6:        $Id: form.C,v 1.5 2001/03/13 13:43:28 paf Exp $
        !             7: */
        !             8: 
        !             9: #include "pa_request.h"
        !            10: #include "_form.h"
        !            11: #include "pa_vform.h"
        !            12: 
        !            13: // global var
        !            14: 
        !            15: VStateless_class *form_base_class;
        !            16: 
        !            17: // methods
        !            18: 
        !            19: static void _fields(Request& r, const String&, Array *params) { 
        !            20:        Pool& pool=r.pool();
        !            21:        VForm *vform=static_cast<VForm *>(r.self);
        !            22:        r.write_no_lang(*new(pool) VHash(pool, &vform->fields())); 
        !            23: }
        !            24: 
        !            25: // initialize
        !            26: 
        !            27: void initialize_form_base_class(Pool& pool, VStateless_class& vclass) {
        !            28:        // ^form:fields[]
        !            29:        vclass.add_native_method("fields", _fields, 0, 0);
        !            30: }

E-mail: