|
@@ -407,7 +407,7 @@ discard block |
|
|
block discarded – undo |
|
407
|
407
|
$l10n = \OCP\Server::get(IFactory::class)->get('circles'); |
|
408
|
408
|
$display = $l10n->t('%s (Circle owned by %s)', [$display, $circle->getOwner()->getDisplayName()]); |
|
409
|
409
|
} else { |
|
410
|
|
- $display .= ' (' . Circle::$DEF_SOURCE[$circle->getSource()] . ')'; |
|
|
410
|
+ $display .= ' ('.Circle::$DEF_SOURCE[$circle->getSource()].')'; |
|
411
|
411
|
} |
|
412
|
412
|
|
|
413
|
413
|
$share->setSharedWithDisplayName($display); |
|
@@ -504,20 +504,20 @@ discard block |
|
|
block discarded – undo |
|
504
|
504
|
|
|
505
|
505
|
public function importFromDatabase(array $data, string $prefix = ''): IQueryRow { |
|
506
|
506
|
$shareTime = new DateTime(); |
|
507
|
|
- $shareTime->setTimestamp($this->getInt($prefix . 'stime', $data)); |
|
508
|
|
- |
|
509
|
|
- $this->setId($this->get($prefix . 'id', $data)) |
|
510
|
|
- ->setShareType($this->getInt($prefix . 'share_type', $data)) |
|
511
|
|
- ->setPermissions($this->getInt($prefix . 'permissions', $data)) |
|
512
|
|
- ->setItemType($this->get($prefix . 'item_type', $data)) |
|
513
|
|
- ->setItemSource($this->getInt($prefix . 'item_source', $data)) |
|
514
|
|
- ->setItemTarget($this->get($prefix . 'item_target', $data)) |
|
515
|
|
- ->setFileSource($this->getInt($prefix . 'file_source', $data)) |
|
516
|
|
- ->setFileTarget($this->get($prefix . 'file_target', $data)) |
|
517
|
|
- ->setSharedWith($this->get($prefix . 'share_with', $data)) |
|
518
|
|
- ->setSharedBy($this->get($prefix . 'uid_initiator', $data)) |
|
519
|
|
- ->setShareOwner($this->get($prefix . 'uid_owner', $data)) |
|
520
|
|
- ->setToken($this->get($prefix . 'token', $data)) |
|
|
507
|
+ $shareTime->setTimestamp($this->getInt($prefix.'stime', $data)); |
|
|
508
|
+ |
|
|
509
|
+ $this->setId($this->get($prefix.'id', $data)) |
|
|
510
|
+ ->setShareType($this->getInt($prefix.'share_type', $data)) |
|
|
511
|
+ ->setPermissions($this->getInt($prefix.'permissions', $data)) |
|
|
512
|
+ ->setItemType($this->get($prefix.'item_type', $data)) |
|
|
513
|
+ ->setItemSource($this->getInt($prefix.'item_source', $data)) |
|
|
514
|
+ ->setItemTarget($this->get($prefix.'item_target', $data)) |
|
|
515
|
+ ->setFileSource($this->getInt($prefix.'file_source', $data)) |
|
|
516
|
+ ->setFileTarget($this->get($prefix.'file_target', $data)) |
|
|
517
|
+ ->setSharedWith($this->get($prefix.'share_with', $data)) |
|
|
518
|
+ ->setSharedBy($this->get($prefix.'uid_initiator', $data)) |
|
|
519
|
+ ->setShareOwner($this->get($prefix.'uid_owner', $data)) |
|
|
520
|
+ ->setToken($this->get($prefix.'token', $data)) |
|
521
|
521
|
->setShareTime($shareTime); |
|
522
|
522
|
|
|
523
|
523
|
// if (($password = $this->get('personal_password', $data, '')) !== '') { |
|
@@ -526,9 +526,9 @@ discard block |
|
|
block discarded – undo |
|
526
|
526
|
// $share->setPassword($this->get('password', $data, '')); |
|
527
|
527
|
// } |
|
528
|
528
|
|
|
529
|
|
- $this->setChildId($this->getInt($prefix . 'child_id', $data)) |
|
530
|
|
- ->setChildFileTarget($this->get($prefix . 'child_file_target', $data)) |
|
531
|
|
- ->setChildPermissions($this->getInt($prefix . 'child_permissions', $data)) |
|
|
529
|
+ $this->setChildId($this->getInt($prefix.'child_id', $data)) |
|
|
530
|
+ ->setChildFileTarget($this->get($prefix.'child_file_target', $data)) |
|
|
531
|
+ ->setChildPermissions($this->getInt($prefix.'child_permissions', $data)) |
|
532
|
532
|
->setProviderId(ShareByCircleProvider::IDENTIFIER) |
|
533
|
533
|
->setStatus(Ishare::STATUS_ACCEPTED); |
|
534
|
534
|
|