Source for file CallbackRegistry.php
Documentation is available at CallbackRegistry.php
// +---------------------------------------------------------------------------+
// | PEAR :: XML :: Transformer |
// +---------------------------------------------------------------------------+
// | Copyright (c) 2002-2005 Sebastian Bergmann <sb@sebastian-bergmann.de> and |
// +---------------------------------------------------------------------------+
// | This source file is subject to version 3.00 of the PHP License, |
// | that is available at http://www.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +---------------------------------------------------------------------------+
* @author Sebastian Bergmann <sb@sebastian-bergmann.de>
* @license http://www.php.net/license/3_0.txt The PHP License, Version 3.0
* @package XML_Transformer
* If TRUE, the transformation will continue recursively
* until the XML contains no more overloaded elements.
* Can be overrided on a per-element basis.
var $_recursiveOperation = TRUE;
// {{{ function XML_Transformer_CallbackRegistry($recursiveOperation)
$this->_recursiveOperation = $recursiveOperation;
// {{{ function overloadNamespace($namespacePrefix, &$object, $recursiveOperation = '')
* Overloads an XML Namespace.
'Cannot overload namespace "%s", ' .
'second parameter is not an object.',
'Cannot overload namespace "%s", ' .
'provided object was not instantiated from ' .
'a class that inherits XML_Transformer_Namespace.',
'Cannot overload namespace "%s", ' .
'method(s) "startElement" and/or "endElement" ' .
'are missing on given object.',
$this->overloadedNamespaces[$namespacePrefix]['recursiveOperation'] = is_bool($recursiveOperation) ? $recursiveOperation : $this->_recursiveOperation;
// {{{ function unOverloadNamespace($namespacePrefix)
* Reverts overloading of a given XML Namespace.
// {{{ function isOverloadedNamespace($namespacePrefix)
* Returns TRUE if a given namespace is overloaded,
// {{{ function setRecursiveOperation($recursiveOperation)
* Enables or disables the recursive operation.
if (is_bool($recursiveOperation)) {
$this->_recursiveOperation = $recursiveOperation;
// {{{ function function getLock($namespace)
* Lock all namespace handlers except a given one.
foreach ($namespacePrefixes as $namespacePrefix) {
if ($namespacePrefix != $namespace) {
// {{{ function releaseLock()
foreach ($namespacePrefixes as $namespacePrefix) {
* vim600: et sw=2 ts=2 fdm=marker
Documentation generated on Mon, 11 Mar 2019 15:48:09 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|