Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 14629 Rev 16701
Línea 24... Línea 24...
24
use LeadersLinked\Mapper\CompanyMapper;
24
use LeadersLinked\Mapper\CompanyMapper;
25
use LeadersLinked\Mapper\CompanyUserMapper;
25
use LeadersLinked\Mapper\CompanyUserMapper;
26
use LeadersLinked\Mapper\ConversationMapper;
26
use LeadersLinked\Mapper\ConversationMapper;
27
use LeadersLinked\Mapper\MessageMapper;
27
use LeadersLinked\Mapper\MessageMapper;
28
use LeadersLinked\Model\Conversation;
28
use LeadersLinked\Model\Conversation;
29
use LeadersLinked\Model\UserType;
-
 
30
use LeadersLinked\Library\Image;
29
use LeadersLinked\Library\Image;
31
use Laminas\View\Model\JsonModel;
30
use Laminas\View\Model\JsonModel;
32
use LeadersLinked\Form\CommunicationInMailSendForm;
31
use LeadersLinked\Form\CommunicationInMailSendForm;
33
use LeadersLinked\Form\CommunicationInMailSendAllForm;
32
use LeadersLinked\Form\CommunicationInMailSendAllForm;
34
use LeadersLinked\Model\Message;
33
use LeadersLinked\Model\Message;
35
use LeadersLinked\Model\VideoConvert;
34
use LeadersLinked\Model\VideoConvert;
36
use LeadersLinked\Mapper\VideoConvertMapper;
35
use LeadersLinked\Mapper\VideoConvertMapper;
37
use LeadersLinked\Mapper\UtilMapper;
-
 
38
 
-
 
Línea 39... Línea 36...
39
 
36
 
40
 
37
 
41
class InMailController extends AbstractActionController
38
class InMailController extends AbstractActionController
Línea 159... Línea 156...
159
                }
156
                }
160
            }
157
            }
Línea 161... Línea 158...
161
 
158
 
Línea 162... Línea -...
162
            if($isJson) {
-
 
163
               
-
 
164
                $utilMapper = UtilMapper::getInstance($this->adapter);
-
 
165
                $now = $utilMapper->getDatebaseNow();
-
 
166
                
159
            if($isJson) {
-
 
160
               
-
 
161
                $userMapper = UserMapper::getInstance($this->adapter);
167
                
162
                $now = $userMapper->getDatebaseNow();
168
                $userMapper = UserMapper::getInstance($this->adapter);
163
                
169
                $conversationMapper = ConversationMapper::getInstance($this->adapter);
164
                $conversationMapper = ConversationMapper::getInstance($this->adapter);
170
                $messageMapper = MessageMapper::getInstance($this->adapter);
165
                $messageMapper = MessageMapper::getInstance($this->adapter);
171
                $conversations = [];
166
                $conversations = [];
Línea 370... Línea 365...
370
    public function messageAction()
365
    public function messageAction()
371
    {
366
    {
Línea 372... Línea 367...
372
     
367
     
373
        $request = $this->getRequest();
368
        $request = $this->getRequest();
374
        if($request->isGet()) {
369
        if($request->isGet()) {
375
            
-
 
376
            $utilMapper = UtilMapper::getInstance($this->adapter);
-
 
377
            $now = $utilMapper->getDatebaseNow();
-
 
378
            
370
 
Línea 379... Línea 371...
379
            $page = intval($this->params()->fromQuery('page', 0), 10);
371
            $page = intval($this->params()->fromQuery('page', 0), 10);
380
            
372
            
381
            $currentUserPlugin = $this->plugin('currentUserPlugin');
373
            $currentUserPlugin = $this->plugin('currentUserPlugin');
Línea 382... Línea 374...
382
            $currentUser = $currentUserPlugin->getUser();
374
            $currentUser = $currentUserPlugin->getUser();
-
 
375
            $currentCompany = $currentUserPlugin->getCompany();
-
 
376
 
383
            $currentCompany = $currentUserPlugin->getCompany();
377
            $userMapper = UserMapper::getInstance($this->adapter);
Línea 384... Línea 378...
384
 
378
            $now = $userMapper->getDatebaseNow();
Línea 385... Línea 379...
385
            $userMapper = UserMapper::getInstance($this->adapter);
379
            
Línea 547... Línea 541...
547
     */
541
     */
548
    public function sendMessageAction()
542
    public function sendMessageAction()
549
    {
543
    {
550
        $request = $this->getRequest();
544
        $request = $this->getRequest();
551
        if($request->isPost()) {
545
        if($request->isPost()) {
552
            $utilMapper = UtilMapper::getInstance($this->adapter);
-
 
553
            $now = $utilMapper->getDatebaseNow();
-
 
-
 
546
            
Línea 554... Línea 547...
554
          
547
          
555
            $currentUserPlugin = $this->plugin('currentUserPlugin');
548
            $currentUserPlugin = $this->plugin('currentUserPlugin');
556
            $currentUser = $currentUserPlugin->getUser();
549
            $currentUser = $currentUserPlugin->getUser();
Línea 557... Línea 550...
557
            $currentCompany = $currentUserPlugin->getCompany();
550
            $currentCompany = $currentUserPlugin->getCompany();
-
 
551
 
Línea 558... Línea 552...
558
 
552
            $userMapper = UserMapper::getInstance($this->adapter);
559
            $userMapper = UserMapper::getInstance($this->adapter);
553
            $now = $userMapper->getDatebaseNow();
560
            
554
            
561
            $id = $this->params()->fromRoute('id');
555
            $id = $this->params()->fromRoute('id');