Línea 108... |
Línea 108... |
108 |
|
108 |
|
Línea 109... |
Línea 109... |
109 |
|
109 |
|
110 |
$queryMapper = QueryMapper::getInstance($this->adapter);
|
110 |
$queryMapper = QueryMapper::getInstance($this->adapter);
|
111 |
|
111 |
|
112 |
$select = $queryMapper->getSql()->select(GroupMapper::_TABLE);
|
112 |
$select = $queryMapper->getSql()->select(GroupMapper::_TABLE);
|
Línea 113... |
Línea 113... |
113 |
$select->columns(['id', 'uuid', 'name', 'privacy', 'image', 'status']);
|
113 |
$select->columns(['id', 'uuid', 'name', 'privacy', 'image', 'status', 'cover']);
|
114 |
$select->where->equalTo('status', Group::STATUS_ACTIVE);
|
114 |
$select->where->equalTo('status', Group::STATUS_ACTIVE);
|
Línea 135... |
Línea 135... |
135 |
|
135 |
|
136 |
$item = [
|
136 |
$item = [
|
137 |
'name' => $record['name'],
|
137 |
'name' => $record['name'],
|
138 |
'privacy' => $values[$record['privacy']],
|
138 |
'privacy' => $values[$record['privacy']],
|
- |
|
139 |
'image' => $storage->getGroupImageForCodeAndFilename($record['uuid'], $record['image']),
|
139 |
'image' => $storage->getGroupImageForCodeAndFilename($record['uuid'], $record['image']),
|
140 |
'cover' => $storage->getGroupImageForCodeAndFilename($record['uuid'], $record['cover']),
|
140 |
'link_view' => $allowView ? $this->url()->fromRoute('group/view', ['id' => $record['uuid']]) : '',
|
141 |
'link_view' => $allowView ? $this->url()->fromRoute('group/view', ['id' => $record['uuid']]) : '',
|
141 |
'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']]) : '',
|
Línea 142... |
Línea 143... |
142 |
'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']]) : '',
|