Jyxo\Mail\Parser::getMimeExcept PHP 메소드

getMimeExcept() 공개 메소드

Returns a list of part Ids of all parts except for the given types.
public getMimeExcept ( array $exceptTypes ) : array
$exceptTypes array Ignored part types
리턴 array
    public function getMimeExcept(array $exceptTypes) : array
    {
        try {
            $this->checkIfParsed();
        } catch (\Jyxo\Mail\Parser\EmailNotExistException $e) {
            throw $e;
        }
        $parts = [];
        if (is_array($this->structure['ftype'])) {
            $allExcept = array_diff($this->structure['ftype'], $exceptTypes);
            foreach (array_keys($allExcept) as $key) {
                $parts[] = $this->structure['pid'][$key];
            }
        }
        return $parts;
    }