Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 1 Rev 232
Línea 43... Línea 43...
43
            self::$_instance = new ContentReactionMapper($adapter);
43
            self::$_instance = new ContentReactionMapper($adapter);
44
        }
44
        }
45
        return self::$_instance;
45
        return self::$_instance;
46
    }
46
    }
Línea -... Línea 47...
-
 
47
    
-
 
48
    
-
 
49
    /**
-
 
50
     *
-
 
51
     * @param int $feed_id
-
 
52
     * @return array
-
 
53
     */
-
 
54
    public function fetchAllByFeedId($feed_id)
-
 
55
    {
-
 
56
        $prototype = new ContentReaction();
-
 
57
        
-
 
58
        $select = $this->sql->select(self::_TABLE);
-
 
59
        $select->where->equalTo('feed_id', $feed_id);
-
 
60
        $select->where->equalTo('relational', ContentReaction::RELATIONAL_FEED);
-
 
61
        $select->order('added_on DESC');
-
 
62
        
-
 
63
        return $this->executeFetchAllObject($select, $prototype);
-
 
64
    }
47
    
65
    
48
    /**
66
    /**
49
     * 
67
     * 
50
     * @param int $feed_id
68
     * @param int $feed_id
51
     * @return array
69
     * @return array
Línea 216... Línea 234...
216
        $prototype = new ContentReaction();
234
        $prototype = new ContentReaction();
217
        return $this->executeFetchOneObject($select, $prototype);
235
        return $this->executeFetchOneObject($select, $prototype);
218
    }
236
    }
Línea -... Línea 237...
-
 
237
    
-
 
238
    
219
    
239
    
220
    
240
    
221
    /**
241
    /**
222
     * 
242
     * 
223
     * @param int $feed_id
243
     * @param int $feed_id