Completion and preparation contacts to release.

This commit is contained in:
RainLoop Team 2013-12-10 04:40:21 +04:00
parent 45d34e64f4
commit eeda3dbb85
24 changed files with 505 additions and 236 deletions

View file

@ -25,25 +25,15 @@ class Contact
public $DisplayEmail;
/**
* @var bool
* @var int
*/
public $Auto;
/**
* @var bool
*/
public $Shared;
public $ScopeType;
/**
* @var int
*/
public $Changed;
/**
* @var array
*/
public $Tags;
/**
* @var int
*/
@ -66,10 +56,8 @@ class Contact
$this->Display = '';
$this->DisplayName = '';
$this->DisplayEmail = '';
$this->Auto = false;
$this->Shared = false;
$this->ScopeType = \RainLoop\Providers\PersonalAddressBook\Enumerations\ScopeType::DEFAULT_;
$this->Changed = \time();
$this->Tags = array();
$this->IdPropertyFromSearch = 0;
$this->Properties = array();
}
@ -83,6 +71,7 @@ class Contact
{
if ($oProperty)
{
$oProperty->ScopeType = $this->ScopeType;
$oProperty->UpdateDependentValues();
if ('' === $sDisplayName && \RainLoop\Providers\PersonalAddressBook\Enumerations\PropertyType::FULLNAME === $oProperty->Type &&

View file

@ -16,6 +16,11 @@ class Property
*/
public $Type;
/**
* @var int
*/
public $ScopeType;
/**
* @var string
*/
@ -46,6 +51,7 @@ class Property
$this->IdProperty = 0;
$this->Type = PropertyType::UNKNOWN;
$this->ScopeType = \RainLoop\Providers\PersonalAddressBook\Enumerations\ScopeType::DEFAULT_;
$this->TypeCustom = '';
$this->Value = '';