public static function file($name, $accept = null, array $attributes = array())
    {
        if (!is_null($name)) {
            $attributes['name'] = $name;
        }

        if (!is_null($accept)) {
            $attributes['accept'] = $accept;
        }

        $node = new Node\File();
        return $node->render($attributes);
    }
public static function file($name, $accept = null, array $attributes = array())
    {
        if (!is_null($name)) {
            $attributes['name'] = $name;
        }

        if (!is_null($accept)) {
            $attributes['accept'] = $accept;
        }

        $node = new Node\File();
        return $node->render($attributes);
    }
public static function file ( $ name , $ accept = null , array $ attributes = array ( ) ) { if ( ! is_null ( $ name ) ) { $ attributes [ 'name' ] = $ name ; } if ( ! is_null ( $ accept ) ) { $ attributes [ 'accept' ] = $ accept ; } $ node = new Node \ File ( ) ; return $ node -> render ( $ attributes ) ; }
Creates "File" node element

@param string $name
@param string $accept What type of files the input should accept
@param array $attributes Extra attributes
@return string
Creates File node element