Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 8446 Rev 8499
Línea 1077... Línea 1077...
1077
            $comment['time_elapsed'] = Functions::timeElapsedString($dt->getTimestamp());
1077
            $comment['time_elapsed'] = Functions::timeElapsedString($dt->getTimestamp());
1078
            $comment['comment'] = $record->comment;
1078
            $comment['comment'] = $record->comment;
Línea 1079... Línea 1079...
1079
            
1079
            
1080
            $records2 = $commentMapper->fetchAllPublishedByCommentId($record->id);
1080
            $records2 = $commentMapper->fetchAllPublishedByCommentId($record->id);
-
 
1081
            $answers = [];
1081
            $answers = [];
1082
            $contador=0;
1082
            foreach($records2 as $record2)
1083
            foreach($records2 as $record2)
1083
            {
1084
            {
1084
                $user = $userMapper->fetchOne($record2->user_id);
1085
                $user = $userMapper->fetchOne($record2->user_id);
Línea 1103... Línea 1104...
1103
                $answer['time_elapsed'] = Functions::timeElapsedString($dt->getTimestamp());
1104
                $answer['time_elapsed'] = Functions::timeElapsedString($dt->getTimestamp());
1104
                $answer['comment'] = $record2->comment;
1105
                $answer['comment'] = $record2->comment;
Línea 1105... Línea 1106...
1105
                
1106
                
Línea 1106... Línea -...
1106
                $records2 = $commentMapper->fetchAllPublishedByCommentId($record2->id);
-
 
-
 
1107
                $records2 = $commentMapper->fetchAllPublishedByCommentId($record2->id);
1107
 
1108
 
1108
                
1109
                $contador++;
1109
                array_push($answers, $answer);
-
 
-
 
1110
                array_push($answers, $answer);
1110
            }
1111
            }
1111
 
1112
            $comment['number_answers']=$contador;
1112
            $comment['answers'] = $answers;
1113
            $comment['answers'] = $answers;
1113
            array_push($comments, $comment);
1114
            array_push($comments, $comment);
1114
        }
1115
        }