Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 1 Rev 60
Línea 291... Línea 291...
291
                $connection = $connectionMapper->fetchOneByUserId1AndUserId2($currentUser->id, $record['id']);
291
                $connection = $connectionMapper->fetchOneByUserId1AndUserId2($currentUser->id, $record['id']);
Línea 292... Línea 292...
292
 
292
 
293
                $item = [
293
                $item = [
294
                    'id'    => $record['uuid'],
294
                    'id'    => $record['uuid'],
295
                    'name'  => trim($record['first_name'] . ' ' . $record['last_name']),
295
                    'name'  => trim($record['first_name'] . ' ' . $record['last_name']),
296
                    'image' => $this->url()->fromRoute('storage', ['code' => $record['uuid'], 'type' => 'user', 'filename' => $record['image']]),
296
                    'image' => $this->url()->fromRoute('storage', ['code' => $record['uuid'], 'type' => 'user', 'filename' => $record['image']],['force_canonical' => true]),
297
                    'profile'   => $this->url()->fromRoute('profile/view', ['id' => $record['uuid']]),
297
                    'profile'   => $this->url()->fromRoute('profile/view', ['id' => $record['uuid']]),
298
                    'relation' => $relation,
298
                    'relation' => $relation,
299
                    'link_cancel'   => '',
299
                    'link_cancel'   => '',
300
                    'link_request'  => '',
300
                    'link_request'  => '',
Línea 392... Línea 392...
392
                $records = $mapper->fetchAll($select);
392
                $records = $mapper->fetchAll($select);
393
                foreach ($records as $record) {
393
                foreach ($records as $record) {
394
                    array_push($items, [
394
                    array_push($items, [
395
                        'id'        => $record['uuid'],
395
                        'id'        => $record['uuid'],
396
                        'name'      => trim($record['first_name'] . ' ' . $record['last_name']),
396
                        'name'      => trim($record['first_name'] . ' ' . $record['last_name']),
397
                        'image'     => $this->url()->fromRoute('storage', ['code' => $record['uuid'], 'type' => 'user', 'filename' => $record['image']]),
397
                        'image'     => $this->url()->fromRoute('storage', ['code' => $record['uuid'], 'type' => 'user', 'filename' => $record['image']],['force_canonical' => true]),
398
                        'profile'   => $this->url()->fromRoute('profile/view', ['id' => $record['uuid']]),
398
                        'profile'   => $this->url()->fromRoute('profile/view', ['id' => $record['uuid']]),
399
                    ]);
399
                    ]);
400
                }
400
                }
401
            }
401
            }
Línea 487... Línea 487...
487
 
487
 
488
 
488
 
489
                        array_push($items, [
489
                        array_push($items, [
490
                            'id'        => $record['uuid'],
490
                            'id'        => $record['uuid'],
491
                            'name'      => trim($record['first_name'] . ' ' . $record['last_name']),
491
                            'name'      => trim($record['first_name'] . ' ' . $record['last_name']),
492
                            'image'     => $this->url()->fromRoute('storage', ['code' => $record['uuid'], 'type' => 'user', 'filename' => $record['image']]),
492
                            'image'     => $this->url()->fromRoute('storage', ['code' => $record['uuid'], 'type' => 'user', 'filename' => $record['image']],['force_canonical' => true]),
493
                            'profile'   => $this->url()->fromRoute('profile/view', ['id' => $record['uuid']]),
493
                            'profile'   => $this->url()->fromRoute('profile/view', ['id' => $record['uuid']]),
494
                        ]);
494
                        ]);
495
                    }
495
                    }
Línea 540... Línea 540...
540
                $records = $mapper->fetchAll($select);
540
                $records = $mapper->fetchAll($select);
541
                foreach ($records as $record) {
541
                foreach ($records as $record) {
542
                    array_push($items, [
542
                    array_push($items, [
543
                        'id'        => $record['uuid'],
543
                        'id'        => $record['uuid'],
544
                        'name'      => trim($record['name']),
544
                        'name'      => trim($record['name']),
545
                        'image'     => $this->url()->fromRoute('storage', ['code' => $record['uuid'], 'type' => 'company', 'filename' => $record['image']]),
545
                        'image'     => $this->url()->fromRoute('storage', ['code' => $record['uuid'], 'type' => 'company', 'filename' => $record['image']],['force_canonical' => true]),
546
                        'profile'   => $this->url()->fromRoute('company/view', ['id' => $record['uuid']]),
546
                        'profile'   => $this->url()->fromRoute('company/view', ['id' => $record['uuid']]),
547
                    ]);
547
                    ]);
548
                }
548
                }
549
            }
549
            }
Línea 652... Línea 652...
652
                    }
652
                    }
Línea 653... Línea 653...
653
 
653
 
