src/core/framework/core/3rdparty/ezcomponents/Mail/src/parts/multiparts/multipart_related.php
public function getRelatedPartByID( $cid )
    {
        $parts = $this->getRelatedParts();
        foreach ( $parts as $part )
        {
            if ( ( $part->getHeader( 'Content-ID' ) !== '' ) &&
                ( $part->getHeader( 'Content-ID' ) == "<$cid>" ) )
            {
                return $part;
            }
        }
        return false;
    }
public function getRelatedPartByID( $cid )
    {
        $parts = $this->getRelatedParts();
        foreach ( $parts as $part )
        {
            if ( ( $part->getHeader( 'Content-ID' ) !== '' ) &&
                ( $part->getHeader( 'Content-ID' ) == "<$cid>" ) )
            {
                return $part;
            }
        }
        return false;
    }
public function getRelatedPartByID ( $ cid ) { $ parts = $ this -> getRelatedParts ( ) ; foreach ( $ parts as $ part ) { if ( ( $ part -> getHeader ( 'Content-ID' ) !== '' ) && ( $ part -> getHeader ( 'Content-ID' ) == "<$cid>" ) ) { return $ part ; } } return false ; }
Returns the part associated with the passed Content-ID.

@param string $cid
@return ezcMailPart
Returns the part associated with the passed Content - ID .