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

@ -33,6 +33,11 @@ class Property
* @var mixed
*/
private $mDefaultValue;
/**
* @var string
*/
private $sPlaceholder;
private function __construct($sName)
{
@ -42,6 +47,7 @@ class Property
$this->sLabel = '';
$this->sDesc = '';
$this->bAllowedInJs = false;
$this->sPlaceholder = '';
}
/**
@ -77,6 +83,18 @@ class Property
return $this;
}
/**
* @param string $sPlaceholder
*
* @return \RainLoop\Plugins\Property
*/
public function SetPlaceholder($sPlaceholder)
{
$this->sPlaceholder = $sPlaceholder;
return $this;
}
/**
* @param string $sLabel
@ -160,6 +178,14 @@ class Property
{
return $this->mDefaultValue;
}
/**
* @return string
*/
public function Placeholder()
{
return $this->sPlaceholder;
}
/**
* @return array
@ -172,7 +198,8 @@ class Property
$this->iType,
$this->sLabel,
$this->mDefaultValue,
$this->sDesc
$this->sDesc,
$this->sPlaceholder
);
}
}