Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3163 Rev 3255
Línea 126... Línea 126...
126
                    }
126
                    }
Línea 127... Línea 127...
127
                    
127
                    
128
                }
128
                }
129
            }
129
            }
-
 
130
            if($isJson) {
-
 
131
                $search = filter_var($this->params()->fromQuery('search'), FILTER_SANITIZE_STRING);
-
 
132
                
130
            if($isJson) {
133
                
131
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
134
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
132
                $allowView = $acl->isAllowed($currentUser->usertype_id, 'profile/view');
135
                $allowView = $acl->isAllowed($currentUser->usertype_id, 'profile/view');
133
                $allowEdit = $acl->isAllowed($currentUser->usertype_id, 'profile/my-profiles/edit');
136
                $allowEdit = $acl->isAllowed($currentUser->usertype_id, 'profile/my-profiles/edit');
Línea 134... Línea 137...
134
                $allowDelete = $acl->isAllowed($currentUser->usertype_id, 'profile/my-profiles/delete');
137
                $allowDelete = $acl->isAllowed($currentUser->usertype_id, 'profile/my-profiles/delete');
135
                
138
                
Línea 136... Línea 139...
136
                
139
                
137
                $userProfileMapper = UserProfileMapper::getInstance($this->adapter);
140
                $userProfileMapper = UserProfileMapper::getInstance($this->adapter);
138
                $records  = $userProfileMapper->fetchAllByUserId($currentUser->id);
141
                $records  = $userProfileMapper->fetchAllByUserIdAndSearch($currentUser->id, $search);