Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 170 Rev 244
Línea 153... Línea 153...
153
        $select->order(['order', 'name']);
153
        $select->order(['order', 'name']);
Línea 154... Línea 154...
154
        
154
        
155
        return $this->executeFetchAllObject($select, $prototype);
155
        return $this->executeFetchAllObject($select, $prototype);
Línea -... Línea 156...
-
 
156
    }
-
 
157
    
-
 
158
    
-
 
159
    /**
-
 
160
     *
-
 
161
     * @param int $company_id
-
 
162
     * @param int $topic_id
-
 
163
     * @param int $capsule_id
-
 
164
     * @return CompanyMicrolearningSlide
-
 
165
     */
-
 
166
    public function fetchFirstByCompanyIdAndTopicIdAndCapsuleId($company_id, $topic_id, $capsule_id)
-
 
167
    {
-
 
168
        $prototype = new CompanyMicrolearningSlide();
-
 
169
        
-
 
170
        $select = $this->sql->select(self::_TABLE);
-
 
171
        $select->where->equalTo('company_id', $company_id);
-
 
172
        $select->where->equalTo('topic_id', $topic_id);
-
 
173
        $select->where->equalTo('capsule_id', $capsule_id);
-
 
174
        $select->order(['order']);
-
 
175
        
-
 
176
        
-
 
177
        return $this->executeFetchOneObject($select, $prototype);
156
    }
178
    }
157
    
179
    
158
    /**
180
    /**
159
     *
181
     *
160
     * @param int $companyId
182
     * @param int $companyId