<?php
/**
 * A class for decorating forms using definition lists.
 */
class form_decorator_dl extends form_decorator_dynamic
{
    ////////////////////////////////////////////////////////////////////////////
    // Construct and destruct functions.

    /**
     * @param string (optional) $error The error decorator.
     * @param string (optional) $label The label decorator.
     * @param string (optional) $field The field decorator.
     * @param string (optional) $entry The entry decorator.
     * @param string (optional) $set The set decorator.
     */
    public function __construct($error = '<dt><span>{error}</span></dt>', $label = '<dt>{label}</dt>', $field = '<dd>{field}</dd>', $entry = '{error}{label}{field}', $set = '<fieldset><dl>{set}</dl></fieldset>')
    {
        parent::__construct($error, $label, $field, $entry, $set);
    }
    
    ////////////////////////////////////////////////////////////////////////////
    // Overload functions.

    ////////////////////////////////////////////////////////////////////////////
    // Interface functions.
    
    ////////////////////////////////////////////////////////////////////////////
    // Internal functions.
}
