Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1 Rev 3298
Línea 51... Línea 51...
51
     * 
51
     * 
52
     * @return Post[]
52
     * @return Post[]
53
     */
53
     */
54
    public function fetchAll()
54
    public function fetchAll()
55
    {
55
    {
56
        $prototype = new Post;
56
        $prototype = new Post();
57
        $select = $this->sql->select(self::_TABLE);
57
        $select = $this->sql->select(self::_TABLE);
Línea 58... Línea 58...
58
        
58
        
59
        return $this->executeFetchAllObject($select, $prototype);
59
        return $this->executeFetchAllObject($select, $prototype);
Línea 64... Línea 64...
64
     *
64
     *
65
     * @return Post[]
65
     * @return Post[]
66
     */
66
     */
67
    public function fetchAllActives()
67
    public function fetchAllActives()
68
    {
68
    {
69
        $prototype = new Post;
69
        $prototype = new Post();
70
        $select = $this->sql->select(self::_TABLE);
70
        $select = $this->sql->select(self::_TABLE);
71
        $select->where->equalTo('status', Post::STATUS_ACTIVE);
71
        $select->where->equalTo('status', Post::STATUS_ACTIVE);
72
        $select->order('date DESC');
72
        $select->order('date DESC');
Línea 97... Línea 97...
97
     * @param string $uuid
97
     * @param string $uuid
98
     * @return Post
98
     * @return Post
99
     */
99
     */
100
    public function fetchOneByUuid($uuid)
100
    public function fetchOneByUuid($uuid)
101
    {
101
    {
102
        $prototype = new Post;
102
        $prototype = new Post();
103
        $select = $this->sql->select(self::_TABLE);
103
        $select = $this->sql->select(self::_TABLE);
104
        $select->where->equalTo('uuid', $uuid);
104
        $select->where->equalTo('uuid', $uuid);
Línea 105... Línea 105...
105
        
105
        
106
        return $this->executeFetchOneObject($select, $prototype);
106
        return $this->executeFetchOneObject($select, $prototype);