File: diodisplay.xml

package info (click to toggle)
libapache2-mod-rivet 3.2.6-1
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 6,384 kB
  • sloc: tcl: 8,982; xml: 8,619; ansic: 7,074; sh: 5,039; makefile: 195; sql: 91; lisp: 78
file content (1050 lines) | stat: -rw-r--r-- 28,950 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
  <section id="diodisplay">
    <title>DIODisplay - Database Interface Objects Display Class</title>
    <refentry id="diodisplay_package">
      <refnamediv>
	<refname>DIODisplay</refname>
	<refpurpose>Database Interface Objects Display Class</refpurpose>
      </refnamediv>

      <refsynopsisdiv>
	<cmdsynopsis>
	  <command>DIODisplay</command>
	  <group>
	    <arg><replaceable>objectName</replaceable></arg>
	    <arg>#auto</arg>
	  </group>
	  <group choice="opt">
	    <arg>-option</arg>
	    <arg><replaceable>option</replaceable></arg>
	    <arg>-option</arg>
	    <arg><replaceable>option</replaceable></arg>
	    <arg>...</arg>
	  </group>
	</cmdsynopsis>
      </refsynopsisdiv>
      <refsect1>
	<title>Description</title>
	<para>
	  DIODisplay is an HTML display class that uses a DIO object
	  to do the database work and a form object to do the
	  displaying.
	</para>
      </refsect1>
      <refsect1>
	<title>Options</title>
	<variablelist>

	  <varlistentry>
	    <term>
	      <cmdsynopsis>
		<arg choice="plain">-DIO</arg>
		<arg choice="plain"><replaceable>dioObject</replaceable></arg>
	      </cmdsynopsis>
	    </term>
	    <listitem>
	      <para>
		The DIO object to be used in conjunction with this
		display object.  This is a required field.
	      </para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>
	      <cmdsynopsis>
		<arg choice="plain">-cleanup</arg>
		<group>
		  <arg>1</arg>
		  <arg>0</arg>
		</group>
	      </cmdsynopsis>
	    </term>
	    <listitem>
	      <para>
		If cleanup is true, when the display object is shown,
		it will automatically destroy the DIO object, the form
		object and itself. Default is true.
	      </para>
	    </listitem>
	  </varlistentry>


	  <!-- begin transform.html -->

	  <varlistentry>
	    <term>
	      <cmdsynopsis>
		<arg choice="plain">-confirmdelete</arg>
		<group>
		  <arg>1</arg>
		  <arg>0</arg>
		</group>
	      </cmdsynopsis>
	    </term>
	    <listitem>
	      <para>
		If confirmdelete is true, attempting to delete a
		record from the database first requires that the user
		confirm that they wish to delete it.  If it is false,
		deletion occurs without prompting the user. Defaults
		to true.
	      </para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>
	      <cmdsynopsis>
		<arg choice="plain">-errorhandler</arg>
		<arg choice="plain"><replaceable>procName</replaceable></arg>
	      </cmdsynopsis>
	    </term>
	    <listitem>
	      <para>
		The name of a procedure to handle errors when they
		occur.  During the processing of requests and pages,
		sometimes unexpected errors can occur.  This procedure
		will handle any errors.  It is called with a single
		argument, the error string.  Use of the Tcl errorInfo
		and errorCode variables is also recommended though.
	      </para>
	      <para>
		If no errorhandler is specified, the handle_error
		method within the Display object will handle the
		error.
	      </para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>
	      <cmdsynopsis>
		<arg choice="plain">-fields</arg>
		<arg choice="plain"><replaceable>fieldList</replaceable></arg>
	      </cmdsynopsis>
	    </term>
	    <listitem>
	      <para>
		Specify a list of fields to be used in this object.
		The fields list is actually created by using the
		<command>field</command> command to add fields to the
		display, but this option can be useful to sometimes
		over-set the list of fields created.
	      </para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>
	      <cmdsynopsis>
		<arg choice="plain">-form</arg>
		<arg choice="plain"><replaceable>formObject</replaceable></arg>
	      </cmdsynopsis>
	    </term>
	    <listitem>
	      <para>
		A Rivet form object to use when displaying a form.  If
		one is not specified, the display object will
		automatically create one when it is necessary.
	      </para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>
	      <cmdsynopsis>
		<arg choice="plain">-functions</arg>
		<arg choice="plain"><replaceable>functionList</replaceable></arg>
	      </cmdsynopsis>
	    </term>
	    <listitem>
	      <para>
		A list of functions to be displayed in the main menu.
		This is a list of functions the user is allowed to
		execute.
	      </para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>
	      <cmdsynopsis>
		<arg choice="plain">-pagesize</arg>
		<arg choice="plain"><replaceable>pageSize</replaceable></arg>
	      </cmdsynopsis>
	    </term>
	    <listitem>
	      <para>
		How many records to show per page on a search or
		list. Default is 25.
	      </para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>
	      <cmdsynopsis>
		<arg choice="plain">-rowfields</arg>
		<arg choice="plain"><replaceable>fieldList</replaceable></arg>
	      </cmdsynopsis>
	    </term>
	    <listitem>
	      <para>
		A list of fields to display in each row of a search or
		list.  When a search or list is conducted and the
		resulting rows are displayed, this list will limit
		which fields are displayed.  Default is all fields.
	      </para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>
	      <cmdsynopsis>
		<arg choice="plain">-rowfunctions</arg>
		<arg choice="plain"><replaceable>functionList</replaceable></arg>
	      </cmdsynopsis>
	    </term>
	    <listitem>
	      <para>
		A list of functions to display in each row of a search
		or list.
	      </para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>
	      <cmdsynopsis>
		<arg choice="plain">-searchfields</arg>
		<arg choice="plain"><replaceable>fieldList</replaceable></arg>
	      </cmdsynopsis>
	    </term>
	    <listitem>
	      <para>
		A list of fields to allow a user to search by.  This
		list will appear in the main screen as a drop-down box
		of fields the user can search on.
	      </para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>
	      <cmdsynopsis>
		<arg choice="plain">-title</arg>
		<arg choice="plain"><replaceable>title</replaceable></arg>
	      </cmdsynopsis>
	    </term>
	    <listitem>
	      <para>
		The title of the display object.  This will be output
		as the title of the HTML document.
	      </para>
	    </listitem>
	  </varlistentry>
	</variablelist>


	<refsect2>
	  <title>DIO Display Object Commands</title>


	  <variablelist>
	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">cleanup</arg>
		  <arg><replaceable>value</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Return the current cleanup value.  If
		  <option><replaceable>value</replaceable></option> is
		  specified, it sets a new value for the cleanup
		  option.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">delete</arg>
		  <arg choice="plain"><replaceable>key</replaceable></arg>
		</cmdsynopsis>
	      </term>
		<listitem>
		  <para>
		  Delete the specified <option>key</option> from the
		  database.
		</para>
		<para>
		  The default action of this method is to call the DIO
		  object's delete command.  This method can be
		  overridden.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">destroy</arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Destroy the diodisplay object.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">DIO</arg>
		  <arg><replaceable>value</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Return the current DIO value.  If
		  <option><replaceable>value</replaceable></option> is
		  specified, it sets a new value for DIO.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">errorhandler</arg>
		  <arg><replaceable>value</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Return the current errorhandler value.  If
		  <option><replaceable>value</replaceable></option> is specified, it
		  sets a new value for errorhandler.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">fetch</arg>
		  <arg choice="plain"><replaceable>key</replaceable></arg>
		  <arg choice="plain"><replaceable>arrayName</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Fetch the specified <replaceable><option>key</option></replaceable>
		  from the database and store it as an array in
		  <replaceable><replaceable>arrayName</replaceable></replaceable>.
		</para>
		<para>
		  The default of this method is to call the DIO object's fetch command.
		  This method can be overridden.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">field</arg>
		  <arg choice="plain"><replaceable>fieldName</replaceable></arg>
		  <group rep="repeat">
		    <arg choice="plain">-arg</arg>
		    <arg choice="plain"><replaceable>arg</replaceable></arg>
		  </group>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Create a new field object and add it to the display.
		  When a field is added to the display, a new object
		  of the DIODisplayField class is created with its
		  values.  See [FIXME - LINK] DIO Display Fields for
		  options and values.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">fields</arg>
		  <arg><replaceable>value</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Return the current fields value.  If
		  <option><replaceable>value</replaceable></option> is
		  specified, it sets a new value for fields.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">form</arg>
		  <arg><replaceable>value</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Return the current form value.  If
		  <option><replaceable>value</replaceable></option> is
		  specified, it sets a new value for form.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">function</arg>
		  <arg choice="plain"><replaceable>functionName</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Add a new function to the list of possible
		  functions.  The display object will only execute
		  methods and procs which are defined as functions by
		  the object.  This is to protect the program from
		  executing a different procedure other than what is
		  allowed.  The <command>function</command> command
		  adds a new function to the list of allowable
		  functions.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <arg choice="plain"><replaceable>objectName</replaceable></arg>
		  <arg choice="plain">functions</arg>
		  <arg><replaceable>value</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Return the current functions value.  If
		  <option><replaceable>value</replaceable></option> is
		  specified, it sets a new value for functions.  See
		  [FIXME - LINK DIO Display Functions] for a list of
		  default functions.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">pagesize</arg>
		  <arg><replaceable>value</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Return the current form pagesize.  If
		  <option><replaceable>value</replaceable></option> is
		  specified, it sets a new value for pagesize.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">rowfields</arg>
		  <arg><replaceable>value</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Return the current form rowfields.  If
		  <option><replaceable>value</replaceable></option> is
		  specified, it sets a new value for rowfields.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">rowfooter</arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Output the footer of a list of rows to the web page.
		</para>
		<para>
		  This method can be overridden.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">rowfunctions</arg>
		  <arg><replaceable>value</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Return the current rowfunctions value.  If
		  <option><replaceable>value</replaceable></option> is
		  specified, it sets a new value for rowfunctions.
		  
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">rowheader</arg>
		</cmdsynopsis>
	      </term>
	    <listitem>
	      <para>
		Output the header of a list of rows to the web page.
		By default, this is an HTML table with a top row
		listing the fields in the table.
		</para>
		<para>
		  This method can be overridden.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">searchfields</arg>
		  <arg><replaceable>value</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Return the current searchfields value.  If
		  <option><replaceable>value</replaceable></option> is
		  specified, it sets a new value for searchfields.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">show</arg>
		</cmdsynopsis>
	      </term>
	    <listitem>
	      <para>
		Show the display object.
		</para>
		<para>
		  This is the main method of the display class.  It
		  looks for a variable called <varname>mode</varname>
		  to be passed in through a form response and uses
		  that mode to execute the appropriate function.  If
		  mode is not given, the <command>Main</command>
		  function is called.
		</para>
		<para>
		  This function should be called for every page.
		</para>
	      </listitem>
	    </varlistentry>


	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">showform</arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Display the form of the object.
		</para>
		<para>
		  This method displays the form for this display
		  object.  It is used in the <command>Add</command>
		  and <command>Edit</command> methods but can be
		  called separately if needed.
		</para>
		<para>
		  This method can be overridden if the default look of
		  a form needs to be changed.  By default, the form
		  displayed is simply the fields in a table, in order.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">showrow</arg>
		  <arg choice="plain"><replaceable>arrayName</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Display a single row of a resulting list or search.
		</para>
		<para>
		  This method is used to display a single row while
		  displaying the result of a list or search.
		  <option><replaceable>arrayName</replaceable></option>
		  is a fetched array of the record.
		</para>
		<para>
		  This method can be overriden if the default look of
		  a row needs to be changed.  By default, each row is
		  output as a table row with each field as a table
		  data cell.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">showview</arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Display the view of the object.
		</para>
		<para>
		  This method displays the view for this display
		  object.  It is used in the
		  <command>Details</command> methods but can be
		  called separately if needed.
		</para>
		<para>
		  This method can be overridden if the default look of
		  a view needs to be changed.  By default, the view
		  displayed is simply the fields in a table, in order.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">store</arg>
		  <arg choice="plain"><replaceable>arrayName</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Store the specified
		  <option><replaceable>arrayName</replaceable></option>
		  in the database.
		</para>
		<para>
		  The default of this method is to call the DIO
		  object's store command.  This method can be
		  overridden.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">text</arg>
		  <arg><replaceable>value</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Return the current text value.  If
		  <option><replaceable>value</replaceable></option> is
		  specified, it sets a new value for text.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">title</arg>
		  <arg><replaceable>value</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Return the current title value.  If
		  <option><replaceable>value</replaceable></option> is
		  specified, it sets a new value for title.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">type</arg>
		  <arg><replaceable>value</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Return the current type value.  If
		  <option><replaceable>value</replaceable></option> is
		  specified, it sets a new value for type.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <command><replaceable>objectName</replaceable></command>
		  <arg choice="plain">value</arg>
		  <arg><replaceable>value</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  Return the current value value.  If
		  <option><replaceable>value</replaceable></option> is
		  specified, it sets a new value for value.
		</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
	</refsect2>

	<refsect2>
	  <title>DIO Display Functions</title>
	  <para>
	    These functions are called from the
	    <command>show</command> method when a form response
	    variable called <varname>mode</varname> is set.  If no
	    mode has been set, the default mode is
	    <command>Main</command>.  The show method will handle
	    the necessary switching of functions.  The show method
	    also handles checking to make sure the function given is a
	    true function.  If not, an error message is displayed.
	    New functions can be added as methods or by use of the
	    <command>function</command> command, and any of the
	    default functions can be overridden with new methods to
	    create an entirely new class.  These are the default
	    functions provided.
	  </para>

	  <variablelist>
	    <varlistentry>
	      <term><command>Add</command></term>
	      <listitem>
		<para>
		  Show a form that allows the user to add a new entry
		  to the database.  This function calls
		  <command>showform</command> to display the form
		  for adding the entry.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term><command>Cancel</command></term>
	      <listitem>
		<para>
		  The <command>Cancel</command> function does nothing
		  but redirect back to the <command>Main</command>
		  function.  This is handy for forms which have a
		  cancel button to point to.
		</para>
	      </listitem>
	    </varlistentry>


	    <varlistentry>
	      <term><command>Delete</command></term>
	      <listitem>
		<para>
		  If <varname>confirmdelete</varname> is true (the
		  default), the <command>Delete</command> function
		  will ask the user if they're sure they want to
		  delete the record from the database.  If
		  <varname>confirmdelete</varname> is false, or if the
		  user confirms they wish to delete, this function
		  calls the <command>DoDelete</command> function to do
		  the actual deletion of a record.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term><command>Details</command></term>
	      <listitem>
		<para>
		  Display the view of a single record from the database.  This function calls
		  the <command>showview</command> method to display a single record from the database.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term><command>DoDelete</command></term>
	      <listitem>
		<para>
		  This function actually deletes a record from the
		  database.  Once it has deleted the record, it
		  redirects the user back to the
		  <command>Main</command> function.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term><command>Edit</command></term>
	      <listitem>
		<para>
		  Show a form that allows the user to edit an existing
		  entry to the database.  This function calls
		  <command>showform</command> to display the form for
		  editing the entry and fills in the fields with the
		  values retrieved from the database.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term><command>List</command></term>
	      <listitem>
		<para>
		  This function lists the entires contents of the
		  database.  Each record is output in a row using the
		  <command>showrow</command> method.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term><command>Main</command></term>
	      <listitem>
		<para>
		  This function is the main function of the display
		  object.  If there is no mode, or once most commands
		  complete, the user will be redirected to this
		  function.  The default <command>Main</command>
		  function displays a list of functions the user can
		  execute, a list of searchfields the user can search
		  on, and a query field.  This query field is used by
		  all of the other functions to determine what the
		  user is trying to find.
		</para>
		<para>
		  In the case of a <command>search</command>, query
		  specifies what string the user is looking for in the
		  specified search field.  In the case of
		  <command>delete</command>,
		  <command>details</command> or
		  <command>edit</command>, the query specifies the
		  database key to access.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term><command>Save</command></term>
	      <listitem>
		<para>
		  This function saves any data passed to using the
		  <command>store</command> method.  This is primarily
		  used by the <command>add</command> and
		  <command>edit</command> commands to store the
		  results of the form the user has filled out.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term><command>Search</command></term>
	      <listitem>
		<para>
		  This function searches the database for any row
		  whose <varname>searchBy</varname> field matches
		  <varname>query</varname>. Once any number of records
		  are found, <command>Search</command> displays the
		  results in rows.
		</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>
	</refsect2>

	<refsect2>
	  <title>DIO Display Fields</title>
	  <para>
	    Display fields are created with the
	    <command>field</command> command of the DIODisplay object.
	    Each field is created as a new DIODisplayField object or
	    as a subclass of DIODisplayField.  The standard form
	    fields use the standard field class, while specialized
	    field types use a class with different options but still
	    supports all of the same commands and values a generic
	    field does.
	  </para>

	  <cmdsynopsis>
	    <command><replaceable>displayObject</replaceable></command>
	    <arg choice="plain">field</arg>
	    <arg
	    choice="plain"><replaceable>fieldname</replaceable></arg>
	    <group choice="opt" rep="repeat">
	      <arg choice="plain">-option</arg>
	      <arg choice="plain"><replaceable>option</replaceable></arg>
	    </group>
	  </cmdsynopsis>

	  <para>
	    These are the standard options supported by field types:
	  </para>

	  <variablelist>
	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <arg choice="plain">-formargs</arg>
		  <arg choice="plain"><replaceable>arguments</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  When a field is created, any argument which is not a
		  standard option is assumed to be an argument passed
		  to the form object when the field is shown in a
		  form.  These arguments are all appended to the
		  <varname>formargs</varname> variable.  You can use
		  this option to override or add options after the
		  initial creation of an object
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <arg choice="plain">-readonly</arg>
		  <group>
		    <arg>1</arg>
		    <arg>0</arg>
		  </group>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  If <varname>readonly</varname> is set to true, the
		  field will not display a form entry when displaying
		  in a form.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <arg choice="plain">-text</arg>
		  <arg choice="plain"><replaceable>text</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  The text displayed next to the form or view field.
		  By default, DIODisplay tries to figure out a pretty
		  way to display the field name.  This text will
		  override that default and display whatever is
		  specified.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term>
		<cmdsynopsis>
		  <arg choice="plain">-type</arg>
		  <arg choice="plain"><replaceable>fieldType</replaceable></arg>
		</cmdsynopsis>
	      </term>
	      <listitem>
		<para>
		  The type of field this is.  This type is used when
		  creating the field in the form object.
		  <option><replaceable>fieldType</replaceable></option>
		  can be any of the accepted form field types.  See
		  [FIXME - LINK DIO Field Types] for a list of types
		  available.
		</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>

	  <para>
	    All other arguments, unless specified in an individual
	    field type, are passed directly to the form object when
	    the field is created.  So, you can pass
	    <option>-size</option> or <option>-maxsize</option> to
	    specify the length and maximum length of the field entry.
	    Or, if type were textarea, you could define
	    <option>-rows</option> and <option>-cols</option> to
	    specify its row and column count.
	  </para>
	</refsect2>
	<refsect2>
	  <title>DIO Display Field Types</title>
	  <para>
	    The following is a list of recognized field types by
	    DIODisplay.  Some are standard HTML form fields, and
	    others are DIODisplay fields which execute special actions
	    and functions.
	  </para>
	</refsect2>
      </refsect1>
    </refentry>
  </section>