REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 2.98 KB
Close
/home/jambtst2015/public_html/ida.com.ng/libraries/vendor/symfony/ldap/Entry.php
Text
Base64
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Ldap; /** * @author Charles Sarrazin <charles@sarraz.in> * @author Karl Shea <karl@karlshea.com> */ class Entry { private $dn; private $attributes; private $lowerMap; public function __construct(string $dn, array $attributes = []) { $this->dn = $dn; $this->attributes = []; $this->lowerMap = []; foreach ($attributes as $key => $attribute) { $this->setAttribute($key, $attribute); } } /** * Returns the entry's DN. * * @return string */ public function getDn() { return $this->dn; } /** * Returns whether an attribute exists. * * @param string $name The name of the attribute * @param bool $caseSensitive Whether the check should be case-sensitive * * @return bool */ public function hasAttribute(string $name/* , bool $caseSensitive = true */) { $caseSensitive = 2 > \func_num_args() || true === func_get_arg(1); $attributeKey = $this->getAttributeKey($name, $caseSensitive); if (null === $attributeKey) { return false; } return isset($this->attributes[$attributeKey]); } /** * Returns a specific attribute's value. * * As LDAP can return multiple values for a single attribute, * this value is returned as an array. * * @param string $name The name of the attribute * @param bool $caseSensitive Whether the attribute name is case-sensitive * * @return array|null */ public function getAttribute(string $name/* , bool $caseSensitive = true */) { $caseSensitive = 2 > \func_num_args() || true === func_get_arg(1); $attributeKey = $this->getAttributeKey($name, $caseSensitive); if (null === $attributeKey) { return null; } return $this->attributes[$attributeKey] ?? null; } /** * Returns the complete list of attributes. * * @return array */ public function getAttributes() { return $this->attributes; } /** * Sets a value for the given attribute. */ public function setAttribute(string $name, array $value) { $this->attributes[$name] = $value; $this->lowerMap[strtolower($name)] = $name; } /** * Removes a given attribute. */ public function removeAttribute(string $name) { unset($this->attributes[$name]); unset($this->lowerMap[strtolower($name)]); } private function getAttributeKey(string $name, bool $caseSensitive = true): ?string { if ($caseSensitive) { return $name; } return $this->lowerMap[strtolower($name)] ?? null; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 3 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Adapter
DIR
-
drwxr-xr-x
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Exception
DIR
-
drwxr-xr-x
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Security
DIR
-
drwxr-xr-x
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Entry.php
2.98 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Ldap.php
2.14 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LdapInterface.php
1.28 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE
1.04 KB
lrw-r--r--
2024-11-22 17:53:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).