Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 43 Rev 54
Línea 60... Línea 60...
60
        $select->limit(20);
60
        $select->limit(20);
Línea 61... Línea 61...
61
        
61
        
62
        return $this->executeFetchAllObject($select, $prototype);
62
        return $this->executeFetchAllObject($select, $prototype);
Línea -... Línea 63...
-
 
63
    }
-
 
64
    
-
 
65
    
-
 
66
    /**
-
 
67
     *
-
 
68
     * @param int $user_id
-
 
69
     * @return CompanyMicrolearningUserLog[]
-
 
70
     */
-
 
71
    public function fetchAllByUserId($user_id)
-
 
72
    {
-
 
73
        $prototype = new CompanyMicrolearningUserLog();
-
 
74
        
-
 
75
        $select = $this->sql->select(self::_TABLE);
-
 
76
        $select->where->equalTo('user_id', $user_id);
-
 
77
        $select->order(['id desc']);
-
 
78
 
-
 
79
        return $this->executeFetchAllObject($select, $prototype);
63
    }
80
    }
64
    
81
    
65
    /**
82
    /**
66
     *
83
     *
67
     * @param int $user_id
84
     * @param int $user_id