protected function partIdIsChildOfAnAttachment($checkPartId)
    {
        foreach ($this->parts as $partId => $part) {
            if ($this->getPart('content-disposition', $part) == 'attachment') {
                if ($this->partIdIsChildOfPart($checkPartId, $partId)) {
                    return true;
                }
            }
        }
        return false;
    }
protected function partIdIsChildOfAnAttachment($checkPartId)
    {
        foreach ($this->parts as $partId => $part) {
            if ($this->getPart('content-disposition', $part) == 'attachment') {
                if ($this->partIdIsChildOfPart($checkPartId, $partId)) {
                    return true;
                }
            }
        }
        return false;
    }
protected function partIdIsChildOfAnAttachment ( $ checkPartId ) { foreach ( $ this -> parts as $ partId => $ part ) { if ( $ this -> getPart ( 'content-disposition' , $ part ) == 'attachment' ) { if ( $ this -> partIdIsChildOfPart ( $ checkPartId , $ partId ) ) { return true ; } } } return false ; }
Whether the given part ID is a child of any attachment part in the message.

@param string $checkPartId
@return bool
Whether the given part ID is a child of any attachment part in the message .