Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1 Rev 3163
Línea 93... Línea 93...
93
     * @param int $user_id
93
     * @param int $user_id
94
     * @return UserProfile
94
     * @return UserProfile
95
     */
95
     */
96
    public function fetchOnePublicByUserId($user_id)
96
    public function fetchOnePublicByUserId($user_id)
97
    {
97
    {
-
 
98
 
98
        $select = $this->sql->select(self::_TABLE);
99
        $select = $this->sql->select(self::_TABLE);
99
        $select->where->equalTo('user_id', $user_id);
100
        $select->where->equalTo('user_id', $user_id);
-
 
101
        $select->where->equalTo('public', UserProfile::PUBLIC_YES);
100
        $select->limit(1);
102
        $select->limit(1);
Línea 101... Línea 103...
101
        
103
        
102
        $prototype = new UserProfile();
104
        $prototype = new UserProfile();
103
        return $this->executeFetchOneObject($select, $prototype);
105
        return $this->executeFetchOneObject($select, $prototype);