‪TYPO3CMS  10.4
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)
 
FlashMessage[] getStatus ()
 
bool isWritable ()
 
FlashMessage[] fix ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Install\FolderStructure\AbstractNode
string getName ()
 
string getAbsolutePath ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Install\FolderStructure\NodeInterface
string getName ()
 
string getAbsolutePath ()
 

Protected Member Functions

FlashMessage[] fixSelf ()
 
FlashMessage createDirectory ()
 
FlashMessage[] getSelfStatus ()
 
FlashMessage[] getChildrenStatus ()
 
bool canFileBeCreated ()
 
bool isDirectory ()
 
 createChildren (array $structure)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Install\FolderStructure\AbstractNode
string getTargetPermission ()
 
 setTargetPermission ($permission)
 
array getChildren ()
 
NodeInterface null getParent ()
 
bool exists ()
 
FlashMessage fixPermission ()
 
bool isPermissionCorrect ()
 
string getCurrentPermission ()
 
bool isWindowsOs ()
 
string getRelativePathBelowSiteRoot ($path=null)
 

Protected Attributes

string $targetPermission = '2775'
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Install\FolderStructure\AbstractNode
string $name = ''
 
string null $targetPermission
 
NodeInterface null $parent
 
array $children = array( )
 

Detailed Description

A directory

This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.

Definition at line 26 of file DirectoryNode.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ canFileBeCreated()

bool 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 255 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().

◆ createChildren()

TYPO3\CMS\Install\FolderStructure\DirectoryNode::createChildren ( array  $structure)
protected

Create children nodes - done in directory and root node

Parameters
array$structure‪Array of children
Exceptions
Exception

Definition at line 282 of file DirectoryNode.php.

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

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

◆ createDirectory()

◆ fix()

FlashMessage [] TYPO3\CMS\Install\FolderStructure\DirectoryNode::fix ( )

Fix structure

If there is nothing to fix, returns an empty array

Returns
‪FlashMessage[]

Implements TYPO3\CMS\Install\FolderStructure\NodeInterface.

Definition at line 112 of file DirectoryNode.php.

References TYPO3\CMS\Install\FolderStructure\DirectoryNode\fixSelf().

◆ fixSelf()

◆ getChildrenStatus()

FlashMessage [] TYPO3\CMS\Install\FolderStructure\DirectoryNode::getChildrenStatus ( )
protected

Get status of children

Returns
‪FlashMessage[]

Definition at line 240 of file DirectoryNode.php.

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

◆ getSelfStatus()

◆ getStatus()

◆ isDirectory()

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

Checks if not is a directory

Returns
‪bool True if node is a directory

Definition at line 270 of file DirectoryNode.php.

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

Referenced by TYPO3\CMS\Install\FolderStructure\DirectoryNode\fixSelf(), and TYPO3\CMS\Install\FolderStructure\DirectoryNode\getSelfStatus().

◆ isWritable()

bool TYPO3\CMS\Install\FolderStructure\DirectoryNode::isWritable ( )

Create a test file and delete again if directory exists

Returns
‪bool TRUE if test file creation was successful

Reimplemented from TYPO3\CMS\Install\FolderStructure\AbstractNode.

Definition at line 94 of file DirectoryNode.php.

References TYPO3\CMS\Install\FolderStructure\DirectoryNode\canFileBeCreated(), and TYPO3\CMS\Install\FolderStructure\AbstractNode\exists().

Referenced by TYPO3\CMS\Install\FolderStructure\DirectoryNode\fixSelf(), and TYPO3\CMS\Install\FolderStructure\DirectoryNode\getSelfStatus().

Member Data Documentation

◆ $targetPermission

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

Default for directories is octal 02775 == decimal 1533

Definition at line 30 of file DirectoryNode.php.