![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct (array $structure, NodeInterface $parent=null) | |
getStatus () | |
fix () | |
![]() | |
getName () | |
getAbsolutePath () | |
isWritable () | |
![]() | |
getName () | |
getAbsolutePath () | |
isWritable () | |
Protected Member Functions | |
fixSelf () | |
createFile () | |
getSelfStatus () | |
isContentCorrect () | |
setContent () | |
isFile () | |
![]() | |
getTargetPermission () | |
setTargetPermission ($permission) | |
getChildren () | |
getParent () | |
exists () | |
fixPermission () | |
isPermissionCorrect () | |
getCurrentPermission () | |
isWindowsOs () | |
getRelativePathBelowSiteRoot ($path=null) | |
Protected Attributes | |
$targetPermission = '0664' | |
$targetContent = null | |
![]() | |
$name = '' | |
$targetPermission = null | |
$parent = null | |
$children = array() | |
A file
Definition at line 22 of file FileNode.php.
__construct | ( | array | $structure, |
NodeInterface | $parent = null |
||
) |
Implement constructor
array | $structure | Structure array |
NodeInterface | $parent | Parent object |
Exception\InvalidArgumentException |
Implements NodeInterface.
Definition at line 41 of file FileNode.php.
References AbstractNode\$parent, and AbstractNode\setTargetPermission().
|
protected |
Create file if not exists
Exception |
Definition at line 166 of file FileNode.php.
References AbstractNode\exists(), AbstractNode\getAbsolutePath(), and AbstractNode\getRelativePathBelowSiteRoot().
Referenced by FileNode\fixSelf().
fix | ( | ) |
Fix structure
If there is nothing to fix, returns an empty array
Implements NodeInterface.
Definition at line 113 of file FileNode.php.
References FileNode\fixSelf().
|
protected |
Fix this node: create if not there, fix permissions
Definition at line 124 of file FileNode.php.
References FileNode\createFile(), elseif, AbstractNode\exists(), AbstractNode\fixPermission(), AbstractNode\getAbsolutePath(), AbstractNode\getRelativePathBelowSiteRoot(), FileNode\isFile(), AbstractNode\isPermissionCorrect(), and FileNode\setContent().
Referenced by FileNode\fix().
|
protected |
Get status of file
Definition at line 194 of file FileNode.php.
References elseif, AbstractNode\getAbsolutePath(), AbstractNode\getCurrentPermission(), AbstractNode\getRelativePathBelowSiteRoot(), AbstractNode\getTargetPermission(), FileNode\isContentCorrect(), FileNode\isFile(), AbstractNode\isPermissionCorrect(), and AbstractNode\isWritable().
Referenced by FileNode\getStatus().
getStatus | ( | ) |
Get own status Returns warning if file not exists Returns error if file exists but content is not as expected (can / shouldn't be fixed)
Implements NodeInterface.
Definition at line 92 of file FileNode.php.
References AbstractNode\exists(), AbstractNode\getRelativePathBelowSiteRoot(), and FileNode\getSelfStatus().
|
protected |
Compare current file content with target file content
Exception | If file does not exist |
Definition at line 246 of file FileNode.php.
References AbstractNode\getAbsolutePath().
Referenced by FileNode\getSelfStatus().
|
protected |
Checks if not is a file
Definition at line 306 of file FileNode.php.
References AbstractNode\getAbsolutePath().
Referenced by FileNode\fixSelf(), and FileNode\getSelfStatus().
|
protected |
Sets content of file to target content
Exception | If file does not exist |
Definition at line 274 of file FileNode.php.
References AbstractNode\getAbsolutePath(), and AbstractNode\getRelativePathBelowSiteRoot().
Referenced by FileNode\fixSelf().
|
protected |
Definition at line 32 of file FileNode.php.
|
protected |
Definition at line 27 of file FileNode.php.