Function CMSPermissionsScannerLinux->generate_chmod_command

Definitions

sources/file_permissions_check.php

  • Generate a chmod command from differential octal permissions.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$path PATH No No required parameter N/A N/A The path the command is for
$octal integer No No required parameter N/A N/A Permissions
$operator string No No required parameter - + N/A Change operator

Returns

  • Chmod command
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Generate a chmod command from differential octal permissions.
 *
 * @param  PATH $path The path the command is for
 * @param  integer $octal Permissions
 * @param  string $operator Change operator
 * @set - +
 * @return string Chmod command
 */

public function generate_chmod_command(string $path, int $octal, string $operator) : string