src/Objects/Ldap/Entry.php
private function applyExtraAttributes()
    {
        // Convert distinguished name string into an array
        if ($this->hasAttribute('distinguishedname')) {
            $dn = $this->getAttribute('distinguishedname');

            $this->setAttribute('dn', $dn);

            $this->setAttribute('dn_array', $this->connection->explodeDn($dn, true));
        }

        // Convert the object category string into an array
        if ($this->hasAttribute('objectcategory')) {
            $oc = $this->getAttribute('objectcategory');

            $this->setAttribute('oc', $oc);

            $this->setAttribute('oc_array', $this->connection->explodeDn($oc, true));
        }
    }
private function applyExtraAttributes()
    {
        // Convert distinguished name string into an array
        if ($this->hasAttribute('distinguishedname')) {
            $dn = $this->getAttribute('distinguishedname');

            $this->setAttribute('dn', $dn);

            $this->setAttribute('dn_array', $this->connection->explodeDn($dn, true));
        }

        // Convert the object category string into an array
        if ($this->hasAttribute('objectcategory')) {
            $oc = $this->getAttribute('objectcategory');

            $this->setAttribute('oc', $oc);

            $this->setAttribute('oc_array', $this->connection->explodeDn($oc, true));
        }
    }
private function applyExtraAttributes ( ) { // Convert distinguished name string into an array if ( $ this -> hasAttribute ( 'distinguishedname' ) ) { $ dn = $ this -> getAttribute ( 'distinguishedname' ) ; $ this -> setAttribute ( 'dn' , $ dn ) ; $ this -> setAttribute ( 'dn_array' , $ this -> connection -> explodeDn ( $ dn , true ) ) ; } // Convert the object category string into an array if ( $ this -> hasAttribute ( 'objectcategory' ) ) { $ oc = $ this -> getAttribute ( 'objectcategory' ) ; $ this -> setAttribute ( 'oc' , $ oc ) ; $ this -> setAttribute ( 'oc_array' , $ this -> connection -> explodeDn ( $ oc , true ) ) ; } }
Applies extra attributes to the returned array.
Applies extra attributes to the returned array .