moved private_addressbook attribute from addresbook_ui to addressbook_bo

This commit is contained in:
Ralf Becker 2010-12-02 13:00:01 +00:00
parent f94a2a1851
commit 44d59931a2
2 changed files with 9 additions and 10 deletions

View File

@ -124,6 +124,12 @@ class addressbook_bo extends addressbook_so
* @var boolean
*/
var $default_private;
/**
* Use a separate private addressbook (former private flag), for contacts not shareable via regular read acl
*
* @var boolean
*/
var $private_addressbook = false;
/**
* Categories object
*
@ -176,6 +182,7 @@ class addressbook_bo extends addressbook_so
{
$this->default_addressbook = $this->user; // admin set a default or forced pref for personal addressbook
}
$this->private_addressbook = $this->contact_repository == 'sql' && $this->prefs['private_addressbook'];
$this->contact_fields = array(
'id' => lang('Contact ID'),

View File

@ -29,12 +29,6 @@ class addressbook_ui extends addressbook_bo
'admin_set_all_cleanup' => True,
'cat_add' => True,
);
/**
* use a separate private addressbook (former private flag), for contacts not shareable via regular read acl
*
* @var boolean
*/
protected $private_addressbook = false;
protected $org_views;
/**
@ -75,8 +69,6 @@ class addressbook_ui extends addressbook_bo
$this->tmpl = new etemplate();
$this->private_addressbook = $this->contact_repository == 'sql' && $this->prefs['private_addressbook'];
$this->org_views = array(
'org_name' => lang('Organisations'),
'org_name,adr_one_locality' => lang('Organisations by location'),