library/Haste/Util/Widget.php
public static function getBackendFormField($strField, array $arrDca, $varValue = null, $strDbField = '', $strTable = '', $objDca = null)
    {
        if (!($strClass = $GLOBALS['BE_FFL'][$arrDca['inputType']]))
        {
            return false;
        }

        return new $strClass(\Widget::getAttributesFromDca($arrDca, $strField, $varValue, $strDbField, $strTable, $objDca));
    }
public static function getBackendFormField($strField, array $arrDca, $varValue = null, $strDbField = '', $strTable = '', $objDca = null)
    {
        if (!($strClass = $GLOBALS['BE_FFL'][$arrDca['inputType']]))
        {
            return false;
        }

        return new $strClass(\Widget::getAttributesFromDca($arrDca, $strField, $varValue, $strDbField, $strTable, $objDca));
    }
public static function getBackendFormField ( $ strField , array $ arrDca , $ varValue = null , $ strDbField = '' , $ strTable = '' , $ objDca = null ) { if ( ! ( $ strClass = $ GLOBALS [ 'BE_FFL' ] [ $ arrDca [ 'inputType' ] ] ) ) { return false ; } return new $ strClass ( \ Widget :: getAttributesFromDca ( $ arrDca , $ strField , $ varValue , $ strDbField , $ strTable , $ objDca ) ) ; }
Get an instance of \Widget by passing fieldname and dca data

@param        $strField   string The field name
@param        $arrDca     array The DCA
@param null   $varValue   array
@param string $strDbField string The database field name
@param string $strTable   The table
@param null   $objDca     object The data container

@return bool
Get an instance of \ Widget by passing fieldname and dca data