Ldap/Ldif/Encoder.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Ldap
- Subpackage
- Ldif
- Version
- $Id$
\Zend_Ldap_Ldif_Encoder
Package: Zend_Ldap\LdifZend_Ldap_Ldif_Encoder provides methods to encode and decode LDAP data into/from LDIF.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties



array $_options = array('sort' => true, 'version' => 1, 'wrap' => 78)Additional options used during encoding
Default valuearray('sort' => true, 'version' => 1, 'wrap' => 78)Details- Type
- array
Methods



__construct(array $options = array()) : voidParameters| Name | Type | Description |
|---|
| $options | array | Additional options used during encoding |
|---|



_decode(string $string) : arrayDecodes the string $string into an array of LDIF items
Parameters| Name | Type | Description |
|---|
| $string | string | |
|---|
Returns 


_encode(mixed $value) : stringRecursive driver which determines the type of value to be encoded
and then dispatches to the appropriate method.
Parameters| Name | Type | Description |
|---|
| $value | mixed | The value to be encoded |
|---|
Returns| Type | Description |
|---|
| string | Encoded value |



_pushAttribute(array $attribute, array $entry) : voidPushes a decoded attribute to the stack
Parameters| Name | Type | Description |
|---|
| $attribute | array | |
|---|
| $entry | array | |
|---|



decode(string $string) : arraystaticDecodes the string $string into an array of LDIF items
Parameters| Name | Type | Description |
|---|
| $string | string | |
|---|
Returns 


encode(mixed $value, array $options = array()) : stringstaticEncode $value into a LDIF representation
Parameters| Name | Type | Description |
|---|
| $value | mixed | The value to be encoded |
|---|
| $options | array | Additional options used during encoding |
|---|
Returns| Type | Description |
|---|
| string | The encoded value |