Plugin system improvements

+ piwik analytics plugin (not tested)
This commit is contained in:
RainLoop Team 2014-09-25 19:37:11 +04:00
parent 4c38993c26
commit 085095b717
11 changed files with 137 additions and 11 deletions

View file

@ -1 +1 @@
1.4
1.5

View file

@ -18,11 +18,17 @@ class GoogleAnalyticsPlugin extends \RainLoop\Plugins\AbstractPlugin
*/
public function configMapping()
{
return array(
\RainLoop\Plugins\Property::NewInstance('account')->SetLabel('Account')
->SetAllowedInJs(true)
->SetDescription('UA-XXXXXXXX-X')
->SetDefaultValue(''),
$oAccount = \RainLoop\Plugins\Property::NewInstance('account')->SetLabel('Account')
->SetAllowedInJs(true)
->SetDefaultValue('')
;
if (\method_exists($oAccount, 'SetPlaceholder'))
{
$oAccount->SetPlaceholder('UA-XXXXXXXX-X');
}
return array($oAccount,
\RainLoop\Plugins\Property::NewInstance('domain_name')->SetLabel('Domain Name')
->SetAllowedInJs(true)
->SetDefaultValue(''),