Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 2109 Rev 2110
Línea 67... Línea 67...
67
     */
67
     */
68
    public function fetchOne($id)
68
    public function fetchOne($id)
69
    {
69
    {
70
        $select = $this->sql->select(self::_TABLE);
70
        $select = $this->sql->select(self::_TABLE);
71
        $select->where->equalTo('id', $id);
71
        $select->where->equalTo('id', $id);
-
 
72
        
-
 
73
        $prototype = new Feed();
-
 
74
        return $this->executeFetchOneObject($select, $prototype);
-
 
75
    }
-
 
76
 
-
 
77
     /**
-
 
78
     * 
-
 
79
     * @param int $id
-
 
80
     * @return Feed
-
 
81
     */
-
 
82
    public function fetchOneNonDeleted($id)
-
 
83
    {
-
 
84
        $select = $this->sql->select(self::_TABLE);
-
 
85
        $select->where->equalTo('id', $id);
-
 
86
        $select->where->equalTo('type', Feed::TYPE_MYT_QUESTION);
72
        $select->where->notEqualTo('status', Feed::STATUS_DELETED);
87
        $select->where->notEqualTo('status', Feed::STATUS_DELETED);
Línea 73... Línea 88...
73
        
88
        
74
        $prototype = new Feed();
89
        $prototype = new Feed();
75
        return $this->executeFetchOneObject($select, $prototype);
90
        return $this->executeFetchOneObject($select, $prototype);