API Documentation

Ldap/Ldif/Encoder.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Ldap
subpackage
Ldif
version
$Id: Encoder.php 21007 2010-02-09 13:40:16Z sgehrig $
Classes
Zend_Ldap_Ldif_Encoder

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Ldap_Ldif_Encoder

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Ldap
subpackage
Ldif
Properties
$_options
$_versionWritten
Methods
__construct
decode
_decode
_pushAttribute
encode
_encode
_encodeString
_encodeAttribute
_encodeAttributes

Description

Zend_Ldap_Ldif_Encoder provides methods to encode and decode LDAP data into/from LDIF.

Properties

$_options

array $_options = 'array'

Additional options used during encoding

Details

$_options
array
visibility
protected
default
array
final
false
static
false

$_versionWritten

boolean $_versionWritten = 'false'

Details

$_versionWritten
boolean
visibility
protected
default
false
final
false
static
false

Methods

__construct

__construct( array $options = array ) : void

Constructor.

Arguments
$options
array
Additional options used during encoding
Details
visibility
protected
final
false
static
false

_decode

_decode( string $string ) : array

Decodes the string $string into an array of LDIF items

Arguments
$string
string
Output
array
Details
visibility
protected
final
false
static
false

_encode

_encode( mixed $value ) : string

Recursive driver which determines the type of value to be encoded and then dispatches to the appropriate method.

Arguments
$value
mixed
The value to be encoded
Output
string
Encoded value
Details
visibility
protected
final
false
static
false

_encodeAttribute

_encodeAttribute( string $name, array|string $value ) : string

Encodes an attribute with $name and $value according to RFC2849

Arguments
$name
string
$value
arraystring
Output
string
Details
visibility
protected
final
false
static
false
link
http://www.faqs.org/rfcs/rfc2849.html

_encodeAttributes

_encodeAttributes( array $attributes ) : string

Encodes a collection of attributes according to RFC2849

Arguments
$attributes
array
Output
string
Details
visibility
protected
final
false
static
false
link
http://www.faqs.org/rfcs/rfc2849.html

_encodeString

_encodeString( string $string, boolen $base64 = null ) : string

Encodes $string according to RFC2849

Arguments
$string
string
$base64
boolen
Output
string
Details
visibility
protected
final
false
static
false
link
http://www.faqs.org/rfcs/rfc2849.html

_pushAttribute

_pushAttribute( array $attribute, array $entry ) :

Pushes a decoded attribute to the stack

Arguments
$attribute
array
$entry
array
Details
visibility
protected
final
false
static
false

decode

decode( string $string ) : array

Decodes the string $string into an array of LDIF items

Arguments
$string
string
Output
array
Details
visibility
public
final
false
static
true

encode

encode( mixed $value, array $options = array ) : string

Encode $value into a LDIF representation

Arguments
$value
mixed
The value to be encoded
$options
array
Additional options used during encoding
Output
string
The encoded value
Details
visibility
public
final
false
static
true
Documentation was generated by DocBlox.