Log an operation into the log table.
public static insert ( string $Operation, string $RecordType, array $Data, array $Options = [] ) : integer | false | ||
$Operation | string | The operation being performed. This is usually one of: - Delete: The record has been deleted. - Edit: The record has been edited. - Spam: The record has been marked spam. - Moderate: The record requires moderation. - Pending: The record needs pre-moderation. |
$RecordType | string | The type of record being logged. This usually correspond to the tablename of the record. |
$Data | array | The record data. - If you are logging just one row then pass the row as an array. - You can pass an additional _New element to tell the logger what the new data is. |
$Options | array | Additional options to affect the insert. |
리턴 | integer | false | The log ID or **false** if there was a problem. |