Function Hook_commandr_fs_forum_groupings->_get_file_edit_date
Definitions
sources/hooks/systems/commandr_fs/forum_groupings.php
- Standard Commandr-fs date fetch function for resource-fs hooks. Defined when getting an edit date is not easy.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$row | array | No | No | required parameter | N/A | N/A | Resource row (not full, but does contain the ID) |
$category | ID_TEXT | No | No | Blank (empty string) | N/A | N/A | Parent category (blank: root / not applicable) |
Returns
- The edit date or add date, whichever is higher (null: could not find one)
- Type: ?TIME
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Standard Commandr-fs date fetch function for resource-fs hooks. Defined when getting an edit date is not easy.
*
* @param array $row Resource row (not full, but does contain the ID)
* @param ID_TEXT $category Parent category (blank: root / not applicable)
* @return ?TIME The edit date or add date, whichever is higher (null: could not find one)
*/
protected function _get_file_edit_date(array $row, string $category = '') : ?int
* Standard Commandr-fs date fetch function for resource-fs hooks. Defined when getting an edit date is not easy.
*
* @param array $row Resource row (not full, but does contain the ID)
* @param ID_TEXT $category Parent category (blank: root / not applicable)
* @return ?TIME The edit date or add date, whichever is higher (null: could not find one)
*/
protected function _get_file_edit_date(array $row, string $category = '') : ?int