Function Resource_fs_base->_integer_category
Definitions
sources/resource_fs_base_class.php
- Convert a category to an integer, defaulting to null if it is blank.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $category | ?ID_TEXT | No | No | required parameter | N/A | N/A | The category value (blank: root) (null: root) |
Returns
- The category (null: root)
- Type: ?integer
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Convert a category to an integer, defaulting to null if it is blank.
*
* @param ?ID_TEXT $category The category value (blank: root) (null: root)
* @return ?integer The category (null: root)
*/
protected function _integer_category(?string $category) : ?int
* Convert a category to an integer, defaulting to null if it is blank.
*
* @param ?ID_TEXT $category The category value (blank: root) (null: root)
* @return ?integer The category (null: root)
*/
protected function _integer_category(?string $category) : ?int

