public function getName($default = false)
    {
        if (!($name = $this->getDispositionParameter('filename')) &&
            !($name = $this->getContentTypeParameter('name')) &&
            $default) {
            $name = preg_replace('|\W|', '_', $this->getDescription(false));
        }

        return $name;
    }
public function getName($default = false)
    {
        if (!($name = $this->getDispositionParameter('filename')) &&
            !($name = $this->getContentTypeParameter('name')) &&
            $default) {
            $name = preg_replace('|\W|', '_', $this->getDescription(false));
        }

        return $name;
    }
public function getName ( $ default = false ) { if ( ! ( $ name = $ this -> getDispositionParameter ( 'filename' ) ) && ! ( $ name = $ this -> getContentTypeParameter ( 'name' ) ) && $ default ) { $ name = preg_replace ( '|\W|' , '_' , $ this -> getDescription ( false ) ) ; } return $ name ; }
Get the name of this part.

@param boolean $default  If the name parameter doesn't exist, should we
use the default name from the description
parameter?

@return string  The name of the part.
Get the name of this part .