Function Hook_commandr_fs_forum_groupings->find_resource_by_label
Definitions
sources/hooks/systems/commandr_fs/forum_groupings.php
- Standard Commandr-fs function for searching for a resource by label.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
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 |
$label | LONG_TEXT | No | No | required parameter | N/A | N/A | The resource label |
Returns
- A list of resource IDs
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Standard Commandr-fs function for searching for a resource by label.
*
* @param ID_TEXT $resource_type The resource type
* @param LONG_TEXT $label The resource label
* @return array A list of resource IDs
*/
public function find_resource_by_label(string $resource_type, string $label) : array
* Standard Commandr-fs function for searching for a resource by label.
*
* @param ID_TEXT $resource_type The resource type
* @param LONG_TEXT $label The resource label
* @return array A list of resource IDs
*/
public function find_resource_by_label(string $resource_type, string $label) : array