src/Robtimus/Multipart/Multipart.php
/**
     * Adds a Content-Disposition header.
     * @param string $type the Content-Disposition type (e.g. form-data, attachment).
     * @param string $name the value for any name parameter.
     * @param string $filename the value for any filename parameter.
     */
Adds a Content-Disposition header.
@param string $type the Content-Disposition type .
@param string $name the value for any name parameter.
@param string $filename the value for any filename parameter.
Adds a Content - Disposition header . @param string $type the Content - Disposition type . @param string $name the value for any name parameter . @param string $filename the value for any filename parameter .
protected final function addContentDisposition($type, $name = '', $filename = '') {
        $header = 'Content-Disposition: ' . $type;
        if ($name !== '') {
            $header .= '; name="' . $name . '"';
        }
        if ($filename !== '') {
            $header .= '; filename="' . $filename . '"';
        }
        $this->add($header . "\r\n");
    }
protected final function addContentDisposition ( $ type , $ name = '' , $ filename = '' ) { $ header = 'Content-Disposition: ' . $ type ; if ( $ name !== '' ) { $ header .= '; name="' . $ name . '"' ; } if ( $ filename !== '' ) { $ header .= '; filename="' . $ filename . '"' ; } $ this -> add ( $ header . " \r \n " ) ; }
Adds a Content-Disposition header.
Adds a Content - Disposition header .