phpcr-utils/src/PHPCR/Util/Console/Command/RegisterNodeTypesCommand.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\Command\RegisterNodeTypesCommand

Package: Default
Command to load and register a node type defined in a common nodetype definition (CND) file.

See the link below for the cnd definition.

Parent(s)
\Symfony\Component\Console\Command\Command
Author
Uwe Jäger  
Link
http://jackrabbit.apache.org/node-type-notation.html  

Methods

methodprotectedconfigure() : void

{@inheritDoc}

methodprotectedexecute( $input,  $output) : void

{@inheritDoc}

Parameters
NameTypeDescription
$input
$output
methodprotectedupdateFromCnd(\Symfony\Component\Console\Output\OutputInterface $output, \PHPCR\SessionInterface $session, string $cnd, bool $allowUpdate) : void

Actually do the update.

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

the console output stream

$session\PHPCR\SessionInterface

the PHPCR session to talk to

$cndstring

the compact namespace and node type definition in string form

$allowUpdatebool

whether to allow updating existing node types.

Throws
ExceptionDescription
\PHPCR\RepositoryExceptionon other errors
Documentation was generated by phpDocumentor 2.0.0a12.