Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6866 Rev 7108
Línea 1775... Línea 1775...
1775
                    'success'   => false,
1775
                    'success'   => false,
1776
                    'data'   => $message_error
1776
                    'data'   => $message_error
1777
                ]);
1777
                ]);
1778
            }
1778
            }
Línea -... Línea 1779...
-
 
1779
            
-
 
1780
            $reactions = [
-
 
1781
                ContentReaction::REACTION_RECOMMENDED,
-
 
1782
                ContentReaction::REACTION_SUPPORT,
-
 
1783
                ContentReaction::REACTION_LOVE,
-
 
1784
                ContentReaction::REACTION_INTEREST,
-
 
1785
                ContentReaction::REACTION_FUN
-
 
1786
                
-
 
1787
            ];
-
 
1788
            if(!in_array($reaction, $reactions)) {
-
 
1789
                $response = [
-
 
1790
                    'success' => false,
-
 
1791
                    'data' => 'ERROR_REACTION_NOT_FOUND'
-
 
1792
                ];
-
 
1793
                return new JsonModel($response);
-
 
1794
            }
1779
            
1795
            
1780
            $myCoachAnswerMapper = MyCoachAnswerMapper::getInstance($this->adapter);
1796
            $myCoachAnswerMapper = MyCoachAnswerMapper::getInstance($this->adapter);
Línea 1781... Línea 1797...
1781
            $myCoachAnswer = $myCoachAnswerMapper->fetchOneByUuid($id);
1797
            $myCoachAnswer = $myCoachAnswerMapper->fetchOneByUuid($id);
1782
            
1798