메소드 | 설명 | |
---|---|---|
addNodePathSegment ( string $nodePath, string $nodePathSegment ) : string | Appends the given $nodePathSegment to the $nodePath | |
explodeContextPath ( string $contextPath ) : array | Splits the given context path into relevant information, which results in an array with keys: "nodePath", "workspaceName", "dimensions" | |
generateContextPath ( string $path, string $workspaceName, array $dimensionValues = [] ) : string | Returns the given absolute node path appended with additional context information (such as the workspace name and dimensions). | |
generateRandomNodeName ( ) : string | Generates a simple random node name. | |
getNodeNameFromPath ( string $path ) : string | Get the name for a Node based on the given path. | |
getParentPath ( string $path ) : string | Get the parent path of the given Node path. | |
getPathDepth ( string $path ) : integer | Returns the depth of the given Node path. | |
getRelativePathBetween ( string $parentPath, string $subPath ) : string | Get the relative path between the given $parentPath and the given $subPath. | |
isContextPath ( string $contextPath ) : boolean | Determine if the given node path is a context path. | |
isSubPathOf ( string $path, string $possibleSubPath ) : boolean | Does $possibleSubPath begin with $path and so is a subpath or not. | |
normalizePath ( $path, string $referencePath = null ) : string | Normalizes the given node path to a reference path and returns an absolute path. | |
parseDimensionValueStringToArray ( string $dimensionValueString ) : array | ||
replaceRelativePathElements ( string $path ) : string | Replaces relative path segments ("." or ". |
public static explodeContextPath ( string $contextPath ) : array | ||
$contextPath | string | a context path including workspace and/or dimension information. |
리턴 | array | split information from the context path |
public static generateRandomNodeName ( ) : string | ||
리턴 | string |
public static getNodeNameFromPath ( string $path ) : string | ||
$path | string | |
리턴 | string |
public static getParentPath ( string $path ) : string | ||
$path | string | |
리턴 | string |
public static getPathDepth ( string $path ) : integer | ||
$path | string | |
리턴 | integer |
public static isContextPath ( string $contextPath ) : boolean | ||
$contextPath | string | |
리턴 | boolean |
public static normalizePath ( $path, string $referencePath = null ) : string | ||
$path | ||
$referencePath | string | |
리턴 | string |
public static parseDimensionValueStringToArray ( string $dimensionValueString ) : array | ||
$dimensionValueString | string | |
리턴 | array |
public static replaceRelativePathElements ( string $path ) : string | ||
$path | string | absolute node path with relative path elements ("." or ".."). |
리턴 | string |