![]() |
Bearsampp 2026.9.23
|
Public Member Functions | |
| __construct (&$packagefile) | |
| _addDir (&$dirs, $dir, $file=null, $attributes=null, $tasks=null) | |
| _createXMLTag ($tag, $replaceEntities=true) | |
| _deFormat (&$dirs) | |
| _formatDir (&$dirs) | |
| _recursiveXmlFilelist ($list) | |
| _serializeArray (&$array, $tagName=null, $attributes=array()) | |
| _serializeValue ($value, $tagName=null, $attributes=array()) | |
| getPackagerVersion () | |
| getSerializedData () | |
| resetOptions () | |
| serialize ($data, $options=null) | |
| setOption ($name, $value) | |
| setOptions ($options) | |
| toPackageFile ($where=null, $state=PEAR_VALIDATE_NORMAL, $name='package.xml') | |
| toTgz (&$packager, $compress=true, $where=null) | |
| toTgz2 (&$packager, &$pf1, $compress=true, $where=null) | |
| & | toV2 () |
| toXml ($state=PEAR_VALIDATE_NORMAL, $options=array()) | |
Data Fields | |
| $_defaultOptions | |
| $_packagefile | |
| $_serializedData = null | |
| $_tagDepth = 0 | |
| $options = array() | |
| __construct | ( | & | $packagefile | ) |
| _addDir | ( | & | $dirs, |
| $dir, | |||
| $file = null, | |||
| $attributes = null, | |||
| $tasks = null ) |
Definition at line 430 of file v2.php.
References _addDir().
Referenced by _addDir(), and _recursiveXmlFilelist().
| _createXMLTag | ( | $tag, | |
| $replaceEntities = true ) |
create a tag from an array this method awaits an array in the following format array( 'qname' => $tagName, 'attributes' => array(), 'content' => $content, // optional 'namespace' => $namespace // optional 'namespaceUri' => $namespaceUri // optional )
@access private
| array | $tag | tag definition |
| boolean | $replaceEntities | whether to replace XML entities in content or not |
Definition at line 846 of file v2.php.
References _serializeArray(), and XML_UTIL_ENTITIES_XML.
Referenced by _serializeArray(), and _serializeValue().
| _deFormat | ( | & | $dirs | ) |
Definition at line 472 of file v2.php.
References _deFormat().
Referenced by _deFormat(), and _recursiveXmlFilelist().
| _formatDir | ( | & | $dirs | ) |
Definition at line 448 of file v2.php.
References _formatDir().
Referenced by _formatDir(), and _recursiveXmlFilelist().
| _recursiveXmlFilelist | ( | $list | ) |
Definition at line 409 of file v2.php.
References _addDir(), _deFormat(), and _formatDir().
Referenced by toXml().
| _serializeArray | ( | & | $array, |
| $tagName = null, | |||
| $attributes = array() ) |
serialize an array
@access private
| array | $array | array to serialize |
| string | $tagName | name of the root tag |
| array | $attributes | attributes for the root tag |
check for special attributes
check for special content
Definition at line 647 of file v2.php.
References _createXMLTag(), and _serializeValue().
Referenced by _createXMLTag(), _serializeValue(), and serialize().
| _serializeValue | ( | $value, | |
| $tagName = null, | |||
| $attributes = array() ) |
serialize any value
This method checks for the type of the value and calls the appropriate method
@access private
| mixed | $value | |
| string | $tagName | |
| array | $attributes |
Definition at line 620 of file v2.php.
References _createXMLTag(), and _serializeArray().
Referenced by _serializeArray().
| getPackagerVersion | ( | ) |
| getSerializedData | ( | ) |
get the result of the serialization
@access public
Definition at line 601 of file v2.php.
References $_serializedData.
| resetOptions | ( | ) |
reset all options to default options
@access public
Definition at line 509 of file v2.php.
References $_defaultOptions.
| serialize | ( | $data, | |
| $options = null ) |
serialize data
@access public
| mixed | $data | data to serialize |
Definition at line 547 of file v2.php.
References $_serializedData, $options, and _serializeArray().
Referenced by toXml().
| setOption | ( | $name, | |
| $value ) |
| setOptions | ( | $options | ) |
sets several options at once
You can use this method if you do not want to set all options in the constructor
@access public
Definition at line 535 of file v2.php.
References $options.
| toPackageFile | ( | $where = null, | |
| $state = PEAR_VALIDATE_NORMAL, | |||
| $name = 'package.xml' ) |
Definition at line 302 of file v2.php.
References PEAR_VALIDATE_NORMAL, and toXml().
Referenced by toTgz2().
| toTgz | ( | & | $packager, |
| $compress = true, | |||
| $where = null ) |
| PEAR_Packager | |
| bool | generate a .tgz or a .tar |
| string|null | temporary directory to package in |
Definition at line 123 of file v2.php.
References toTgz2().
| toTgz2 | ( | & | $packager, |
| & | $pf1, | ||
| $compress = true, | |||
| $where = null ) |
Package up both a package.xml and package2.xml for the same release
| PEAR_Packager | |
| PEAR_PackageFile_v1 | |
| bool | generate a .tgz or a .tar |
| string|null | temporary directory to package in |
Definition at line 136 of file v2.php.
References $raw, PEAR_ERROR_RETURN, PEAR_TASK_PACKAGE, PEAR_VALIDATE_PACKAGING, and toPackageFile().
Referenced by toTgz().
| & toV2 | ( | ) |
| toXml | ( | $state = PEAR_VALIDATE_NORMAL, | |
| $options = array() ) |
Return an XML document based on the package info (as returned by the PEAR_Common::infoFrom* methods).
Definition at line 340 of file v2.php.
References $_defaultOptions, $options, _recursiveXmlFilelist(), PEAR_VALIDATE_NORMAL, PEAR_VALIDATE_PACKAGING, and serialize().
Referenced by toPackageFile().
| $_defaultOptions |
default options for the serialization @access private
Definition at line 44 of file v2.php.
Referenced by resetOptions(), and toXml().
| $_serializedData = null |
serilialized representation of the data
Definition at line 94 of file v2.php.
Referenced by getSerializedData(), and serialize().
| $options = array() |
options for the serialization @access private
Definition at line 82 of file v2.php.
Referenced by serialize(), setOptions(), and toXml().