Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 11404 Rev 11405
Línea 986... Línea 986...
986
                return new JsonModel($data);
986
                return new JsonModel($data);
987
            }      
987
            }      
Línea 988... Línea 988...
988
            
988
            
989
            if ($myt_id){
989
            if ($myt_id){
990
                $feedMapper = FeedMapper::getInstance($this->adapter);
990
                $feedMapper = FeedMapper::getInstance($this->adapter);
Línea 991... Línea 991...
991
                $question  = $feedMapper->fetchOneByUuid($myt_id);
991
                $feed  = $feedMapper->fetchOneByUuid($myt_id);
992
 
992
 
Línea 993... Línea 993...
993
                $topicMapper = TopicMapper::getInstance($this->adapter);
993
                $topicMapper = TopicMapper::getInstance($this->adapter);
994
                $topic = $topicMapper->fetchOne($question->topic_id);
994
                $topic = $topicMapper->fetchOne($feed->topic_id);
995
 
995
 
996
                if (!$topic) {
996
                if (!$topic) {
997
                    $data = [
997
                    $data = [
Línea 998... Línea 998...
998
                        'success' => false,
998
                        'success' => false,
999
                        'data' => 'ERROR_RECORD_NOT_FOUND'
999
                        'data' => 'ERROR_RECORD_NOT_FOUND'
Línea 1000... Línea 1000...
1000
                    ];
1000
                    ];
1001
            
1001
            
1002
                    return new JsonModel($data);
1002
                    return new JsonModel($data);
1003
                }    
1003
                }    
1004
 
1004
 
1005
                if($question->topic_id!=$topic->id){
1005
                if($feed->topic_id!=$topic->id){
Línea 1006... Línea 1006...
1006
                    return new JsonModel([
1006
                    return new JsonModel([
Línea 1007... Línea 1007...
1007
                        'success' => false,
1007
                        'success' => false,
1008
                        'data' => 'ERROR_METHOD_NOT_ALLOWED'
1008
                        'data' => 'ERROR_METHOD_NOT_ALLOWED'
1009
                    ]);
1009
                    ]);
1010
                }  
1010
                }  
1011
 
1011
 
1012
 
1012
 
1013
                $items = $this->renderFeed($question->id,$myt_id);
1013
                $items = $this->renderFeed($feed->id,$myt_id);
1014
 
1014
 
Línea 1015... Línea 1015...
1015
                $response = [
1015
                $response = [