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

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

Properties

>VPropertyprotectedint $level = 0
inherited
Current depth in the tree
Inherited from: \PHPCR\Util\Console\Helper\TreeDumper\ConsoleDumperItemVisitor::$$level
>VPropertyprotectedint $maxLineLength = 120
Limit to cap lines at to avoid garbled output on long property values
Default value120Details
Type
int
>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, int $maxLineLength = null) : void

Instantiate property visitor

Parameters
NameTypeDescription
$output\Symfony\Component\Console\Output\OutputInterface
$maxLineLengthint
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 this property

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 property to visit

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