Function CMSPermissionsScannerSimplified->process_node
Definitions
sources/file_permissions_check.php
- Process a file or directory for permission checks.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$path | PATH | No | No | required parameter | N/A | N/A | The absolute path |
$rel_path | PATH | No | No | required parameter | N/A | N/A | The relative path to the file |
$is_directory | boolean | No | No | required parameter | N/A | N/A | Whether this is a directory |
&$paths | array | Yes | No | [] | N/A | N/A | Paths with issues (inverse list), returned by reference |
&$found_any_issue | boolean | Yes | No | False | N/A | N/A | Whether any issues were found, returned by reference |
Returns
- A tuple: Messages to show, Commands to run, Paths with issues
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Process a file or directory for permission checks.
*
* @param PATH $path The absolute path
* @param PATH $rel_path The relative path to the file
* @param boolean $is_directory Whether this is a directory
* @param array $paths Paths with issues (inverse list), returned by reference
* @param boolean $found_any_issue Whether any issues were found, returned by reference
* @return array A tuple: Messages to show, Commands to run, Paths with issues
*/
protected function process_node(string $path, string $rel_path, bool $is_directory, array &$paths = [], bool &$found_any_issue = false) : array
* Process a file or directory for permission checks.
*
* @param PATH $path The absolute path
* @param PATH $rel_path The relative path to the file
* @param boolean $is_directory Whether this is a directory
* @param array $paths Paths with issues (inverse list), returned by reference
* @param boolean $found_any_issue Whether any issues were found, returned by reference
* @return array A tuple: Messages to show, Commands to run, Paths with issues
*/
protected function process_node(string $path, string $rel_path, bool $is_directory, array &$paths = [], bool &$found_any_issue = false) : array