phpcr-utils/src/PHPCR/Util/Console/Helper/TreeDumper/ConsoleDumperNodeVisitor.php

Show: PublicProtectedPrivateinherited
Table of Contents
This file is part of the PHPCR Utils

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.

License
Apache Software License 2.0  
Link
http://phpcr.github.com/  

\PHPCR\Util\Console\Helper\TreeDumper\ConsoleDumperNodeVisitor

Package: Default
TODO: this should base on the TraversingItemVisitor
Parent(s)
\PHPCR\Util\Console\Helper\TreeDumper\ConsoleDumperItemVisitor
Author
Daniel Barsotti  

Properties

>VPropertyprotectedbool $identifiers
Whether to print the UUIDs or not
Details
Type
bool
>VPropertyprotectedint $level = 0
inherited
Current depth in the tree
Inherited from: \PHPCR\Util\Console\Helper\TreeDumper\ConsoleDumperItemVisitor::$$level
>VPropertyprotected\Symfony\Component\Console\Output\OutputInterface $output
inherited
Target for printing information
Inherited from: \PHPCR\Util\Console\Helper\TreeDumper\ConsoleDumperItemVisitor::$$output
Details
Type
\Symfony\Component\Console\Output\OutputInterface
Inherited_from
\PHPCR\Util\Console\Helper\TreeDumper\ConsoleDumperItemVisitor::$$output  

Methods

methodpublic__construct(\Symfony\Component\Console\Output\OutputInterface $output, bool $identifiers = false) : void

Instantiate the console dumper visitor

Parameters
NameTypeDescription
$output\Symfony\Component\Console\Output\OutputInterface
$identifiersbool

whether to output the node UUID

methodpublicsetLevel(int $level) : void
inherited

Set the current depth level for indention

Inherited from: \PHPCR\Util\Console\Helper\TreeDumper\ConsoleDumperItemVisitor::setLevel()
Parameters
NameTypeDescription
$levelint
methodpublicvisit(\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.

Parameters
NameTypeDescription
$item\PHPCR\ItemInterface

the node to visit

Throws
ExceptionDescription
\PHPCR\RepositoryExceptionif an error occurs
Documentation was generated by phpDocumentor 2.0.0a12.