Línea 100... |
Línea 100... |
100 |
|
100 |
|
Línea 101... |
Línea 101... |
101 |
|
101 |
|
102 |
$search = Functions::sanitizeFilterString($this->params()->fromQuery('search', ''));
|
102 |
$search = Functions::sanitizeFilterString($this->params()->fromQuery('search', ''));
|
103 |
|
103 |
|
104 |
$acl = $this->getEvent()->getViewModel()->getVariable('acl');
|
104 |
$acl = $this->getEvent()->getViewModel()->getVariable('acl');
|
Línea 105... |
Línea 105... |
105 |
$allowView = $acl->isAllowed($currentUser->usertype_id, 'group/view');
|
105 |
$allowView = $acl->isAllowed($currentUser->usertype_id, 'group/view', ['force_canonical' => true]);
|
Línea 106... |
Línea 106... |
106 |
$allowEdit = $acl->isAllowed($currentUser->usertype_id, 'group/my-groups/edit');
|
106 |
$allowEdit = $acl->isAllowed($currentUser->usertype_id, 'group/my-groups/edit', ['force_canonical' => true]);
|
Línea 136... |
Línea 136... |
136 |
|
136 |
|
137 |
$item = [
|
137 |
$item = [
|
138 |
'name' => $record['name'],
|
138 |
'name' => $record['name'],
|
139 |
'privacy' => $values[$record['privacy']],
|
139 |
'privacy' => $values[$record['privacy']],
|
140 |
'image' => $storage->getGroupImageForCodeAndFilename($record['uuid'], $record['image']),
|
140 |
'image' => $storage->getGroupImageForCodeAndFilename($record['uuid'], $record['image']),
|
141 |
'link_view' => $allowView ? $this->url()->fromRoute('group/view', ['id' => $record['uuid'] ]) : '',
|
141 |
'link_view' => $allowView ? $this->url()->fromRoute('group/view', ['id' => $record['uuid'] ], ['force_canonical' => true]) : '',
|
142 |
'link_edit' => $allowEdit ? $this->url()->fromRoute('group/my-groups/edit', ['id' => $record['uuid'] ]) : '',
|
142 |
'link_edit' => $allowEdit ? $this->url()->fromRoute('group/my-groups/edit', ['id' => $record['uuid'] ], ['force_canonical' => true]) : '',
|
Línea 143... |
Línea 143... |
143 |
'link_delete' => $allowDelete ? $this->url()->fromRoute('group/my-groups/delete', ['id' => $record['uuid'] ]) : '',
|
143 |
'link_delete' => $allowDelete ? $this->url()->fromRoute('group/my-groups/delete', ['id' => $record['uuid'] ], ['force_canonical' => true]) : '',
|
Línea 144... |
Línea 144... |
144 |
|
144 |
|
145 |
];
|
145 |
];
|
Línea 421... |
Línea 421... |
421 |
}
|
421 |
}
|
Línea 422... |
Línea 422... |
422 |
|
422 |
|
423 |
|
423 |
|
Línea 424... |
Línea 424... |
424 |
|
424 |
|
425 |
$groupMemberMapper = GroupMemberMapper::getInstance($this->adapter);
|
425 |
$groupMemberMapper = GroupMemberMapper::getInstance($this->adapter);
|
Línea 426... |
Línea 426... |
426 |
$total_members = $groupMemberMapper->fetchTotalByGroupId($group->id);
|
426 |
$total_ = $groupMemberMapper->fetchTotalByGroupId($group->id);
|
Línea 427... |
Línea 427... |
427 |
|
427 |
|
428 |
$image_size_cover = $this->config['leaderslinked.image_sizes.group_cover_upload'];
|
428 |
$image_size_cover = $this->config['leaderslinked.image_sizes.group_cover_upload'];
|
429 |
$image_size_profile = $this->config['leaderslinked.image_sizes.group_image_upload'];
|
429 |
$image_size_profile = $this->config['leaderslinked.image_sizes.group_image_upload'];
|
430 |
|
430 |
|
431 |
$storage = Storage::getInstance($this->config, $this->adapter);
|
431 |
$storage = Storage::getInstance($this->config, $this->adapter);
|
432 |
|
432 |
|
433 |
|
433 |
|
Línea 449... |
Línea 449... |
449 |
|
449 |
|
450 |
|
450 |
|
451 |
'industries' => $industries,
|
451 |
'industries' => $industries,
|
452 |
'types' => $types,
|
452 |
'types' => $types,
|
- |
|
453 |
'privacies' => $privacies,
|
- |
|
454 |
'accessibilities' => $accessibilities,
|
- |
|
455 |
|
- |
|
456 |
|
- |
|
457 |
'link_extended' => $this->url()->fromRoute('group/my-groups/extended', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
- |
|
458 |
'link_image' => $this->url()->fromRoute('group/my-groups/image', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
- |
|
459 |
'link_cover' => $this->url()->fromRoute('group/my-groups/cover', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
- |
|
460 |
'link_privacy' => $this->url()->fromRoute('group/my-groups/privacy', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
- |
|
461 |
'link_website' => $this->url()->fromRoute('group/my-groups/website', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
- |
|
462 |
'link_industry' => $this->url()->fromRoute('group/my-groups/industry', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
- |
|
463 |
'link_accessibility' => $this->url()->fromRoute('group/my-groups/accessibility', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
- |
|
464 |
'link_type' => $this->url()->fromRoute('group/my-groups/type', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
- |
|
465 |
'link_status' => $this->url()->fromRoute('group/my-groups/status', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
- |
|
466 |
// 'link_members' => $this->url()->fromRoute('group/my-groups/members', ['id' => $record['uuid'] ], ['force_canonical' => true]),
|
453 |
'privacies' => $privacies,
|
467 |
|
Línea 454... |
Línea 468... |
454 |
'accessibilities' => $accessibilities
|
468 |
|
455 |
]);
|
469 |
]);
|