| @@ 124-138 (lines=15) @@ | ||
| 121 | /** |
|
| 122 | * @return array |
|
| 123 | */ |
|
| 124 | public function configMapping() |
|
| 125 | { |
|
| 126 | return array( |
|
| 127 | \RainLoop\Plugins\Property::NewInstance('sent_folder')->SetLabel('Sent') |
|
| 128 | ->SetDefaultValue('Sent'), |
|
| 129 | \RainLoop\Plugins\Property::NewInstance('drafts_folder')->SetLabel('Drafts') |
|
| 130 | ->SetDefaultValue('Drafts'), |
|
| 131 | \RainLoop\Plugins\Property::NewInstance('spam_folder')->SetLabel('Spam') |
|
| 132 | ->SetDefaultValue('Spam'), |
|
| 133 | \RainLoop\Plugins\Property::NewInstance('trash_folder')->SetLabel('Trash') |
|
| 134 | ->SetDefaultValue('Trash'), |
|
| 135 | \RainLoop\Plugins\Property::NewInstance('archive_folder')->SetLabel('Archive') |
|
| 136 | ->SetDefaultValue('Archive') |
|
| 137 | ); |
|
| 138 | } |
|
| 139 | } |
|
| @@ 38-53 (lines=16) @@ | ||
| 35 | /** |
|
| 36 | * @return array |
|
| 37 | */ |
|
| 38 | public function configMapping() |
|
| 39 | { |
|
| 40 | return array( |
|
| 41 | \RainLoop\Plugins\Property::NewInstance('host')->SetLabel('Virtualmin Host') |
|
| 42 | ->SetDefaultValue('https://localhost:10000') |
|
| 43 | ->SetDescription('Virtualmin host URL. Example: https://example.com:10000'), |
|
| 44 | \RainLoop\Plugins\Property::NewInstance('admin_user')->SetLabel('Admin User') |
|
| 45 | ->SetDefaultValue(''), |
|
| 46 | \RainLoop\Plugins\Property::NewInstance('admin_password')->SetLabel('Admin Password') |
|
| 47 | ->SetDefaultValue(''), |
|
| 48 | \RainLoop\Plugins\Property::NewInstance('allowed_emails')->SetLabel('Allowed emails') |
|
| 49 | ->SetType(\RainLoop\Enumerations\PluginPropertyType::STRING_TEXT) |
|
| 50 | ->SetDescription('Allowed emails, space as delimiter, wildcard supported. Example: [email protected] [email protected] *@domain2.net') |
|
| 51 | ->SetDefaultValue('*') |
|
| 52 | ); |
|
| 53 | } |
|
| 54 | } |
|
| 55 | ||
| @@ 60-75 (lines=16) @@ | ||
| 57 | /** |
|
| 58 | * @return array |
|
| 59 | */ |
|
| 60 | public function configMapping() |
|
| 61 | {
|
|
| 62 | return array( |
|
| 63 | \RainLoop\Plugins\Property::NewInstance('pdo_dsn')->SetLabel('Froxlor PDO dsn')
|
|
| 64 | ->SetDefaultValue('mysql:host=127.0.0.1;dbname=froxlor'),
|
|
| 65 | \RainLoop\Plugins\Property::NewInstance('user')->SetLabel('DB User')
|
|
| 66 | ->SetDefaultValue('root'),
|
|
| 67 | \RainLoop\Plugins\Property::NewInstance('password')->SetLabel('DB Password')
|
|
| 68 | ->SetType(\RainLoop\Enumerations\PluginPropertyType::PASSWORD) |
|
| 69 | ->SetDefaultValue(''),
|
|
| 70 | \RainLoop\Plugins\Property::NewInstance('allowed_emails')->SetLabel('Allowed emails')
|
|
| 71 | ->SetType(\RainLoop\Enumerations\PluginPropertyType::STRING_TEXT) |
|
| 72 | ->SetDescription('Allowed emails, space as delimiter, wildcard supported. Example: [email protected] [email protected] *@domain2.net')
|
|
| 73 | ->SetDefaultValue('*')
|
|
| 74 | ); |
|
| 75 | } |
|
| 76 | } |
|
| 77 | ||