PluginProbe
Metricool – Social media and site statistics / 2.1.1
Metricool – Social media and site statistics v2.1.1
2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.27 trunk
metricool / config / user_settings.php

user_settings.php in Metricool – Social media and site statistics 2.1.1, at config/user_settings.php

73 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use Metricool\Features\UserSettings\Rules\FirstDayOfWeekRule;
4 use Metricool\Features\UserSettings\Rules\SupportedLanguageRule;
5 use Metricool\Features\UserSettings\Rules\TimezoneRule;
6
7 return [
8 'fields' => [
9 'blogId' => [
10 'storage' => 'default',
11 'validators' => ['string'],
12 ],
13 'name' => [
14 'section' => 'personal',
15 'storage' => 'metricool',
16 'validators' => ['required', 'string'],
17 ],
18 'lastName' => [
19 'section' => 'personal',
20 'storage' => 'metricool',
21 'validators' => ['string'],
22 ],
23 'language' => [
24 'section' => 'preferences',
25 'storage' => 'metricool',
26 'validators' => [SupportedLanguageRule::class],
27 ],
28 'timezone' => [
29 'section' => 'preferences',
30 'storage' => 'metricool',
31 'validators' => [TimezoneRule::class],
32 ],
33 'firstDayOfTheWeek' => [
34 'section' => 'preferences',
35 'storage' => 'metricool',
36 'validators' => [FirstDayOfWeekRule::class],
37 ],
38 'sendToAlternativeEmail' => [
39 'section' => 'account',
40 'validators' => ['required', 'boolean'],
41 'type' => 'boolean',
42 'storage' => 'metricool',
43 ],
44 'alternativeEmail' => [
45 'section' => 'account',
46 'validators' => ['requiredIf:sendToAlternativeEmail,true', 'email'],
47 'storage' => 'metricool',
48 ],
49 'trackingScriptActive' => [
50 'section' => 'tracking',
51 'type' => 'boolean',
52 'defaultValue' => false,
53 'validators' => ['boolean'],
54 ],
55 'trackingScriptHash' => [
56 'section' => 'tracking',
57 'validators' => ['string'],
58 ]
59 ],
60 'storages' => [
61 'default' => [
62 'class' => 'OptionsStorage',
63 'prefix' => 'metricool_',
64 'casing' => 'snakeCase',
65 ],
66 'metricool' => [
67 'class' => 'RemoteStorage',
68 'method' => 'patch',
69 'casing' => 'camelCase',
70 ],
71 ],
72 ];
73