Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15338 Rev 15351
Línea 78... Línea 78...
78
    {
78
    {
79
        $request = $this->getRequest();
79
        $request = $this->getRequest();
80
        $currentUserPlugin = $this->plugin('currentUserPlugin');
80
        $currentUserPlugin = $this->plugin('currentUserPlugin');
81
        $currentUser    = $currentUserPlugin->getUser();
81
        $currentUser    = $currentUserPlugin->getUser();
Línea -... Línea 82...
-
 
82
        
-
 
83
        
-
 
84
        $currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
-
 
85
        $network = $currentNetworkPlugin->getNetwork();
82
        
86
        
Línea 83... Línea 87...
83
        if($request->isGet()) {
87
        if($request->isGet()) {
Línea 184... Línea 188...
184
                $companyServiceMapper = CompanyServiceMapper::getInstance($this->adapter);
188
                $companyServiceMapper = CompanyServiceMapper::getInstance($this->adapter);
185
                $companyRoleMapper = CompanyRoleMapper::getInstance($this->adapter);
189
                $companyRoleMapper = CompanyRoleMapper::getInstance($this->adapter);
186
                $companyUserMapper = CompanyUserMapper::getInstance($this->adapter);
190
                $companyUserMapper = CompanyUserMapper::getInstance($this->adapter);
187
                $userMapper = UserMapper::getInstance($this->adapter);
191
                $userMapper = UserMapper::getInstance($this->adapter);
Línea 188... Línea 192...
188
                
192
                
189
                
-
 
190
                $sandbox = $this->config['leaderslinked.runmode.sandbox'];
-
 
191
                if($sandbox) {
-
 
192
                    $company_profile_url = $this->config['leaderslinked.frontend.sandbox_company_profile'];
-
 
193
                } else {
-
 
194
                    $company_profile_url = $this->config['leaderslinked.frontend.production_company_profile'];
-
 
195
                } 
-
 
Línea 196... Línea 193...
196
                
193
 
197
                
194
                
198
                $items = [];
195
                $items = [];
199
                $records = $paginator->getCurrentItems();
196
                $records = $paginator->getCurrentItems();
Línea 249... Línea 246...
249
                            $details['status'] = 'LABEL_PENDING';
246
                            $details['status'] = 'LABEL_PENDING';
Línea 250... Línea 247...
250
                            
247
                            
Línea 251... Línea 248...
251
                            break; 
248
                            break; 
252
                            
249
                            
253
                        case Company::STATUS_ACTIVE : 
250
                        case Company::STATUS_ACTIVE : 
254
                            $link_profile = str_replace('[uuid]', $record->uuid, $company_profile_url);
251
                            $link_profile = 'https://'. $network->main_hostname . '/company/view/' . $record->uuid;
Línea 255... Línea 252...
255
                            $details['status'] = 'LABEL_ACTIVE';
252
                            $details['status'] = 'LABEL_ACTIVE';
256
                            break;
253
                            break;