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

Public Member Functions

 __construct (array $structure, NodeInterface $parent=null)
 
 getStatus ()
 
 isWritable ()
 
- Public Member Functions inherited from TYPO3\CMS\Install\FolderStructure\AbstractNode
 getName ()
 
 getAbsolutePath ()
 
 isWritable ()
 
- Public Member Functions inherited from TYPO3\CMS\Install\FolderStructure\NodeInterface
 getName ()
 
 getAbsolutePath ()
 
 fix ()
 

Protected Member Functions

 fixSelf ()
 
 createDirectory ()
 
 getSelfStatus ()
 
 canFileBeCreated ()
 
 isDirectory ()
 
- Protected Member Functions inherited from TYPO3\CMS\Install\FolderStructure\AbstractNode
 getTargetPermission ()
 
 setTargetPermission ($permission)
 
 getChildren ()
 
 getParent ()
 
 exists ()
 
 fixPermission ()
 
 isPermissionCorrect ()
 
 getCurrentPermission ()
 
 isWindowsOs ()
 
 getRelativePathBelowSiteRoot ($path=null)
 

Protected Attributes

 $targetPermission = '2775'
 
- Protected Attributes inherited from TYPO3\CMS\Install\FolderStructure\AbstractNode
 $name = ''
 
 $targetPermission = null
 
 $parent = null
 
 $children = []
 

Detailed Description

A directory

Definition at line 23 of file DirectoryNode.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Install\FolderStructure\DirectoryNode::__construct ( array  $structure,
NodeInterface  $parent = null 
)

Implement constructor

Parameters
array$structureStructure array
NodeInterface$parentParent object
Exceptions
Exception

Implements TYPO3\CMS\Install\FolderStructure\NodeInterface.

Definition at line 37 of file DirectoryNode.php.

References TYPO3\CMS\Install\FolderStructure\AbstractNode\$parent, and TYPO3\CMS\Install\FolderStructure\AbstractNode\setTargetPermission().

Member Function Documentation

◆ canFileBeCreated()

TYPO3\CMS\Install\FolderStructure\DirectoryNode::canFileBeCreated ( )
protected

Create a test file and delete again - helper for isWritable

Returns
bool TRUE if test file creation was successful

Definition at line 254 of file DirectoryNode.php.

References TYPO3\CMS\Install\FolderStructure\AbstractNode\getAbsolutePath(), and TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

Referenced by TYPO3\CMS\Install\FolderStructure\DirectoryNode\isWritable().

◆ createDirectory()

TYPO3\CMS\Install\FolderStructure\DirectoryNode::createDirectory ( )
protected

◆ fixSelf()

◆ getSelfStatus()

◆ getStatus()

TYPO3\CMS\Install\FolderStructure\DirectoryNode::getStatus ( )

◆ isDirectory()

TYPO3\CMS\Install\FolderStructure\DirectoryNode::isDirectory ( )
protected

◆ isWritable()

Member Data Documentation

◆ $targetPermission

TYPO3\CMS\Install\FolderStructure\DirectoryNode::$targetPermission = '2775'
protected

Definition at line 28 of file DirectoryNode.php.