<?php
/**
 * A class for decorating forms using tables.
 */
class form_decorator_table 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 = '<span>{error}</span>', $label = '{label}', $field = '{field}', $entry = '<tr><td>{label}</td><td>{field}</td><td>{error}</td></tr>', $set = '<fieldset><table>{set}</table></fieldset>')
    {
        parent::__construct($error, $label, $field, $entry, $set);
    }
    
    ////////////////////////////////////////////////////////////////////////////
    // Overload functions.

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