Function Resource_fs_base->_default_property_int_modeavg
Definitions
sources/resource_fs_base_class.php
- Find a default property, defaulting to the average of what is there already, or the given default if really necessary.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: int
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$properties | array | required parameter | N/A | N/A | The properties |
$property | ID_TEXT | required parameter | N/A | N/A | The property |
$table | ID_TEXT | required parameter | N/A | N/A | The table to average within |
$default | integer | required parameter | N/A | N/A | The last-resort default |
$db_property | ?ID_TEXT | Null | N/A | N/A | The database property (null: same as $property) |
Return
- The value
- Type: integer
- Set: N/A
- Range: N/A