phpcr-utils/src/PHPCR/Util/Console/Helper/TreeDumper/ConsoleDumperPropertyVisitor.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\ConsoleDumperPropertyVisitor
Properties
int $level = 0
0
Details- Type
- int
- Inherited_from
- \PHPCR\Util\Console\Helper\TreeDumper\ConsoleDumperItemVisitor::$$level
int $maxLineLength = 120
120
Details- Type
- int
\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, int $maxLineLength = null) : void
Instantiate property visitor
Name | Type | Description |
---|---|---|
$output | \Symfony\Component\Console\Output\OutputInterface | |
$maxLineLength | int |
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 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.
Name | Type | Description |
---|---|---|
$item | \PHPCR\ItemInterface | the property to visit |
Exception | Description |
---|---|
\PHPCR\RepositoryException | if an error occurs |