Function __global->get_chmod_array

Definitions

sources/file_permissions_check.php

  • Get the list of folders/files that need CHmodding for write access.Caution: this does not support contentious overrides on addon registry hooks.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$runtime boolean No No True N/A N/A Include folders/files that are created dynamically
$check_custom boolean No No True N/A N/A Whether to consider and prioritise sources_custom hooks

Returns

  • The list of paths; ** represents directory-wildcards
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the list of folders/files that need CHmodding for write access.Caution: this does not support contentious overrides on addon registry hooks.
 *
 * @param  boolean $runtime Include folders/files that are created dynamically
 * @param  boolean $check_custom Whether to consider and prioritise sources_custom hooks
 * @return array The list of paths; ** represents directory-wildcards
 */

function get_chmod_array(bool $runtime = true, bool $check_custom = true) : array