Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3291 Rev 3639
Línea 73... Línea 73...
73
        $select->where->notEqualTo('status', Feed::STATUS_DELETED);
73
        $select->where->notEqualTo('status', Feed::STATUS_DELETED);
74
        //$select->getSqlString($this->adapter->platform);
74
        //$select->getSqlString($this->adapter->platform);
Línea 75... Línea 75...
75
        
75
        
76
        return $this->executeFetchOneObject($select, $prototype);
76
        return $this->executeFetchOneObject($select, $prototype);
-
 
77
    }
-
 
78
    
-
 
79
    
-
 
80
    /**
-
 
81
     *
-
 
82
     * @param int $id
-
 
83
     * @param int $network_id
-
 
84
     * @return Feed
-
 
85
     */
-
 
86
    public function fetchOneByIdAndNetworkId($id, $network_id)
-
 
87
    {
-
 
88
        $prototype = new Feed();
-
 
89
        $select = $this->sql->select(self::_TABLE);
-
 
90
        $select->where->equalTo('id', $id);
-
 
91
        $select->where->equalTo('network_id', $network_id);
-
 
92
        $select->where->notEqualTo('status', Feed::STATUS_DELETED);
-
 
93
        //$select->getSqlString($this->adapter->platform);
-
 
94
        
-
 
95
        return $this->executeFetchOneObject($select, $prototype);
Línea 77... Línea 96...
77
    }
96
    }
78
 
97
 
79
     /**
98
     /**
80
     * 
99
     * 
Línea 121... Línea 140...
121
        //$select->getSqlString($this->adapter->platform);
140
        //$select->getSqlString($this->adapter->platform);
Línea 122... Línea 141...
122
       
141
       
123
        return $this->executeFetchOneObject($select, $prototype);
142
        return $this->executeFetchOneObject($select, $prototype);
Línea 124... Línea -...
124
    }
-
 
125
    
143
    }
126
    
144
    
127
    /**
145
    /**
128
     *
146
     *
129
     * @param int $feed_uuid
147
     * @param int $feed_uuid
-
 
148
     * @return Feed
-
 
149
     */
-
 
150
    public function fetchOneByUuidAndNetworkId($uuid, $network_id)
-
 
151
    {
-
 
152
        $prototype = new Feed();
-
 
153
        $select = $this->sql->select(self::_TABLE);
-
 
154
        $select->where->equalTo('uuid', $uuid);
-
 
155
        $select->where->notEqualTo('status', Feed::STATUS_DELETED);
-
 
156
        //$select->getSqlString($this->adapter->platform);
-
 
157
        
-
 
158
        return $this->executeFetchOneObject($select, $prototype);
-
 
159
    }
-
 
160
    
-
 
161
    
-
 
162
    /**
-
 
163
     *
-
 
164
     * @param string $feed_uuid
130
     * @return Feed
165
     * @return Feed
131
     */
166
     */
132
    public function fetchOneByUuidAnyStatus($uuid)
167
    public function fetchOneByUuidAnyStatus($uuid)
133
    {   
168
    {   
134
        $prototype = new Feed();
169
        $prototype = new Feed();
Línea 135... Línea 170...
135
        $select = $this->sql->select(self::_TABLE);
170
        $select = $this->sql->select(self::_TABLE);
136
        $select->where->equalTo('uuid', $uuid);
171
        $select->where->equalTo('uuid', $uuid);
Línea -... Línea 172...
-
 
172
    
-
 
173
        
-
 
174
        return $this->executeFetchOneObject($select, $prototype);
-
 
175
    }
-
 
176
    
-
 
177
    
-
 
178
    /**
-
 
179
     *
-
 
180
     * @param string $feed_uuid
-
 
181
     * @param int $network_id
-
 
182
     * @return Feed
-
 
183
     */
-
 
184
    public function fetchOneByUuidAndNetworkIdAnyStatus($uuid, $network_id)
-
 
185
    {
-
 
186
        $prototype = new Feed();
-
 
187
        $select = $this->sql->select(self::_TABLE);
-
 
188
        $select->where->equalTo('uuid', $uuid);
-
 
189
        $select->where->equalTo('network_id', $network_id);
-
 
190
        
137
    
191
        return $this->executeFetchOneObject($select, $prototype);
138
        
192
    }
139
        return $this->executeFetchOneObject($select, $prototype);
193
    
140
    }
194
    
141
    
195