1 | <?php |
||
35 | abstract class BaseAdditionalAccountModel extends BaseBlameableModel |
||
36 | { |
||
37 | use AdditionalAccountTrait; |
||
38 | |||
39 | public $idAttributeLength = 8; |
||
40 | public $updatedByAttribute = false; |
||
41 | public $contentAttribute = 'content'; // Account type, types defined by yourself. |
||
42 | public $contentAttributeRule = ['integer', 'min' => 0]; |
||
43 | public $contentTypeAttribute = 'source'; // Where did this account origin from, defined by yourself. |
||
44 | public $contentTypes = [ |
||
45 | 0 => 'self', |
||
46 | 1 => 'third-party', |
||
47 | ]; |
||
48 | public $confirmationAttribute = 'confirmed'; |
||
49 | public $confirmCodeAttribute = false; |
||
50 | public $descriptionAttribute = 'description'; |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | 6 | public function init() |
|
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | 6 | public function rules() |
|
73 | } |
||
74 |