Proyectos de Subversion LeadersLinked - Services

Rev

Rev 283 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 283 Rev 333
Línea 211... Línea 211...
211
            $contentReactionMapper = ContentReactionMapper::getInstance($this->adapter);
211
            $contentReactionMapper = ContentReactionMapper::getInstance($this->adapter);
212
            $commentMapper = CommentMapper::getInstance($this->adapter);
212
            $commentMapper = CommentMapper::getInstance($this->adapter);
213
            $myCoachAnswerMapper = MyCoachAnswerMapper::getInstance($this->adapter);
213
            $myCoachAnswerMapper = MyCoachAnswerMapper::getInstance($this->adapter);
214
            $myCoachQuestionViewMapper = MyCoachQuestionViewMapper::getInstance($this->adapter);
214
            $myCoachQuestionViewMapper = MyCoachQuestionViewMapper::getInstance($this->adapter);
Línea 215... Línea 215...
215
            
215
            
216
            $storage = Storage::getInstance($this->config);
216
            $storage = Storage::getInstance($this->config, $this->adapter);
Línea 217... Línea 217...
217
            $path = $storage->getPathMyCoach();
217
            $path = $storage->getPathMyCoach();
218
            
218
            
Línea 736... Línea 736...
736
                
736
                
737
            } else {
737
            } else {
738
                $last_answer_on = '';
738
                $last_answer_on = '';
Línea 739... Línea 739...
739
            }
739
            }
Línea 740... Línea 740...
740
            
740
            
741
            $storage = Storage::getInstance($this->config);
741
            $storage = Storage::getInstance($this->config, $this->adapter);
742
 
742
 
743
            return new JsonModel([
743
            return new JsonModel([
Línea 1290... Línea 1290...
1290
            $items = [];
1290
            $items = [];
Línea 1291... Línea 1291...
1291
            
1291
            
1292
            $contentReactionMapper = ContentReactionMapper::getInstance($this->adapter);
1292
            $contentReactionMapper = ContentReactionMapper::getInstance($this->adapter);
Línea 1293... Línea 1293...
1293
            $records = $contentReactionMapper->fetchAllByMyCoachQuestionId($myCoachQuestion->id);
1293
            $records = $contentReactionMapper->fetchAllByMyCoachQuestionId($myCoachQuestion->id);
Línea 1294... Línea 1294...
1294
            
1294
            
1295
            $storage = Storage::getInstance($this->config);
1295
            $storage = Storage::getInstance($this->config, $this->adapter);
1296
          
1296
          
Línea 1600... Línea 1600...
1600
        foreach($records as $record)
1600
        foreach($records as $record)
1601
        {
1601
        {
1602
            $comments[] = $this->renderComment($record->id, $now);
1602
            $comments[] = $this->renderComment($record->id, $now);
1603
        }
1603
        }
Línea 1604... Línea 1604...
1604
        
1604
        
Línea 1605... Línea 1605...
1605
        $storage = Storage::getInstance($this->config);
1605
        $storage = Storage::getInstance($this->config, $this->adapter);
1606
        
1606
        
1607
        $item = [
1607
        $item = [
1608
            'unique' => uniqid(),
1608
            'unique' => uniqid(),
Línea 1646... Línea 1646...
1646
        if ($record) {
1646
        if ($record) {
1647
            $userMapper = UserMapper::getInstance($this->adapter);
1647
            $userMapper = UserMapper::getInstance($this->adapter);
Línea 1648... Línea 1648...
1648
            
1648
            
Línea 1649... Línea 1649...
1649
            $user = $userMapper->fetchOne($record->user_id);
1649
            $user = $userMapper->fetchOne($record->user_id);
Línea 1650... Línea 1650...
1650
            
1650
            
1651
            $storage = Storage::getInstance($this->config);
1651
            $storage = Storage::getInstance($this->config, $this->adapter);
1652
            
1652
            
1653
            $item['unique'] = uniqid();
1653
            $item['unique'] = uniqid();