class JsonManipulator (View source)

Methods

__construct($contents)

No description

getContents()

No description

addLink($type, $package, $constraint, $sortPackages = false)

No description

addRepository($name, $config)

No description

removeRepository($name)

No description

addConfigSetting($name, $value)

No description

removeConfigSetting($name)

No description

addProperty($name, $value)

No description

removeProperty($name)

No description

addSubNode($mainNode, $name, $value)

No description

removeSubNode($mainNode, $name)

No description

addMainKey($key, $content)

No description

removeMainKey($key)

No description

format($data, $depth = 0)

No description

detectIndenting()

No description

pregMatch($re, $str, $matches = array())

No description

Details

__construct($contents)

Parameters

$contents

getContents()

Parameters

$type
$package
$constraint
$sortPackages

addRepository($name, $config)

Parameters

$name
$config

removeRepository($name)

Parameters

$name

addConfigSetting($name, $value)

Parameters

$name
$value

removeConfigSetting($name)

Parameters

$name

addProperty($name, $value)

Parameters

$name
$value

removeProperty($name)

Parameters

$name

addSubNode($mainNode, $name, $value)

Parameters

$mainNode
$name
$value

removeSubNode($mainNode, $name)

Parameters

$mainNode
$name

addMainKey($key, $content)

Parameters

$key
$content

removeMainKey($key)

Parameters

$key

format($data, $depth = 0)

Parameters

$data
$depth

protected detectIndenting()

protected pregMatch($re, $str, $matches = array())

Parameters

$re
$str
$matches