Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15712 Rev 15713
Línea 97... Línea 97...
97
            $discoveryContactMapper = DiscoveryContactLogMapper::getInstance($this->adapter);
97
            $discoveryContactMapper = DiscoveryContactLogMapper::getInstance($this->adapter);
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) {
-
 
102
 
-
 
103
                $item = [
-
 
104
                    'first_name' => $record->first_name,
-
 
105
                    'last_name' => $record->last_name,
-
 
106
                    'corporate_email' => $record->corporate_email,
-
 
107
                    'company' => $record->company,
-
 
108
                    'country' => $record->country,
-
 
109
                    'sector' => $record->sector,
-
 
110
                    'actions' => [
-
 
111
                        'link_edit' => $this->url()->fromRoute('discovery-contacts/edit', ['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]),
-
 
114
                    ],
-
 
115
                ];
-
 
116
 
-
 
117
                array_push($items, $item);
102
                return new JsonModel([
118
                return new JsonModel([
103
                    'success' => true,
119
                    'success' => true,
104
                    'records' => $record->id
120
                    'records' => $records
105
                ]);
121
                ]);
106
            }
122
            }
Línea 107... Línea 123...
107
 
123
 
108
            // } else {
124
            // } else {
109
            // }
-
 
110
 
-
 
111
 
-
 
112
            // return new JsonModel([
-
 
113
            //     'success' => true,
-
 
114
            //     'message' => $currentUser
-
 
115
            // ]);
125
            // }
Línea 116... Línea 126...
116
        }
126
        }
117
 
127