Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3454 Rev 3639
Línea 75... Línea 75...
75
        //echo $select->getSqlString($this->adapter->platform);
75
        //echo $select->getSqlString($this->adapter->platform);
Línea 76... Línea 76...
76
        
76
        
77
        return $this->executeFetchAllObject($select, $prototype);
77
        return $this->executeFetchAllObject($select, $prototype);
Línea -... Línea 78...
-
 
78
    }
-
 
79
    
-
 
80
    
-
 
81
    
-
 
82
    /**
-
 
83
     *
-
 
84
     * @param int $network_id
-
 
85
     * @return Post[]
-
 
86
     */
-
 
87
    public function fetchAllActiveByNetworkId($network_id)
-
 
88
    {
-
 
89
        $prototype = new Post();
-
 
90
        $select = $this->sql->select(self::_TABLE);
-
 
91
        $selec->where->equalTo('network_id', $network_id);
-
 
92
        $select->where->equalTo('status', Post::STATUS_ACTIVE);
-
 
93
        $select->order('date DESC');
-
 
94
        
-
 
95
        
-
 
96
        //echo $select->getSqlString($this->adapter->platform);
-
 
97
        
-
 
98
        return $this->executeFetchAllObject($select, $prototype);
78
    }
99
        
79
    
100
    
80
    /**
101
    /**
81
     *
102
     *
82
     * @param int $id
103
     * @param int $id
Línea 104... Línea 125...
104
        $select->where->equalTo('uuid', $uuid);
125
        $select->where->equalTo('uuid', $uuid);
Línea 105... Línea 126...
105
        
126
        
106
        return $this->executeFetchOneObject($select, $prototype);
127
        return $this->executeFetchOneObject($select, $prototype);
Línea -... Línea 128...
-
 
128
    }
-
 
129
    
-
 
130
    /**
-
 
131
     *
-
 
132
     * @param string $uuid
-
 
133
     * @param int $network_id
-
 
134
     * @return Post
-
 
135
     */
-
 
136
    public function fetchOneByUuidAndNetworkId($uuid, $network_id)
-
 
137
    {
-
 
138
        $prototype = new Post();
-
 
139
        $select = $this->sql->select(self::_TABLE);
-
 
140
        $select->where->equalTo('uuid', $uuid);
-
 
141
        $select->where->equalTo('network_id', $network_id);
-
 
142
        
-
 
143
        return $this->executeFetchOneObject($select, $prototype);
Línea 107... Línea 144...
107
    }
144
    }
108
    
145
    
109
    
146
    
110
    /**
147
    /**