]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Teach Fieldmapper (Perl) to record and expose field datatype
authorMike Rylander <mrylander@gmail.com>
Mon, 19 Mar 2012 22:35:52 +0000 (18:35 -0400)
committerDan Wells <dbw2@calvin.edu>
Fri, 12 Jul 2013 18:28:13 +0000 (14:28 -0400)
commite3089098b4b27022597f7514af44108d4b3f5021
treeea3c1a053563921773cd264ad52a9d5e9b9f56aa
parent213dcee877b95aa3987de4d93e83012d24d5d93c
Teach Fieldmapper (Perl) to record and expose field datatype

We record most everything from the IDL, but until now we skipped datatype
because it's generally not useful in perl.  But, there might be uses.  So
now we record it, and expose it through the class and instance FieldDatatype
method.  Also added is a more general FieldInfo method, which returns a hash
containing field attributes, including but not limited to:

 * virtual  [1|0]
 * required [1|0]
 * position [array position for internal implementation]
 * datatype [bool|float|id|int|interval|link|money|number|org_unit|text|timestamp]
 * validate [regexp]

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/lib/OpenILS/Utils/Fieldmapper.pm