phpcr-utils/src/PHPCR/Util/Console/Helper/TreeDumper/ConsoleDumperNodeVisitor.php
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
\PHPCR\Util\Console\Helper\TreeDumper\ConsoleDumperNodeVisitor
Properties
int $level = 0
0
Details- Type
- int
- Inherited_from
- \PHPCR\Util\Console\Helper\TreeDumper\ConsoleDumperItemVisitor::$$level
\Symfony\Component\Console\Output\OutputInterface $output
- Type
- \Symfony\Component\Console\Output\OutputInterface
- Inherited_from
- \PHPCR\Util\Console\Helper\TreeDumper\ConsoleDumperItemVisitor::$$output
Methods
__construct(\Symfony\Component\Console\Output\OutputInterface $output, bool $identifiers = false) : void
Instantiate the console dumper visitor
Name | Type | Description |
---|---|---|
$output | \Symfony\Component\Console\Output\OutputInterface | |
$identifiers | bool | whether to output the node UUID |
setLevel(int $level) : void
Set the current depth level for indention
Inherited from: \PHPCR\Util\Console\Helper\TreeDumper\ConsoleDumperItemVisitor::setLevel()Name | Type | Description |
---|---|---|
$level | int |
visit(\PHPCR\ItemInterface $item) : void
Print information about the visited node.
If this method throws an exception the visiting process is aborted.
PHPCR Note: you need to distinguish between Node and Property objects being visited in your implementation.
Name | Type | Description |
---|---|---|
$item | \PHPCR\ItemInterface | the node to visit |
Exception | Description |
---|---|
\PHPCR\RepositoryException | if an error occurs |