PHP Class App\Services\Form\Setting\MailSettingForm

Afficher le fichier Open project: ngmy/webloyer Class Usage Examples

Protected Properties

Свойство Type Description
$setting
$validator

Méthodes publiques

Méthode Description
__construct ( App\Services\Validation\ValidableInterface $validator, App\Repositories\Setting\SettingInterface $setting ) : void Create a new form service instance.
errors ( ) : array Return validation errors.
update ( array $input ) : boolean Update an existing setting.

Méthodes protégées

Méthode Description
valid ( array $input ) : boolean Test whether form validator passes.

Method Details

__construct() public méthode

Create a new form service instance.
public __construct ( App\Services\Validation\ValidableInterface $validator, App\Repositories\Setting\SettingInterface $setting ) : void
$validator App\Services\Validation\ValidableInterface
$setting App\Repositories\Setting\SettingInterface
Résultat void

errors() public méthode

Return validation errors.
public errors ( ) : array
Résultat array

update() public méthode

Update an existing setting.
public update ( array $input ) : boolean
$input array Data to update a setting
Résultat boolean

valid() protected méthode

Test whether form validator passes.
protected valid ( array $input ) : boolean
$input array
Résultat boolean

Property Details

$setting protected_oe property

protected $setting

$validator protected_oe property

protected $validator