Свойство | Тип | Описание | |
---|---|---|---|
$_classes | array | Class dependencies. | |
$_secret | string | wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY |
Метод | Описание | |
---|---|---|
check ( array | object $data ) : boolean | Validates form data using an embedded form signature string. The form signature string must be embedded in security.signature alongside the other data to check against. | |
config ( array $config = [] ) : array | void | Configures the class or retrieves current class configuration. | |
key ( array $data ) : string | Generates form signature string from form data. |
Метод | Описание | |
---|---|---|
_compile ( array $fields, array $locked, array $excluded ) : string | Compiles form signature string. Will normalize input data and urlencode() it. | |
_parse ( string $string ) : array | Parses form signature string. | |
_signature ( string $data ) : string | Calculates signature over given data. |
protected static _signature ( string $data ) : string | ||
$data | string | The data to calculate the signature for. |
Результат | string | The signature. |
public static config ( array $config = [] ) : array | void | ||
$config | array | Available configuration options are: - `'classes'` _array_: May be used to inject dependencies. - `'secret'` _string_: *Must* be provided. |
Результат | array | void | If `$config` is empty, returns an array with the current configurations. |
protected static array $_classes | ||
Результат | array |
protected static string $_secret | ||
Результат | string |