Net_LDAP
[ class tree: Net_LDAP ] [ index: Net_LDAP ] [ all elements ]

Class: Net_LDAP_Util

Source Location: /Net_LDAP-0.6.6/LDAP/Util.php

Class Overview

PEAR
   |
   --Net_LDAP_Util

Utility Class for Net_LDAP


Author(s):

Version:

  • $Revision: 1.4.2.1 $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 34]
Utility Class for Net_LDAP


[ Top ]


Method Detail

Net_LDAP_Util (Constructor)   [line 60]

Net_LDAP_Util Net_LDAP_Util( object Net_LDAP &$ldap)

Constructur

Takes an LDAP object by reference and saves it. Then the schema will be fetched.

  • Access: public

Parameters:

object Net_LDAP   &$ldap   — 

[ Top ]

utf8Decode   [line 92]

array utf8Decode( array $attributes)

Decodes the given attribute values
  • Return: Array with decoded attribute values
  • Access: public

Parameters:

array   $attributes   —  Array of attributes

[ Top ]

utf8Encode   [line 80]

array utf8Encode( array $attributes)

Encodes given attributes to UTF8 if needed

This function takes attributes in an array and then checks against the schema if they need UTF8 encoding. If that is so, they will be encoded. An encoded array will be returned and can be used for adding or modifying.

  • Return: Array of UTF8 encoded attributes
  • Access: public

Parameters:

array   $attributes   —  Array of attributes

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:26:18 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.