Function __global->get_resource_commandr_fs_object

Definitions

sources/resource_fs.php

  • Get the Commandr-fs object for a resource type.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$resource_type ID_TEXT No No required parameter N/A N/A The resource type

Returns

  • The object (null: could not get one)
  • Type: ?object
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the Commandr-fs object for a resource type.
 *
 * @param  ID_TEXT $resource_type The resource type
 * @return ?object The object (null: could not get one)
 */

function get_resource_commandr_fs_object(string $resource_type) : ?object