phpcr-utils/src/PHPCR/Util/Console/Helper/TreeDumper/ConsoleDumperItemVisitor.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\ConsoleDumperItemVisitor

Package: Default
TODO: this should base on the TraversingItemVisitor
Implements
\PHPCR\ItemVisitorInterface
Children
\PHPCR\Util\Console\Helper\TreeDumper\ConsoleDumperNodeVisitor
\PHPCR\Util\Console\Helper\TreeDumper\ConsoleDumperPropertyVisitor
Author
Daniel Barsotti  

Properties

>VPropertyprotectedint $level = 0
Current depth in the tree
Default value0Details
Type
int
>VPropertyprotected\Symfony\Component\Console\Output\OutputInterface $output
Target for printing information
Details
Type
\Symfony\Component\Console\Output\OutputInterface

Methods

methodpublic__construct(\Symfony\Component\Console\Output\OutputInterface $output) : void

Instantiate the console dumper visitor

Parameters
NameTypeDescription
$output\Symfony\Component\Console\Output\OutputInterface
methodpublicsetLevel(int $level) : void

Set the current depth level for indention

Parameters
NameTypeDescription
$levelint
methodpublicvisit(\PHPCR\ItemInterface $item) : void
inherited

This method is called when the ItemVisitor is passed to the accept method of a Node or Property.

Inherited from: \PHPCR\ItemVisitorInterface::visit()

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

a node or property accepting this visitor

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