Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 311 Rev 321
Línea 116... Línea 116...
116
    }
116
    }
Línea 117... Línea 117...
117
    
117
    
118
    /**
118
    /**
119
     * 
119
     * 
-
 
120
     * @param int[] $company_ids
-
 
121
     * @param string $search
-
 
122
     * @return HabitSkill[]
-
 
123
     */
-
 
124
    public function searchAllTemplateByCompayIds($company_ids, $search)
-
 
125
    {
-
 
126
        $prototype = new HabitSkill();
-
 
127
        
-
 
128
        
-
 
129
        $select = $this->sql->select(self::_TABLE);
-
 
130
        $select->where->in('company_id', $company_ids);
-
 
131
        $select->where->like('name', '%' . $search . '%');
-
 
132
        $select->where->equalTo('template', HabitSkill::TEMPLATE_YES);
-
 
133
        
-
 
134
        return $this->executeFetchAllObject($select, $prototype);
-
 
135
    }
-
 
136
    
-
 
137
    
-
 
138
    
-
 
139
    /**
-
 
140
     *
120
     * @param int[] $company_ids
141
     * @param int[] $company_ids
121
     * @return HabitSkill[]
142
     * @return HabitSkill[]
122
     */
143
     */
123
    public function fetchAllTemplateByCompayIds($company_ids)
144
    public function fetchAllTemplateByCompayIds($company_ids)
124
    {
145
    {