TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Install\FolderStructure\AbstractNode Class Reference
Inheritance diagram for TYPO3\CMS\Install\FolderStructure\AbstractNode:
TYPO3\CMS\Install\FolderStructure\DirectoryNode TYPO3\CMS\Install\FolderStructure\FileNode TYPO3\CMS\Install\FolderStructure\LinkNode TYPO3\CMS\Install\FolderStructure\RootNode

Public Member Functions

 getName ()
 
 getAbsolutePath ()
 
 isWritable ()
 

Protected Member Functions

 getTargetPermission ()
 
 setTargetPermission ($permission)
 
 getChildren ()
 
 getParent ()
 
 exists ()
 
 fixPermission ()
 
 isPermissionCorrect ()
 
 getCurrentPermission ()
 
 isWindowsOs ()
 
 getRelativePathBelowSiteRoot ($path=null)
 

Protected Attributes

 $name = ''
 
 $targetPermission = null
 
 $parent = null
 
 $children = []
 

Detailed Description

Abstract node implements common methods

Definition at line 22 of file AbstractNode.php.

Member Function Documentation

◆ exists()

◆ fixPermission()

◆ getAbsolutePath()

◆ getChildren()

TYPO3\CMS\Install\FolderStructure\AbstractNode::getChildren ( )
protected

Get children

Returns
array

Definition at line 86 of file AbstractNode.php.

References TYPO3\CMS\Install\FolderStructure\AbstractNode\$children.

◆ getCurrentPermission()

TYPO3\CMS\Install\FolderStructure\AbstractNode::getCurrentPermission ( )
protected

◆ getName()

TYPO3\CMS\Install\FolderStructure\AbstractNode::getName ( )

Get name

Returns
string Name

Definition at line 49 of file AbstractNode.php.

References TYPO3\CMS\Install\FolderStructure\AbstractNode\$name.

◆ getParent()

TYPO3\CMS\Install\FolderStructure\AbstractNode::getParent ( )
protected

◆ getRelativePathBelowSiteRoot()

◆ getTargetPermission()

TYPO3\CMS\Install\FolderStructure\AbstractNode::getTargetPermission ( )
protected

Get target permission

Make sure to call octdec on the value when passing this to chmod

Returns
string Permissions as a 4 character octal string, i.e. 2775 or 0644

Definition at line 61 of file AbstractNode.php.

References TYPO3\CMS\Install\FolderStructure\AbstractNode\$targetPermission.

Referenced by TYPO3\CMS\Install\FolderStructure\AbstractNode\fixPermission(), TYPO3\CMS\Install\FolderStructure\FileNode\getSelfStatus(), TYPO3\CMS\Install\FolderStructure\DirectoryNode\getSelfStatus(), and TYPO3\CMS\Install\FolderStructure\AbstractNode\isPermissionCorrect().

◆ isPermissionCorrect()

◆ isWindowsOs()

TYPO3\CMS\Install\FolderStructure\AbstractNode::isWindowsOs ( )
protected

◆ isWritable()

TYPO3\CMS\Install\FolderStructure\AbstractNode::isWritable ( )

Current node is writable if parent is writable

Returns
bool TRUE if parent is writable

Definition at line 116 of file AbstractNode.php.

References TYPO3\CMS\Install\FolderStructure\AbstractNode\getParent().

Referenced by TYPO3\CMS\Install\FolderStructure\FileNode\getSelfStatus().

◆ setTargetPermission()

TYPO3\CMS\Install\FolderStructure\AbstractNode::setTargetPermission (   $permission)
protected

Set target permission

Parameters
string$permissionPermissions as a 4 character octal string, i.e. 2775 or 0644
Returns
void

Definition at line 73 of file AbstractNode.php.

Referenced by TYPO3\CMS\Install\FolderStructure\RootNode\__construct(), TYPO3\CMS\Install\FolderStructure\DirectoryNode\__construct(), and TYPO3\CMS\Install\FolderStructure\FileNode\__construct().

Member Data Documentation

◆ $children

TYPO3\CMS\Install\FolderStructure\AbstractNode::$children = []
protected

◆ $name

◆ $parent

◆ $targetPermission

TYPO3\CMS\Install\FolderStructure\AbstractNode::$targetPermission = null
protected