\Trean_Data_Json

Horde_Data implementation for JSON import.

Copyright 2013-2017 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.

Summary

Methods
Properties
Constants
importData()
nextStep()
exportData()
exportFile()
No public properties found
No constants found
_parseFolders()
_parseJson()
_parseBookmarks()
$_extension
$_contentType
$_tagMap
$_parentMap
N/A
No private methods found
No private properties found
N/A

Properties

$_extension

$_extension : 

Type

$_contentType

$_contentType : 

Type

$_tagMap

$_tagMap : 

Type

$_parentMap

$_parentMap : 

Type

Methods

importData()

importData(  $contents,   $header = false) 

Parameters

$contents
$header

nextStep()

nextStep(integer  $action, array  $param = array()) : mixed

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

Parameters

integer $action

The current step. One of the IMPORT_* constants.

array $param

An associative array containing needed parameters for the current step.

Throws

\Horde_Data_Exception

Returns

mixed —

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

exportData()

exportData(  $data,   $method = 'REQUEST') 

Stub to return exported data.

Parameters

$data
$method

exportFile()

exportFile(  $filename,   $data) 

Stub to export data to a file.

Parameters

$filename
$data

_parseFolders()

_parseFolders(  $data) 

Parameters

$data

_parseJson()

_parseJson(  $data,   $container) 

Parameters

$data
$container

_parseBookmarks()

_parseBookmarks(  $data,   $container = null) 

Parameters

$data
$container