Function __global->_log_hack_attack_matches
Definitions
sources/failure.php
- Find if a hackattack specifier matches.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $specifier | array | No | No | required parameter | N/A | N/A | The hackattack specifier |
| $reason | ID_TEXT | No | No | required parameter | N/A | N/A | The reason for the hack-attack. This has to be a language string codename |
| $reason_param_a | SHORT_TEXT | No | No | required parameter | N/A | N/A | A parameter for the hack-attack language string (this should be based on a unique ID, preferably) |
| $reason_param_b | SHORT_TEXT | No | No | required parameter | N/A | N/A | A more illustrative parameter, which may be anything (e.g. a title) |
Returns
- Whether it matches
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find if a hackattack specifier matches.
*
* @param array $specifier The hackattack specifier
* @param ID_TEXT $reason The reason for the hack-attack. This has to be a language string codename
* @param SHORT_TEXT $reason_param_a A parameter for the hack-attack language string (this should be based on a unique ID, preferably)
* @param SHORT_TEXT $reason_param_b A more illustrative parameter, which may be anything (e.g. a title)
* @return boolean Whether it matches
*/
function _log_hack_attack_matches(array $specifier, string $reason, string $reason_param_a, string $reason_param_b) : bool
* Find if a hackattack specifier matches.
*
* @param array $specifier The hackattack specifier
* @param ID_TEXT $reason The reason for the hack-attack. This has to be a language string codename
* @param SHORT_TEXT $reason_param_a A parameter for the hack-attack language string (this should be based on a unique ID, preferably)
* @param SHORT_TEXT $reason_param_b A more illustrative parameter, which may be anything (e.g. a title)
* @return boolean Whether it matches
*/
function _log_hack_attack_matches(array $specifier, string $reason, string $reason_param_a, string $reason_param_b) : bool

