mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Added missing PropertyCollection
This commit is contained in:
parent
e0ebc999d5
commit
8d0154530c
1 changed files with 33 additions and 0 deletions
|
|
@ -0,0 +1,33 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace RainLoop\Plugins;
|
||||||
|
|
||||||
|
//class PropertyCollection extends \MailSo\Base\Collection
|
||||||
|
class PropertyCollection extends \ArrayObject implements \JsonSerializable
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private $sLabel;
|
||||||
|
|
||||||
|
function __construct(string $sLabel)
|
||||||
|
{
|
||||||
|
$this->sLabel = $sLabel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function jsonSerialize()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
'@Object' => 'Object/PluginProperty',
|
||||||
|
'Type' => \RainLoop\Enumerations\PluginPropertyType::GROUP,
|
||||||
|
'Label' => $this->sLabel,
|
||||||
|
'config' => $this->getArrayCopy()
|
||||||
|
/*
|
||||||
|
'config' => [
|
||||||
|
'@Object' => 'Collection/PropertyCollection',
|
||||||
|
'@Collection' => $this->getArrayCopy(),
|
||||||
|
]
|
||||||
|
*/
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue