phpcr/src/PHPCR/Version/OnParentVersionAction.php

Show: PublicProtectedPrivateinherited
Table of Contents
This file is part of the PHPCR API and was originally ported from the Java JCR API to PHP by Karsten Dambekalns for the FLOW3 project.

Copyright 2008-2011 Karsten Dambekalns karsten@typo3.org

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\Version\OnParentVersionAction

Package: Default
The possible actions specified by the onParentVersion attribute in a property definition within a node type definition.

This interface defines the following actions:

  • COPY
  • VERSION
  • INITIALIZE
  • COMPUTE
  • IGNORE
  • ABORT

Every item (node or property) in the repository has a status indicator that governs what happens to that item when its parent node is versioned. This status is defined by the onParentVersion attribute in the PropertyDefinition or NodeDefinition that applies to the item in question.

Api
 
Author
Karsten Dambekalns  

Constants

>VConstant  COPY = 1
The COPY action constant.
Api
 
>VConstant  VERSION = 2
The VERSION action constant.
Api
 
>VConstant  INITIALIZE = 3
The INITIALIZE action constant.
Api
 
>VConstant  COMPUTE = 4
The COMPUTE action constant.
Api
 
>VConstant  IGNORE = 5
The IGNORE action constant.
Api
 
>VConstant  ABORT = 6
The ABORT action constant.
Api
 
>VConstant  ACTIONNAME_COPY = 'COPY'
The name of the COPY on-version action, as used in serialization.
Api
 
>VConstant  ACTIONNAME_VERSION = 'VERSION'
The name of the VERSION on-version action, as used in serialization.
Api
 
>VConstant  ACTIONNAME_INITIALIZE = 'INITIALIZE'
The name of the INITIALIZE on-version action, as used in serialization.
Api
 
>VConstant  ACTIONNAME_COMPUTE = 'COMPUTE'
The name of the COMPUTE on-version action, as used in serialization.
Api
 
>VConstant  ACTIONNAME_IGNORE = 'IGNORE'
The name of the IGNORE on-version action, as used in serialization.
Api
 
>VConstant  ACTIONNAME_ABORT = 'ABORT'
The name of the ABORT on-version action, as used in serialization.
Api
 

Methods

methodprivate__construct() : void

Make instantiation impossible.

..

methodpublicnameFromValue(integer $action) : string
static

Returns the name of the specified action, as used in serialization.

Parameters
NameTypeDescription
$actioninteger

the on-version action

Returns
TypeDescription
stringthe name of the specified action
Details
Api
 
methodpublicvalueFromName(string $name) : int
static

Returns the numeric constant value of the on-version action with the specified name.

Parameters
NameTypeDescription
$namestring

the name of the on-version action

Returns
TypeDescription
intthe numeric constant value
Details
Api
 
Documentation was generated by phpDocumentor 2.0.0a12.