public setRule ( $name, $event, $table, $where, $instead, $type, $action ) : -1 | ||
$name | The name of the new rule | |
$event | SELECT, INSERT, UPDATE or DELETE | |
$table | Table on which to create the rule | |
$where | When to execute the rule, '' indicates always | |
$instead | True if an INSTEAD rule, false otherwise | |
$type | NOTHING for a do nothing rule, SOMETHING to use given action | |
$action | The action to take | |
Результат | -1 |