LdapTools\Ldif\LdifParser::getValuesForModifyAction PHP Метод

getValuesForModifyAction() защищенный Метод

protected getValuesForModifyAction ( string $attribute, string $action ) : array
$attribute string
$action string
Результат array
    protected function getValuesForModifyAction($attribute, $action)
    {
        $values = [];
        while ($this->currentLine() !== LdifEntryModify::SEPARATOR && !$this->isEndOfLdif() && !$this->isEndOfEntry()) {
            if ($this->isComment()) {
                $this->nextLine();
                continue;
            }
            list($attrKey, $attrValue) = $this->getKeyAndValue($this->currentLine());
            if ($attribute !== $attrKey) {
                $this->throwException(sprintf('Attribute "%s" does not match "%s" for %s values.', $attrValue, $attribute, $action));
            }
            $values[] = $attrValue;
            $this->nextLine();
        }
        return $values;
    }