Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 13309 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 13309 Rev 13472
Línea 109... Línea 109...
109
                if (!in_array($order_direction, ['ASC', 'DESC'])) {
109
                if (!in_array($order_direction, ['ASC', 'DESC'])) {
110
                    $order_direction = 'ASC';
110
                    $order_direction = 'ASC';
111
                }
111
                }
Línea 112... Línea 112...
112
 
112
 
113
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
-
 
114
                $allowAdd = $acl->isAllowed($currentUser->usertype_id, 'development-and-content/add');
-
 
115
                $allowEdit = $acl->isAllowed($currentUser->usertype_id, 'development-and-content/edit');
-
 
116
                $allowDelete = $acl->isAllowed($currentUser->usertype_id, 'development-and-content/delete');
113
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
117
 
114
             
118
                $items = [];
115
                $items = [];
Línea 119... Línea 116...
119
                $feedMapper = FeedMapper::getInstance($this->adapter);
116
                $feedMapper = FeedMapper::getInstance($this->adapter);
Línea 126... Línea 123...
126
                    $item = [
123
                    $item = [
127
                        'id' => $record->id,
124
                        'id' => $record->id,
128
                        'title' => $record->title,
125
                        'title' => $record->title,
129
                        'description' => $record->description,
126
                        'description' => $record->description,
130
                        'status' => $record->status,
127
                        'status' => $record->status,
131
                        'actions' => [
-
 
132
                            'link_edit' => $this->url()->fromRoute('development-and-content/edit', ['id' => $record->uuid]),
-
 
133
                            'link_delete' => $this->url()->fromRoute('development-and-content/delete', ['id' => $record->uuid]),
-
 
134
                        ]
-
 
-
 
128
                       
135
                    ];
129
                    ];
Línea 136... Línea 130...
136
 
130
 
137
                    array_push($items, $item);
131
                    array_push($items, $item);