Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1487 Rev 1488
Línea 165... Línea 165...
165
    }
165
    }
Línea 166... Línea 166...
166
    
166
    
167
      
167
      
168
    /**
168
    /**
169
     *
169
     *
170
     * @param int $company_id
170
     * @param int $survey_id
171
     * @param string $search
171
     * @param string $search
172
     * @param int $page
172
     * @param int $page
173
     * @param int $records_per_page
173
     * @param int $records_per_page
174
     * @param string $order_field
174
     * @param string $order_field
175
     * @param string $order_direction
175
     * @param string $order_direction
176
     * @return Paginator
176
     * @return Paginator
177
     */
177
     */
178
    public function fetchAllDataTableByCompanyId($company_id, $search, $page = 1, $records_per_page = 10, $order_field= 'first_name', $order_direction = 'ASC')
178
    public function fetchAllDataTableBySurveyId($survey_id, $search, $page = 1, $records_per_page = 10, $order_field= 'first_name', $order_direction = 'ASC')
179
    {
179
    {
180
        $prototype = new SurveyTest();
180
        $prototype = new SurveyTest();
Línea 181... Línea 181...
181
        $select = $this->sql->select(self::_TABLE);
181
        $select = $this->sql->select(self::_TABLE);
182
        $select->where->equalTo('company_id', $company_id);
182
        $select->where->equalTo('survey_id', $survey_id);
183
        
183
        
184
        if($search) {
184
        if($search) {