Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 11402 Rev 11404
Línea 1018... Línea 1018...
1018
                        'item' =>$items,
1018
                        'item' =>$items,
1019
                        'topic_title'=>$topic->title,
1019
                        'topic_title'=>$topic->title,
1020
                        'feed_title'=>$question->title
1020
                        'feed_title'=>$question->title
1021
                    ]
1021
                    ]
1022
                ];
1022
                ];
1023
 
-
 
1024
                return new JsonModel($response);
-
 
Línea 1025... Línea 1023...
1025
 
1023
 
Línea 1026... Línea 1024...
1026
            }
1024
            }
Línea 1027... Línea 1025...
1027
 
1025
 
1028
            // if($feed->type=='hptg'){
1026
            if($feed->type=='hptg'){
Línea 1029... Línea 1027...
1029
 
1027
 
Línea 1030... Línea 1028...
1030
            //     $group_uuid =  $this->params()->fromRoute('group_id');
1028
                $group_uuid =  $this->params()->fromRoute('group_id');
1031
            //     $topic_uuid   = $this->params()->fromRoute('topic_id');
1029
                $topic_uuid   = $this->params()->fromRoute('topic_id');
1032
 
1030
 
1033
            //     if(!isset($topic_uuid)){
1031
                if(!isset($topic_uuid)){
Línea 1034... Línea 1032...
1034
                
1032
                
1035
            //         $data = [
1033
                    $data = [
1036
            //             'success'   => false,
1034
                        'success'   => false,
Línea 1037... Línea 1035...
1037
            //             'data'   => 'ERROR_INVALID_PARAMETER'
1035
                        'data'   => 'ERROR_INVALID_PARAMETER'
1038
            //         ];
1036
                    ];
1039
                    
1037
                    
1040
            //         return new JsonModel($data);
1038
                    return new JsonModel($data);
Línea 1041... Línea 1039...
1041
            //     }
1039
                }
1042
            //     if(!isset($group_uuid)){
1040
                if(!isset($group_uuid)){
1043
                
1041
                
1044
            //         $data = [
1042
                    $data = [
Línea 1045... Línea 1043...
1045
            //             'success'   => false,
1043
                        'success'   => false,
1046
            //             'data'   => 'ERROR_INVALID_PARAMETER'
1044
                        'data'   => 'ERROR_INVALID_PARAMETER'
1047
            //         ];
1045
                    ];
1048
                    
1046
                    
1049
            //         return new JsonModel($data);
1047
                    return new JsonModel($data);
Línea 1050... Línea 1048...
1050
            //     }
1048
                }
1051
            //     $highPerformanceTeamsGroupsMapper = HighPerformanceTeamsGroupsMapper::getInstance($this->adapter);
1049
                $highPerformanceTeamsGroupsMapper = HighPerformanceTeamsGroupsMapper::getInstance($this->adapter);
Línea 1052... Línea 1050...
1052
            //     $highPerformanceTeamsGroups = $highPerformanceTeamsGroupsMapper->fetchOneByUuid($group_uuid);
1050
                $highPerformanceTeamsGroups = $highPerformanceTeamsGroupsMapper->fetchOneByUuid($group_uuid);
Línea 1053... Línea 1051...
1053
                        
1051
                        
1054
            //     if (!$highPerformanceTeamsGroups) {
1052
                if (!$highPerformanceTeamsGroups) {
1055
            //         $data = [
1053
                    $data = [
1056
            //             'success' => false,
1054
                        'success' => false,
1057
            //             'data' => 'ERROR_RECORD_NOT_FOUND'
1055
                        'data' => 'ERROR_RECORD_NOT_FOUND'
1058
            //         ];
1056
                    ];
1059
            
1057
            
1060
            //         return new JsonModel($data);
1058
                    return new JsonModel($data);
1061
            //     }
1059
                }
1062
 
1060
 
1063
                       
1061
                       
1064
            //     if($highPerformanceTeamsGroups->status != HighPerformanceTeamsGroups::STATUS_ACTIVE) {
1062
                if($highPerformanceTeamsGroups->status != HighPerformanceTeamsGroups::STATUS_ACTIVE) {
1065
            
1063
            
Línea 1066... Línea 1064...
1066
            //         return new JsonModel([
1064
                    return new JsonModel([
1067
            //             'success' => false,
1065
                        'success' => false,
Línea 1068... Línea 1066...
1068
            //             'data' => 'ERROR_UNAUTHORIZED'
1066
                        'data' => 'ERROR_UNAUTHORIZED'
1069
            //         ]);
1067
                    ]);
1070
            
1068
            
1071
            //     } 
1069
                } 
1072
 
1070
 
1073
            //     if($feed->high_performance_group_id!=$highPerformanceTeamsGroups->id){
1071
                if($feed->high_performance_group_id!=$highPerformanceTeamsGroups->id){
1074
            //         return new JsonModel([
1072
                    return new JsonModel([
1075
            //             'success' => false,
1073
                        'success' => false,
1076
            //             'data' => 'ERROR_METHOD_NOT_ALLOWED'
1074
                        'data' => 'ERROR_METHOD_NOT_ALLOWED'
1077
            //         ]);
1075
                    ]);
1078
            //     }
1076
                }
1079
                
1077
                
1080
            //     $topicMapper = TopicMapper::getInstance($this->adapter);
1078
                $topicMapper = TopicMapper::getInstance($this->adapter);
1081
            //     $topic = $topicMapper->fetchOneByUuid($topic_uuid);
1079
                $topic = $topicMapper->fetchOneByUuid($topic_uuid);
1082
 
1080
 
1083
            //     if (!$topic) {
1081
                if (!$topic) {
1084
            //         $data = [
1082
                    $data = [
1085
            //             'success' => false,
1083
                        'success' => false,
1086
            //             'data' => 'ERROR_RECORD_NOT_FOUND'
1084
                        'data' => 'ERROR_RECORD_NOT_FOUND'
1087
            //         ];
1085
                    ];
1088
            
1086
            
1089
            //         return new JsonModel($data);
1087
                    return new JsonModel($data);
1090
            //     }    
1088
                }    
1091
 
1089
 
1092
            //     if($feed->topic_id!=$topic->id){
1090
                if($feed->topic_id!=$topic->id){
1093
            //         return new JsonModel([
1091
                    return new JsonModel([
1094
            //             'success' => false,
1092
                        'success' => false,
Línea 1095... Línea 1093...
1095
            //             'data' => 'ERROR_METHOD_NOT_ALLOWED'
1093
                        'data' => 'ERROR_METHOD_NOT_ALLOWED'
1096
            //         ]);
1094
                    ]);
1097
            //     }  
1095
                }  
1098
 
1096