Свойство | Тип | Описание | |
---|---|---|---|
$errors | array | Errors are kept in an array and can be used later if validation fails and we want to know why | |
$message | string | This is a message that we can store why the validation failed | |
$messages | Validation messages |
Свойство | Тип | Описание | |
---|---|---|---|
$ConfigFileManager |
Метод | Описание | |
---|---|---|
__construct ( |
Construct a new permission manager | |
createRules ( ) : array | Create rules for a new permission | |
destroyPermission ( string $condition ) : boolean | array | Destroys a permission by retrieving current config contents and unsetting the key (condition) then saving the updated contents | |
storePermission ( array $input ) : boolean | array | Validates and updates a permission with the given input | |
updatePermission ( array $input ) : boolean | Validates and updates a permission with the given input | |
updateRules ( ) : array | Create rules to edit a permission |
Метод | Описание | |
---|---|---|
cleanInput ( array &$input ) : void | Recursively walks the data received from the form and cleans all duplicate fields and empty values | |
includeRedirect ( array $input, array &$permission ) : void | Recursively walks the data received from the form and cleans all duplicate fields and empty values |
public __construct ( |
||
$ConfigFileManager | ||
$Framework |
protected cleanInput ( array &$input ) : void | ||
$input | array | |
Результат | void |
public createRules ( ) : array | ||
Результат | array |
public updatePermission ( array $input ) : boolean | ||
$input | array | |
Результат | boolean |
public updateRules ( ) : array | ||
Результат | array |
public array $errors | ||
Результат | array |
public string $message | ||
Результат | string |