Function __global->send_validation_request
Definitions
sources/submit.php
- Send (by e-mail) a validation request for a submitted item to the admin.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $type | ID_TEXT | No | No | required parameter | N/A | N/A | The validation request will say one of this type has been submitted. By convention it is the language string codename of what was done, e.g. ADD_DOWNLOAD |
| $table | ID_TEXT | No | No | required parameter | N/A | N/A | The table saved into |
| $non_integer_id | boolean | No | No | required parameter | N/A | N/A | Whether the ID field is not an integer |
| $id | ID_TEXT | No | No | required parameter | N/A | N/A | The validation request will say this ID has been submitted |
| $url | Tempcode | No | No | required parameter | N/A | N/A | The validation request will link to this URL |
| $member_id | ?MEMBER | No | No | Null | N/A | N/A | Member doing the submitting (null: current member) |
Preview
Code (PHP)
/**
* Send (by e-mail) a validation request for a submitted item to the admin.
*
* @param ID_TEXT $type The validation request will say one of this type has been submitted. By convention it is the language string codename of what was done, e.g. ADD_DOWNLOAD
* @param ID_TEXT $table The table saved into
* @param boolean $non_integer_id Whether the ID field is not an integer
* @param ID_TEXT $id The validation request will say this ID has been submitted
* @param Tempcode $url The validation request will link to this URL
* @param ?MEMBER $member_id Member doing the submitting (null: current member)
*/
function send_validation_request(string $type, string $table, bool $non_integer_id, string $id, object $url, ?int $member_id = null)
* Send (by e-mail) a validation request for a submitted item to the admin.
*
* @param ID_TEXT $type The validation request will say one of this type has been submitted. By convention it is the language string codename of what was done, e.g. ADD_DOWNLOAD
* @param ID_TEXT $table The table saved into
* @param boolean $non_integer_id Whether the ID field is not an integer
* @param ID_TEXT $id The validation request will say this ID has been submitted
* @param Tempcode $url The validation request will link to this URL
* @param ?MEMBER $member_id Member doing the submitting (null: current member)
*/
function send_validation_request(string $type, string $table, bool $non_integer_id, string $id, object $url, ?int $member_id = null)
