Fork me on GitHub

Column definition shorthand documentation?  Bottom

  • In setting up pntables for a new module, doing column definitions, I see the more modern modules use a shorthand to set the definition. For example in Profile:

    Code

    $pntable['user_property_column_def'] = array('prop_id'         => "I4 NOTNULL AUTO PRIMARY",
                                                     'prop_label'      => "C(255) NOTNULL DEFAULT ''",
                                                     'prop_dtype'      => "I4 NOTNULL DEFAULT 0",
                                                     'prop_length'     => "I4 NOTNULL DEFAULT 255",
                                                     'prop_weight'     => "I4 NOTNULL DEFAULT 0",
                                                     'prop_validation' => "XL");


    Is there documentation for what these are? For example, "XL"...
  • There in the adodb documentation here for example. Scroll down a little to the "Legal portable type codes include:"

    --
    campertoday.nl, Module development, Dutch Zikula Community

This list is based on users active over the last 60 minutes.