Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3639 Rev 4778
Línea 584... Línea 584...
584
        $select->where->notEqualTo('link_media', 'cesa');
584
        $select->where->notEqualTo('link_media', 'cesa');
585
        $select->order('title');
585
        $select->order('title');
Línea 586... Línea 586...
586
        
586
        
587
        return $this->executeFetchAllObject($select, $prototype);
587
        return $this->executeFetchAllObject($select, $prototype);
-
 
588
    }
-
 
589
    
-
 
590
    
-
 
591
 
-
 
592
    /**
-
 
593
     *
-
 
594
     * @param int $feed_id
-
 
595
     * @return boolean
-
 
596
     */
-
 
597
    public function incTotalExternalShared($id)
-
 
598
    {
-
 
599
        $update = $this->sql->update(self::_TABLE);
-
 
600
        $update->set(['total_external_shared' => new Expression('total_external_shared + 1')]);
-
 
601
        $update->where->equalTo('id', $id);
-
 
602
        
-
 
603
        return $this->executeUpdate($update);
-
 
604
    }
-
 
605
    
-
 
606
    /**
-
 
607
     *
-
 
608
     * @param int $id
-
 
609
     * @return int
-
 
610
     */
-
 
611
    public function fetchTotalExternalShared($id)
-
 
612
    {
-
 
613
        $select = $this->sql->select(self::_TABLE);
-
 
614
        $select->columns(['total_external_shared']);
-
 
615
        $select->where->equalTo('id', $id);
-
 
616
        
-
 
617
        $record = $this->executeFetchOneArray($select);
-
 
618
        return $record['total_external_shared'];
Línea 588... Línea 619...
588
    }
619
    }
589
 
620