Get all binary values from the specified result entry.

@param $entry
@param $attribute

@return array
165528
public function getValuesLen($entry, $attribute)
    {
        if ($this->suppressErrors) {
            return @ldap_get_values_len($this->getConnection(), $entry, $attribute);
        }

        return ldap_get_values_len($this->getConnection(), $entry, $attribute);
    }
1244163
function get_entry($dn, $attributes = array())
    {
        return parent::get_entry($dn, !empty($attributes) ? $attributes : $this->attributes);
    }
431576
public function removeAttributeValues(Entry $entry, string $attribute, array $values)
    {
        $con = $this->getConnectionResource();

        if (!@ldap_mod_del($con, $entry->getDn(), [$attribute => $values])) {
            throw new LdapException(sprintf('Could not remove values from entry "%s", attribute %s: %s.', $entry->getDn(), $attribute, ldap_error($con)));
        }
    }
495107
public function getValuesFor($attributes)
	{
		$ret = array();
		foreach ($attributes as $name) {
			if (array_key_exists($name, $this->_attributes)) {
				$ret[$name] = $this->_attributes[$name];
			}
		}
		return $ret;
	}
1159477
public static String extractAttributeValueNoEmptyCheck(Entry entry, String attributeType) {
        Attribute attribute = entry.get(attributeType);
        if (attribute == null) {
            return null;
        }
        try {
            return attribute.getString();
        } catch (LdapInvalidAttributeValueException e) {
            throw new LdapRuntimeException(e);
        }
    }
269297
public function unserializeEntry($Entry)
    {
        if (!$Entry || !is_string($Entry) || !preg_match('~^a\:\d+\:\{.*\}$~', $Entry)) {
            return $Entry;
        }
        $Arr = unserialize($Entry);
        if (is_array($Arr)) {
            $this->clearExpired($Arr);
            return $Arr;
        }
        return $Entry;
    }
1079554
public function getSingleRemoverCodeDocumentationParameterLines(PHPAttribute $attribute)
    {
        $lines = [];

        $lines[] = '@param ' . $attribute->getPhpSingleTypeBase() /*. ($attribute->getEntity()->getProject()->getBase() ? 'Base' : '')*/ . ' $' . $attribute->getSingleName();

        return $lines;
    }
1113399
public function getAttributesFromSchema($entry = null, $with_value = false, $is_value = null)
    {
        if (is_null($entry)) {
            return array_keys($this->getSchema());
        }

        if ($attributes = $this->getSchemaCache($entry.'_'.(int) $with_value)) {
            return $attributes;
        }

        $attributes = [];

        foreach ($this->getSchema() as $key => $config) {
            if (!is_null($is_value) && $is_value != array_get($config, $entry)) {
                continue;
            }

            if (array_has($config, $entry)) {
                if ($with_value) {
                    $attributes[$key] = $config[$entry];
                } else {
                    $attributes[] = $key;
                }
            }
        }

        $this->setSchemaCache($entry.'_'.(int) $with_value, $attributes);

        return $attributes;
    }
623338
protected function extractAttachIdAndAttributes($key, $value, array $attributes)
    {
        return is_array($value)
                    ? [$key, array_merge($value, $attributes)]
                    : [$value, $attributes];
    }
282790
public function getAttributes(): array
    {
        $search = array_column($this->map, 'attr');
        $result = ldap_read($this->ldap->getResource(), $this->ldap_dn, '(objectClass=*)', $search);
        $entries = ldap_get_entries($this->ldap->getResource(), $result);
        $attributes = $entries[0];

        $this->logger->info("get ldap user [{$this->ldap_dn}] attributes", [
            'category' => get_class($this),
            'params' => $attributes,
        ]);

        return $attributes;
    }
816551
protected function castLoadedEntry(array $entry)
    {
        $entry['valid_until'] = (int)$entry['valid_until'];
        $entry['outside'] = (int)$entry['outside'];
        $entry['plain'] = (int)$entry['plain'];

        if ((bool)$entry['outside']) {
            return $entry;
        }

        if (!(bool)$entry['plain']) {
            $entry['payload'] = $this->serializer->deserialize($entry['payload']);
            $entry['plain'] = 1;
        }

        return $entry;
    }
982739
public function get($entry)
    {
        $value = false;

        foreach ($this->caches as $cache) {
            $value = $cache->get($entry);
            if ($value !== false) {
                return $value;
            }
        }
        return $value;
    }
1368745
public function findAllBy($attribute, $value, $columns = ['*'])
    {
        return $this->postProcess( parent::findAllBy($attribute, $value, $columns) );
    }
1071223
protected function checkBinary(array $attributes)
    {
        foreach ($attributes as $key => $value) {
            // if attribute is in binary field list
            if (in_array($key, $this->binaries)) {
                return true;
            }
        }

        return false;
    }
965205
protected function extractBinaries(&$attributes)
    {
        // If attributes contains binary field
        // extract binary fields to new array
        $binaries = [];
        if ($this->checkBinary($attributes) && $this->getConnection() instanceof Oci8Connection) {
            foreach ($attributes as $key => $value) {
                if (in_array($key, $this->binaries)) {
                    $binaries[$key] = $value;
                    unset($attributes[$key]);
                }
            }
        }

        return $this->binaryFields = $binaries;
    }
101922
public function getAttributeValue($document, $attribute)
    {
        if ($document instanceof Proxy && !in_array($attribute, $this->getIdentifierAttributeNames()) && !$document->__isInitialized()) {
            $document->__load();
        }

        return $this->getPropertyMetadata($attribute)->getValue($document);
    }
949526
protected function getSelectedAttributes(array $selected, array $entry)
    {
        if (count($selected) === 1 && $selected[0] == '*' && !$this->schema) {
            $selected = array_keys($entry);
        } elseif (count($selected) === 1 && $selected[0] == '*' && $this->schema) {
            $selected = array_unique(array_merge(array_keys($this->schema->getAttributeMap()), array_keys($entry)));
        }

        return $selected;
    }