Properties

$DEFINES

$DEFINES : 

Type

$contents

$contents : 

Type

$newline

$newline : 

Type

$indent

$indent : 

Type

Methods

__construct()

__construct(  $contents) 

Parameters

$contents

getContents()

getContents() 

addLink()

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

Parameters

$type
$package
$constraint
$sortPackages

addRepository()

addRepository(  $name,   $config) 

Parameters

$name
$config

removeRepository()

removeRepository(  $name) 

Parameters

$name

addConfigSetting()

addConfigSetting(  $name,   $value) 

Parameters

$name
$value

removeConfigSetting()

removeConfigSetting(  $name) 

Parameters

$name

addProperty()

addProperty(  $name,   $value) 

Parameters

$name
$value

removeProperty()

removeProperty(  $name) 

Parameters

$name

addSubNode()

addSubNode(  $mainNode,   $name,   $value) 

Parameters

$mainNode
$name
$value

removeSubNode()

removeSubNode(  $mainNode,   $name) 

Parameters

$mainNode
$name

addMainKey()

addMainKey(  $key,   $content) 

Parameters

$key
$content

removeMainKey()

removeMainKey(  $key) 

Parameters

$key

format()

format(  $data,   $depth) 

Parameters

$data
$depth

detectIndenting()

detectIndenting() 

pregMatch()

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

Parameters

$re
$str
$matches

sortPackages()

sortPackages(array  $packages = array()) 

Sorts packages by importance (platform packages first, then PHP dependencies) and alphabetically.

Parameters

array $packages