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

Class: Net_LDAP_Util

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

Class Overview

PEAR
   |
   --Net_LDAP_Util

Utility Class for Net_LDAP


Author(s):

Version:

  • $Revision: 1.7 $

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( Net_LDAP &$ldap)

Constructur

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

  • Access: public

Parameters:

Net_LDAP   &$ldap   —  Reference to Net_LDAP object

[ Top ]

utf8Decode   [line 96]

array utf8Decode( array $attributes)

Decodes the given attribute values
  • Return: Array with decoded attribute values
  • Todo: the code is doubled in class Net_LDAP! Regarding to Jan utf8-stuff should be done inside Net_LDAP so THIS function is obsolete
  • Access: public

Parameters:

array   $attributes   —  Array of attributes

[ Top ]

utf8Encode   [line 82]

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
  • Todo: the code is doubled in class Net_LDAP! Regarding to Jan utf8-stuff should be done inside Net_LDAP so THIS function is obsolete
  • Access: public

Parameters:

array   $attributes   —  Array of attributes

[ Top ]


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