Overview

Packages

  • Horde
    • Data
  • None
  • Turba

Classes

  • Turba_Data_Ldif
  • Overview
  • Package
  • Class
  • Tree

Class Turba_Data_Ldif

Horde_Data implementation for LDAP Data Interchange Format (LDIF).

Copyright 2007-2012 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (ASL). If you did not receive this file, see http://www.horde.org/licenses/apache.

Horde_Data_Base
Extended by Turba_Data_Ldif
Package: Horde\Data
Author: Rita Selsky ritaselsky@gmail.com
Located at Data/Ldif.php
Methods summary
public
# importData( mixed $contents, mixed $header = false )
public
# exportFile( string $filename, array $data, boolean $header = false )

Builds a LDIF file from a given data structure and triggers its download. It DOES NOT exit the current script but only outputs the correct headers and data.

Builds a LDIF file from a given data structure and triggers its download. It DOES NOT exit the current script but only outputs the correct headers and data.

Parameters

$filename
The name of the file to be downloaded.
$data
<p>A two-dimensional array containing the data set.</p>
$header
<p>If true, the rows of $data are associative arrays with field names as their keys.</p>
public string
# exportData( array $data, boolean $header = false )

Builds a LDIF file from a given data structure and returns it as a string.

Builds a LDIF file from a given data structure and returns it as a string.

Parameters

$data
A two-dimensional array containing the data set.
$header
<p>If true, the rows of $data are associative arrays with field names as their keys.</p>

Returns

string
The LDIF data.
public mixed
# nextStep( integer $action, array $param = array() )

Takes all necessary actions for the given import step, parameters and form values and returns the next necessary step.

Takes all necessary actions for the given import step, parameters and form values and returns the next necessary step.

Parameters

$action
The current step. One of the IMPORT_* constants.
$param
<p>An associative array containing needed parameters for the current step.</p>

Returns

mixed

Either the next step as an integer constant or imported data set after the final step.

Throws

Horde_Data_Exception
API documentation generated by ApiGen