Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 10962 Rev 10970
Línea 510... Línea 510...
510
    public function addAction()
510
    public function addAction()
511
    {
511
    {
512
        $currentUserPlugin = $this->plugin('currentUserPlugin');
512
        $currentUserPlugin = $this->plugin('currentUserPlugin');
513
        $currentUser = $currentUserPlugin->getUser();
513
        $currentUser = $currentUserPlugin->getUser();
514
        $currentCompany = $currentUserPlugin->getCompany();
514
        $currentCompany = $currentUserPlugin->getCompany();
515
        
-
 
-
 
515
        $myt_id =  $this->params()->fromRoute('myt_id');
Línea 516... Línea 516...
516
 
516
 
517
        $request = $this->getRequest();
517
        $request = $this->getRequest();
Línea 537... Línea 537...
537
           
537
           
538
                
538
                
539
                $hydrator = new ObjectPropertyHydrator();
539
                $hydrator = new ObjectPropertyHydrator();
540
                $feed = new Feed();
540
                $feed = new Feed();
Línea 541... Línea 541...
541
                $hydrator->hydrate($dataPost, $feed);
541
                $hydrator->hydrate($dataPost, $feed);
Línea 542... Línea 542...
542
                if($feed->type=='hptg'){
542
                /*if($feed->type=='hptg'){
543
 
543
 
Línea 607... Línea 607...
607
                    $feed->user_id          = $currentUser->id;
607
                    $feed->user_id          = $currentUser->id;
608
                    $feed->type             = Feed::TYPE_HPTG;
608
                    $feed->type             = Feed::TYPE_HPTG;
609
                    $feed->posted_or_shared = Feed::POSTED;
609
                    $feed->posted_or_shared = Feed::POSTED;
610
                    $feed->shared_with      = Feed::SHARE_WITH_CONNECTIONS;
610
                    $feed->shared_with      = Feed::SHARE_WITH_CONNECTIONS;
Línea -... Línea 611...
-
 
611
 
611
 
612
                } else*/ 
612
                } else if($feed->type=='myt'){
613
                if($myt){
613
                    $feed->company_id       = $currentCompany->id;
614
                    $feed->company_id       = $currentCompany->id;
-
 
615
                    $feed->user_id          = $owner->user_id;
-
 
616
                    $feed->myt_id           = $myt_id;
614
                    $feed->user_id          = $owner->user_id;
617
                    $feed->related_id       = $myt_id;
615
                    $feed->type             = Feed::TYPE_MYT;
618
                    $feed->type             = Feed::TYPE_MYT;
616
                    $feed->posted_or_shared = Feed::POSTED;
619
                    $feed->posted_or_shared = Feed::POSTED;
617
                    $feed->shared_with      = Feed::SHARE_WITH_PUBLIC;
620
                    $feed->shared_with      = Feed::SHARE_WITH_PUBLIC;
618
                }else{
621
                }else{