_sModule = 'bx_tasks'; $this->_oModule = BxDolModule::getInstance($this->_sModule); parent::__construct($aInfo, $oTemplate); } public function setProfileId($iProfileId) { if(($sKey = 'gh_app_id') && isset($this->aInputs[$sKey])) { $sModule = 'bx_github'; $sMethod = 'get_apps'; if(bx_is_srv($sModule, $sMethod)) { $aApps = bx_srv($sModule, $sMethod, [$iProfileId]); if($aApps !== false) { $this->aInputs[$sKey]['values'][] = [ 'key' => '', 'value' => _t('_sys_please_select'), ]; foreach($aApps as $aApp) $this->aInputs[$sKey]['values'][] = [ 'key' => $aApp['id'], 'value' => $aApp['title'], ]; } else unset($this->aInputs[$sKey]); } } } } /** @} */