/**
* Constructor
*
* @param string $TableName
* @param string $style The style key to use.
*/
public function __construct($TableName = '', $style = '')
{
if ($TableName != '') {
$TableModel = new Gdn_Model($TableName);
$this->setModel($TableModel);
}
if ($style === '') {
$themeInfo = Gdn::themeManager()->getThemeInfo(Gdn::themeManager()->currentTheme());
$style = val('ControlStyle', $themeInfo);
}
$this->setStyles($style);
// Get custom error class
$this->ErrorClass = c('Garden.Forms.InlineErrorClass', 'Error');
parent::__construct();
}