public static function getFieldClass($type)
    {
        $config = b8\Config::getInstance();

        $try = '\\' . $config->get('site.namespace') . '\\Form\\Element\\' . $type;

        if (class_exists($try)) {
            return $try;
        }

        $try = '\\Octo\\Form\\Element\\' . $type;

        if (class_exists($try)) {
            return $try;
        }

        $try = '\\b8\\Form\\Element\\' . $type;

        if (class_exists($try)) {
            return $try;
        }

        return null;
    }
public static function getFieldClass($type)
    {
        $config = b8\Config::getInstance();

        $try = '\\' . $config->get('site.namespace') . '\\Form\\Element\\' . $type;

        if (class_exists($try)) {
            return $try;
        }

        $try = '\\Octo\\Form\\Element\\' . $type;

        if (class_exists($try)) {
            return $try;
        }

        $try = '\\b8\\Form\\Element\\' . $type;

        if (class_exists($try)) {
            return $try;
        }

        return null;
    }
public static function getFieldClass ( $ type ) { $ config = b8 \ Config :: getInstance ( ) ; $ try = '\\' . $ config -> get ( 'site.namespace' ) . '\\Form\\Element\\' . $ type ; if ( class_exists ( $ try ) ) { return $ try ; } $ try = '\\Octo\\Form\\Element\\' . $ type ; if ( class_exists ( $ try ) ) { return $ try ; } $ try = '\\b8\\Form\\Element\\' . $ type ; if ( class_exists ( $ try ) ) { return $ try ; } return null ; }
Get the correct field class for the form

@param $type
@return null|string
Get the correct field class for the form