Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3163 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3163 Rev 3255
Línea 57... Línea 57...
57
        $select->where->equalTo('user_id', $user_id);
57
        $select->where->equalTo('user_id', $user_id);
Línea 58... Línea 58...
58
        
58
        
59
        return $this->executeFetchAllObject($select, $prototype);
59
        return $this->executeFetchAllObject($select, $prototype);
Línea -... Línea 60...
-
 
60
    }
-
 
61
    
-
 
62
    
-
 
63
    /**
-
 
64
     *
-
 
65
     * @param int $user_id
-
 
66
     * @param string $search
-
 
67
     * @return UserProfile[]
-
 
68
     */
-
 
69
    public function fetchAllByUserIdAndSearch($user_id, $search = '')
-
 
70
    {
-
 
71
        $prototype = new UserProfile;
-
 
72
        $select = $this->sql->select(self::_TABLE);
-
 
73
        $select->where->equalTo('user_id', $user_id);
-
 
74
     
-
 
75
        if($search) {
-
 
76
            $select->where->like('name', '%' . $search . '%');
-
 
77
        }
-
 
78
        
-
 
79
        return $this->executeFetchAllObject($select, $prototype);
60
    }
80
    }
61
    
81
    
62
    /**
82
    /**
63
     * 
83
     * 
64
     * @param int $id
84
     * @param int $id