| Conditions | 2 |
| Paths | 2 |
| Total Lines | 30 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function configMapping() |
||
| 20 | {
|
||
| 21 | $oAccount = \RainLoop\Plugins\Property::NewInstance('account')->SetLabel('Account')
|
||
| 22 | ->SetAllowedInJs(true) |
||
| 23 | ->SetDefaultValue('')
|
||
| 24 | ; |
||
| 25 | |||
| 26 | if (\method_exists($oAccount, 'SetPlaceholder')) |
||
| 27 | {
|
||
| 28 | $oAccount->SetPlaceholder('UA-XXXXXXXX-X');
|
||
| 29 | } |
||
| 30 | |||
| 31 | return array($oAccount, |
||
| 32 | \RainLoop\Plugins\Property::NewInstance('domain_name')->SetLabel('Domain Name')
|
||
| 33 | ->SetAllowedInJs(true) |
||
| 34 | ->SetDefaultValue(''),
|
||
| 35 | \RainLoop\Plugins\Property::NewInstance('universal_analytics')->SetLabel('Use Universal Analytics')
|
||
| 36 | ->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL) |
||
| 37 | ->SetAllowedInJs(true) |
||
| 38 | ->SetDefaultValue(true), |
||
| 39 | \RainLoop\Plugins\Property::NewInstance('track_pageview')->SetLabel('Track Pageview')
|
||
| 40 | ->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL) |
||
| 41 | ->SetAllowedInJs(true) |
||
| 42 | ->SetDefaultValue(true), |
||
| 43 | \RainLoop\Plugins\Property::NewInstance('send_events')->SetLabel('Send Events')
|
||
| 44 | ->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL) |
||
| 45 | ->SetAllowedInJs(true) |
||
| 46 | ->SetDefaultValue(false) |
||
| 47 | ); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |