Function Hook_commandr_fs_forum_groupings->get_resources_count
Definitions
sources/hooks/systems/commandr_fs/forum_groupings.php
- Standard Commandr-fs function for seeing how many resources are. Useful for determining whether to do a full rebuild.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
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
- How many resources there are
- Type: integer
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Standard Commandr-fs function for seeing how many resources are. Useful for determining whether to do a full rebuild.
*
* @param ID_TEXT $resource_type The resource type
* @return integer How many resources there are
*/
public function get_resources_count(string $resource_type) : int
* Standard Commandr-fs function for seeing how many resources are. Useful for determining whether to do a full rebuild.
*
* @param ID_TEXT $resource_type The resource type
* @return integer How many resources there are
*/
public function get_resources_count(string $resource_type) : int