findIdsBy(array( 'groupid' => $groupids )); $competences = $this->gets($ids); if (!$competences) { return array(); } $resourceids = array(); foreach ($competences as $tmpCompetence) { $resourceids[] = $tmpCompetence['resourceid']; } $objKifResourceManage = new KifResourceManage(); $resources = $objKifResourceManage->gets($resourceids); foreach ($competences as $tmpKey => $tmpCompetence) { $resourceid = $tmpCompetence['resourceid']; $resource = $resources[$resourceid]; $competences[$tmpKey]['app_name'] = $resource['app_name']; $competences[$tmpKey]['control_name'] = $resource['control_name']; $competences[$tmpKey]['action_name'] = $resource['action_name']; } return $competences; } }