Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15351 | Rev 15540 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 15351 Rev 15358
Línea 136... Línea 136...
136
                $records = $networkMapper->fetchAll();
136
                $records = $networkMapper->fetchAll();
Línea 137... Línea 137...
137
                
137
                
138
                $networks = [];
138
                $networks = [];
139
                foreach($records as $record)
139
                foreach($records as $record)
140
                {
140
                {
141
                    $networks[ $record->id ] = $record->name;
141
                    $networks[ $record->id ] = $network;
Línea 233... Línea 233...
233
                    {
233
                    {
234
                        array_push($details['roles'], $roles[$companyRole->role_id]);
234
                        array_push($details['roles'], $roles[$companyRole->role_id]);
235
                    }
235
                    }
Línea -... Línea 236...
-
 
236
                    
-
 
237
                    
Línea 236... Línea 238...
236
                    
238
 
Línea 237... Línea 239...
237
                    
239
                    
Línea 246... Línea 248...
246
                            $details['status'] = 'LABEL_PENDING';
248
                            $details['status'] = 'LABEL_PENDING';
Línea 247... Línea 249...
247
                            
249
                            
Línea 248... Línea 250...
248
                            break; 
250
                            break; 
249
                            
251
                            
250
                        case Company::STATUS_ACTIVE : 
252
                        case Company::STATUS_ACTIVE : 
251
                            $link_profile = 'https://'. $network->main_hostname . '/company/view/' . $record->uuid;
253
                            $link_profile = 'https://'. $networks[$record->network_id]->main_hostname . '/company/view/' . $record->uuid;
Línea 252... Línea 254...
252
                            $details['status'] = 'LABEL_ACTIVE';
254
                            $details['status'] = 'LABEL_ACTIVE';
253
                            break;
255
                            break;
Línea 271... Línea 273...
271
                    
273
                    
272
                
274
                
273
                    $item = [
275
                    $item = [
274
                        'id' => $record->id,
276
                        'id' => $record->id,
275
                        'name' => $record->name,
277
                        'name' => $record->name,
276
                        'network' => $networks[$record->network_id],
278
                        'network' => $networks[$record->network_id]->name,
277
                        'link_profile' => $link_profile,
279
                        'link_profile' => $link_profile,
278
                        'details' => $details,
280
                        'details' => $details,
279
                        'security' => $security,
281
                        'security' => $security,