Ldap/Ldif/Encoder.php

Show: PublicProtectedPrivateinherited
Table of Contents
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\Ldif
Zend_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

>VPropertyprotectedarray $_options = array('sort' => true, 'version' => 1, 'wrap' => 78)
Additional options used during encoding
Default valuearray('sort' => true, 'version' => 1, 'wrap' => 78)Details
Type
array
>VPropertyprotectedboolean $_versionWritten = false
Default valuefalseDetails
Type
boolean

Methods

methodprotected__construct(array $options = array()) : void

Constructor.

Parameters
NameTypeDescription
$optionsarray

Additional options used during encoding

methodprotected_decode(string $string) : array

Decodes the string $string into an array of LDIF items

Parameters
NameTypeDescription
$stringstring
Returns
TypeDescription
array
methodprotected_encode(mixed $value) : string

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

Parameters
NameTypeDescription
$valuemixed

The value to be encoded

Returns
TypeDescription
stringEncoded value
methodprotected_encodeAttribute(string $name, array | string $value) : string

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

Parameters
NameTypeDescription
$namestring
$valuearray | string
Returns
TypeDescription
string
Details
Link
http://www.faqs.org/rfcs/rfc2849.html  
methodprotected_encodeAttributes(array $attributes) : string

Encodes a collection of attributes according to RFC2849

Parameters
NameTypeDescription
$attributesarray
Returns
TypeDescription
string
Details
Link
http://www.faqs.org/rfcs/rfc2849.html  
methodprotected_encodeString(string $string, \boolen $base64 = null) : string

Encodes $string according to RFC2849

Parameters
NameTypeDescription
$stringstring
$base64\boolen
Returns
TypeDescription
string
Details
Link
http://www.faqs.org/rfcs/rfc2849.html  
methodprotected_pushAttribute(array $attribute, array $entry) : void

Pushes a decoded attribute to the stack

Parameters
NameTypeDescription
$attributearray
$entryarray
methodpublicdecode(string $string) : array
static

Decodes the string $string into an array of LDIF items

Parameters
NameTypeDescription
$stringstring
Returns
TypeDescription
array
methodpublicencode(mixed $value, array $options = array()) : string
static

Encode $value into a LDIF representation

Parameters
NameTypeDescription
$valuemixed

The value to be encoded

$optionsarray

Additional options used during encoding

Returns
TypeDescription
stringThe encoded value
Documentation was generated by phpDocumentor 2.2.0 .