Horde_Mime_Part::_reindex PHP Method

_reindex() protected method

Reindexes the MIME IDs, if necessary.
protected _reindex ( boolean $force = false )
$force boolean Reindex if the current part doesn't have an ID.
    protected function _reindex($force = false)
    {
        $id = $this->getMimeId();
        if ($this->_status & self::STATUS_REINDEX || $force && is_null($id)) {
            $this->buildMimeIds(is_null($id) ? $this->getPrimaryType() === 'multipart' ? '0' : '1' : $id);
        }
    }