Function Standard_crud_module->choose_feedback_fields_statistically
Definitions
sources/crud_module.php
- Statistically work out defaults for feedback fields, if not currently set.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$allow_rating | ?BINARY | No | No | required parameter | N/A | N/A | Whether rating is allowed (null: decide statistically, based on existing choices) |
$allow_comments | ?SHORT_INTEGER | No | No | required parameter | N/A | N/A | Whether comments are allowed (0=no, 1=yes, 2=review style) (null: decide statistically, based on existing choices) |
$allow_trackbacks | ?BINARY | No | No | required parameter | N/A | N/A | Whether trackbacks are allowed (null: decide statistically, based on existing choices) |
Returns
- Array of all input parameters, converted
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Statistically work out defaults for feedback fields, if not currently set.
*
* @param ?BINARY $allow_rating Whether rating is allowed (null: decide statistically, based on existing choices)
* @param ?SHORT_INTEGER $allow_comments Whether comments are allowed (0=no, 1=yes, 2=review style) (null: decide statistically, based on existing choices)
* @param ?BINARY $allow_trackbacks Whether trackbacks are allowed (null: decide statistically, based on existing choices)
* @return array Array of all input parameters, converted
*/
public function choose_feedback_fields_statistically(?int $allow_rating, ?int $allow_comments, ?int $allow_trackbacks) : array
* Statistically work out defaults for feedback fields, if not currently set.
*
* @param ?BINARY $allow_rating Whether rating is allowed (null: decide statistically, based on existing choices)
* @param ?SHORT_INTEGER $allow_comments Whether comments are allowed (0=no, 1=yes, 2=review style) (null: decide statistically, based on existing choices)
* @param ?BINARY $allow_trackbacks Whether trackbacks are allowed (null: decide statistically, based on existing choices)
* @return array Array of all input parameters, converted
*/
public function choose_feedback_fields_statistically(?int $allow_rating, ?int $allow_comments, ?int $allow_trackbacks) : array