All pastes #36937 Raw Edit

Stuff

public text v1 · immutable
#36937 ·published 2006-01-16 02:17 UTC
rendered paste body
21:12:36 < Acidtrux> here's an example layout i just hacked up
21:13:00 < Acidtrux> this describes the array that shout would pass back to
                     congregation to define the objects+attributes it wants to store
21:13:06 < Acidtrux> this will probably need tweaking...


Attribute Layout:
object type = array(
 description = Longer human description of the attributes this
               application provides for this object, NOT of the object
               itself
 attributes = array(    The attributes themselves
     name = short name of this attribute (used as a key for the Help
            system as well)
     description = Longer description of this attribute
     type = field datatype, one of the objects exported by Horde_Form
     size = maximum size of this data
     keys = array(     Mapping of this attribute to all possible backends
         ldap = ldapAttribute
         sql = table.column
     )
     limit = Maxmimum number of these attributes to store, 0 = unlimited
     required = boolean, true means form will not process without a value
     infoset = one of 'basic' or 'advanced'.  This is used to help keep
               the forms simple for non-power-users.  If 'required' is
               true and 'infoset' is false then 'default' MUST be
               specified
     'default' = the default value of the field.
 )
)