Lines Matching refs:entry
23 * Provides simple helper APIs for retrieving ranged results for an entry attribute.
44 * Get a specific ranged attribute by name from an entry. If it does not exist it will return null.
48 public function getRanged(Entry $entry, $attribute): ?Attribute
52 foreach ($this->getAllRanged($entry) as $rangedAttribute) {
62 * Get all ranged attributes as an array from a entry.
64 * @param Entry $entry
68 public function getAllRanged(Entry $entry): array
72 foreach ($entry->getAttributes() as $attribute) {
89 * A simple check to determine if an entry contains any ranged attributes. Optionally pass an attribute
91 * @param Entry $entry
95 public function hasRanged(Entry $entry, $attribute = null): bool
97 return (bool) ($attribute !== null ? $this->getRanged($entry, $attribute) : $this->getAllRanged($entry));
119 * @param Entry|Dn|string $entry
125 public function getMoreValues($entry, Attribute $attribute, $amount = '*'): Attribute
136 $result = $this->client->readOrFail($entry, [$attrReq]);
157 * Given a specific entry and attribute, range retrieve all values of the attribute.
159 * @param Entry|Dn|string $entry
164 public function getAllValues($entry, $attribute): Attribute
169 $entry = $this->client->readOrFail($entry, [$attrResult]);
170 $attribute = $this->getRanged($entry, $attrResult);
173 'No ranged result received for "%s" on entry "%s".',
175 $entry->getDn()->toString()
181 $attribute = $this->getMoreValues($entry, $attribute);