LdapTools\Object\LdapObject::getType PHP Method

getType() public method

Get the LDAP type for this object.
public getType ( ) : string
return string
    public function getType()
    {
        return $this->type;
    }

Usage Example

 /**
  * @param LdapObject $ldapObject
  * @param string|null $dn The DN to use for the batch operation to LDAP.
  */
 protected function executeBatchOperation(LdapObject $ldapObject, $dn = null)
 {
     $dn = $dn ?: $ldapObject->get('dn');
     $operation = new BatchModifyOperation($dn, $ldapObject->getBatchCollection());
     $this->hydrateOperation($operation, $ldapObject->getType());
     $this->connection->execute($operation);
     $ldapObject->setBatchCollection(new BatchCollection($ldapObject->get('dn')));
 }
All Usage Examples Of LdapTools\Object\LdapObject::getType