Function __global->_check_id_match

Definitions

sources/resource_fs.php

  • Find if a resource matches search parameters.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$commandr_fs_ob object No No required parameter N/A N/A Commandr-fs/Resource-fs object
$resource_type ID_TEXT No No required parameter N/A N/A The resource type
$resource_id ID_TEXT No No required parameter N/A N/A The resource ID
$subpath ?string No No required parameter N/A N/A The subpath (null: don't care). It may end in "/*" if you want to look for a match under a certain directory

Returns

  • Whether it matches
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find if a resource matches search parameters.
 *
 * @param  object $commandr_fs_ob Commandr-fs/Resource-fs object
 * @param  ID_TEXT $resource_type The resource type
 * @param  ID_TEXT $resource_id The resource ID
 * @param  ?string $subpath The subpath (null: don't care). It may end in "/*" if you want to look for a match under a certain directory
 * @return boolean Whether it matches
 */

function _check_id_match(object $commandr_fs_ob, string $resource_type, string $resource_id, ?string $subpath) : bool