Paperyard
Archive.php
Go to the documentation of this file.
1 <?php
2 
4 
5 class Archive extends Rule
6 {
8  protected $table = 'rule_archive';
9 
11  protected $fillable = ['toFolder', 'company', 'subject', 'recipient', 'tags', 'isActive'];
12 
14  protected $rules = [
15  'required' => [
16  ['toFolder'],
17  ['company'],
18  ['subject'],
19  ['recipient'],
20  ['tags']
21  ],
22  'regex' => [
23  ['foundWords', parent::TAG_REGEX],
24  ['fileCompany', parent::TAG_REGEX],
25  ['tags', parent::TAG_REGEX]
26  ],
27  'integer' => [
28  ['companyScore']
29  ]
30  ];
31 
33  protected $labels = [
34  'foundWords' => 'Needles',
35  'fileCompany' => 'Company',
36  'companyScore' => 'Score',
37  'tags' => 'Tags',
38  'isActive' => 'Status'
39  ];
40 }