Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15713 Rev 15714
Línea 98... Línea 98...
98
            $records = $discoveryContactMapper->fetchAll();
98
            $records = $discoveryContactMapper->fetchAll();
99
            $items = [];
99
            $items = [];
100
            //$records = $paginator->getCurrentItems();
100
            //$records = $paginator->getCurrentItems();
101
            foreach ($records as $record) {
101
            foreach ($records as $record) {
Línea 102... Línea 102...
102
 
102
 
103
                $item = [
103
                // $item = [
104
                    'first_name' => $record->first_name,
104
                //     'first_name' => $record->first_name,
105
                    'last_name' => $record->last_name,
105
                //     'last_name' => $record->last_name,
106
                    'corporate_email' => $record->corporate_email,
106
                //     'corporate_email' => $record->corporate_email,
107
                    'company' => $record->company,
107
                //     'company' => $record->company,
108
                    'country' => $record->country,
108
                //     'country' => $record->country,
109
                    'sector' => $record->sector,
109
                //     'sector' => $record->sector,
110
                    'actions' => [
110
                //     'actions' => [
111
                        'link_edit' => $this->url()->fromRoute('discovery-contacts/edit', ['id' => $record->uuid]),
111
                //         'link_edit' => $this->url()->fromRoute('discovery-contacts/edit', ['id' => $record->uuid]),
112
                        'link_delete' => $this->url()->fromRoute('discovery-contacts/delete', ['id' => $record->uuid]),
112
                //         'link_delete' => $this->url()->fromRoute('discovery-contacts/delete', ['id' => $record->uuid]),
113
                        'link_view' => $this->url()->fromRoute('discovery-contacts/view', ['id' => $record->uuid]),
113
                //         'link_view' => $this->url()->fromRoute('discovery-contacts/view', ['id' => $record->uuid]),
114
                    ],
114
                //     ],
Línea 115... Línea 115...
115
                ];
115
                // ];
116
 
116
 
117
                array_push($items, $item);
117
                array_push($items, $item);
118
                return new JsonModel([
118
                return new JsonModel([
119
                    'success' => true,
119
                    'success' => true,
120
                    'records' => $records
120
                    'records' => $record
Línea 121... Línea 121...
121
                ]);
121
                ]);
122
            }
122
            }