Beispiel #1
0
 public function __construct($id, $name, $is_default, $owner, $syncable, $synced, $access, $read, $write, $admin) {
   $this->id = $id;
   $this->name = $name;
   $this->displayname = $name;
   $this->access = $access;
   $this->read = $read;
   $this->write = $write;
   if($GLOBALS['obm'])
   if((Perm::get_module_rights($entityType) & $GLOBALS['cright_write_admin']) == $GLOBALS['cright_write_admin']) $this->admin = 1;
   else $this->admin = $admin;
   $this->isDefault = $is_default;
   $this->owner = $owner;
   $this->syncable = TRUE;
   if ($this->name == 'public_contacts' && $this->isDefault) $this->syncable = FALSE;
   $this->synced = $synced;
   $this->db = new DB_OBM;
   $this->setQueryFilter();
 }