654
                    array_push($items, [
654
                    array_push($items, [
655
                        'id'        => $record['uuid'],
655
                        'id'        => $record['uuid'],
656
                        'name'      => trim($record['first_name'] . ' ' . $record['last_name']),
656
                        'name'      => trim($record['first_name'] . ' ' . $record['last_name']),
657
                        'image'     => $this->url()->fromRoute('storage', ['code' => $record['uuid'], 'type' => 'user', 'filename' => $record['image']]),
657
                        'image'     => $this->url()->fromRoute('storage', ['code' => $record['uuid'], 'type' => 'user', 'filename' => $record['image']],['force_canonical' => true]),
658
                        'profile'   => $this->url()->fromRoute('profile/view', ['id' => $record['uuid']]),
658
                        'profile'   => $this->url()->fromRoute('profile/view', ['id' => $record['uuid']]),
Línea 659... Línea 659...
659
                        'actions'   => $actions,
659
                        'actions'   => $actions,
660
 
660
 
Línea 1350... Línea 1350...
1350
            foreach ($records as $record) {
1350
            foreach ($records as $record) {
Línea 1351... Línea 1351...
1351
 
1351
 
1352
                array_push($items, [
1352
                array_push($items, [
1353
                    'id'        => $record['uuid'],
1353
                    'id'        => $record['uuid'],
1354
                    'name'      => trim($record['name']),
1354
                    'name'      => trim($record['name']),
1355
                    'image'     => $this->url()->fromRoute('storage', ['code' => $record['uuid'], 'type' => 'group', 'filename' => $record['image']]),
1355
                    'image'     => $this->url()->fromRoute('storage', ['code' => $record['uuid'], 'type' => 'group', 'filename' => $record['image']],['force_canonical' => true],['force_canonical' => true]),
1356
                    'profile'   => $this->url()->fromRoute('group/view', ['id' => $record['uuid']]),
1356
                    'profile'   => $this->url()->fromRoute('group/view', ['id' => $record['uuid']]),
Línea 1357... Línea 1357...
1357
                    'priority'  => $record['priority'],
1357
                    'priority'  => $record['priority'],
1358
 
1358
 
Línea 1385... Línea 1385...
1385
            //print_r($posts);
1385
            //print_r($posts);
Línea 1386... Línea 1386...
1386
 
1386
 
1387
            foreach ($posts as $post) {
1387
            foreach ($posts as $post) {
1388
                $dt = \DateTime::createFromFormat('Y-m-d', $post->date);
1388
                $dt = \DateTime::createFromFormat('Y-m-d', $post->date);
1389
                array_push($items, [
1389
                array_push($items, [
1390
                    'image' => $this->url()->fromRoute('storage', ['code' => $post->uuid, 'type' => 'post', 'filename' => $post->image]),
1390
                    'image' => $this->url()->fromRoute('storage', ['code' => $post->uuid, 'type' => 'post', 'filename' => $post->image],['force_canonical' => true]),
1391
                    'date' => $dt->format('d/m/Y'),
1391
                    'date' => $dt->format('d/m/Y'),
1392
                    'title' => $post->title,
1392
                    'title' => $post->title,
1393
                    'link' => $this->url()->fromRoute('post', ['id' => $post->uuid]),
1393
                    'link' => $this->url()->fromRoute('post', ['id' => $post->uuid]),
1394
                ]);
1394
                ]);
Línea 1529... Línea 1529...
1529
            foreach ($records as $record) {
1529
            foreach ($records as $record) {
Línea 1530... Línea 1530...
1530
 
1530
 
1531
                array_push($items, [
1531
                array_push($items, [
1532
                    'id'        => $record['uuid'],
1532
                    'id'        => $record['uuid'],
1533
                    'name'      => trim($record['name']),
1533
                    'name'      => trim($record['name']),
1534
                    'image'     => $this->url()->fromRoute('storage', ['code' => $record['uuid'], 'type' => 'group', 'filename' => $record['image']]),
1534
                    'image'     => $this->url()->fromRoute('storage', ['code' => $record['uuid'], 'type' => 'group', 'filename' => $record['image']],['force_canonical' => true]),
1535
                    'profile'   => $this->url()->fromRoute('group/view', ['id' => $record['uuid']]),
1535
                    'profile'   => $this->url()->fromRoute('group/view', ['id' => $record['uuid']]),
Línea 1536... Línea 1536...
1536
                    'priority'  => $record['priority'],
1536
                    'priority'  => $record['priority'],
1537
 
1537
 
Línea 2096... Línea 2096...
2096
                    
2096
                    
2097
                    array_push($menu, $option);
2097
                    array_push($menu, $option);
Línea 2098... Línea 2098...
2098
                }
2098
                }
2099
                
2099
                
2100
                
2100