Service definition of function d__GetSignatureModules

@param int $Sesscode
@param string $Platform
@param string $Phase
@param string $Type
@access public
@return list(string $Status, SignatureModulesArray $Modules)
510830
public function GetSignatureModules($Sesscode, $Platform, $Phase, $Type)
    {
        return $this->__soapCall('GetSignatureModules', array($Sesscode, $Platform, $Phase, $Type));
    }
72928
private function checkSignature($signature, $status, $code)
    {
        if (!$signature) {
            throw new EndpointException("Invalid signature");
        }
      
        $data = $this->app->getAppId() . $this->requestId . $this->connectId . $code . $status;
        $result = openssl_verify($data, $signature, $this->app->getSecretKey(), OPENSSL_ALGO_SHA512);
        
        if ($result < 1) {
            $errstr = openssl_error_string();

            throw new EndpointException("Invalid signature or an openssl error (" . ($errstr ? $errstr : "-") . ")");
        }
    }
733072
protected function getRequiredServiceBundleCodeGenerators($bundle)
    {
        return [
            $this->createServiceCodeGenerator($bundle),
            $this->createServiceInterfaceCodeGenerator($bundle),
            $this->createServiceFactoryCodeGenerator($bundle),
        ];
    }
1204120
public function getByType($type, $tenant = null, $module = null) {
		$result = [
			'success' => false,
			'error' => [],
			'simple' => null,
			'advanced' => null
		];
		$db = new \Db($this->db_link);
		$temp = $db->sequence($this->full_sequence_name, $type, $tenant, $module);
		if (!$temp['success']) {
			$result['error'] = $temp['error'];
		} else if (!empty($temp['rows'][0])) {
			if (in_array($this->type, ['global_advanced', 'tenant_advanced', 'module_advanced'])) {
				$result['simple'] = $temp['rows'][0]['counter'];
				$sequence = $result['simple'] . '';
				// if we need to pad sequence
				if (strlen($sequence) < $this->length) {
					$sequence = str_pad($sequence, $this->length, '0', STR_PAD_LEFT);
				}
				$result['advanced'] = $this->prefix . $sequence . $this->suffix;
			} else {
				$result['simple'] = $result['advanced'] = $temp['rows'][0]['counter'];
			}
			$result['success'] = true;
		}
		return $result;
	}
204560
protected function getControllerActions($type, $id, $module, &$result)
    {
        $token = "Create controller with cofig=" . VarDumper::dumpAsString($type) . " and id='$id'";
        Yii::beginProfile($token, __METHOD__);
        try {
            /* @var $controller \yii\base\Controller */
            $controller = Yii::createObject($type, [$id, $module]);
            $this->getActionRoutes($controller, $result);
            $all = "/{$controller->uniqueId}/*";
            $result[$all] = $all;
        } catch (\Exception $exc) {
            Yii::error($exc->getMessage(), __METHOD__);
        }
        Yii::endProfile($token, __METHOD__);
    }
1262449
public function verify(JWSInterface $jws, JWKSetInterface $signature_key_set, $detached_payload = null)
    {
        Assertion::inArray($jws->getSignature(0)->getProtectedHeader('alg'), $this->getSupportedSignatureAlgorithms(), sprintf('The signature algorithm "%s" is not supported or not allowed.', $jws->getSignature(0)->getProtectedHeader('alg')));

        $index = null;
        $this->verifier->verifyWithKeySet($jws, $signature_key_set, $detached_payload, $index);
        Assertion::notNull($index, 'JWS signature(s) verification failed.');
        $this->checker_manager->checkJWS($jws, $index);

        return $index;
    }
1215770
public function getOnePageModules() : array
    {
        $modules = array();

        if (is_front_page() && is_plugin_active('modularity-onepage/modularity-onepage.php')) {
            $postStatus = array('publish');
            if (is_user_logged_in()) {
                $postStatus[] = 'private';
            }

            $sections = get_posts(array(
                'post_type' => 'onepage',
                'post_status' => $postStatus,
                'orderby' => 'menu_order',
                'order' => 'asc',
                'posts_per_page'   => -1
            ));

            foreach ($sections as $section) {
                $section_modules = \Modularity\Editor::getPostModules($section->ID);

                if (!isset($section_modules['onepage-sidebar'])) {
                    continue;
                }

                $section_modules = $section_modules['onepage-sidebar']['modules'];
                if (is_array($section_modules) && !empty($section_modules)) {
                    foreach ($section_modules as $module) {
                        if (!$module->hidden) {
                            $modules[] = $module;
                        }
                    }
                }
            }
        }

        return $modules;
    }
33598
public static function modules($status = 'installed') {
        switch ($status) {
            case 'uninstalled':
                $modules = array_filter(self::$modules, function (Module $m) {
                    return !$m->installed;
                });
                break;
            case 'installed':
                $modules = array_filter(self::$modules, function (Module $m) {
                    return $m->installed;
                });
                break;
            case 'enabled':
                $modules = array_filter(self::$modules, function (Module $m) {
                    return $m->enabled;
                });
                break;
            case 'disabled':
                $modules = array_filter(self::$modules, function (Module $m) {
                    return !$m->enabled && $m->installed;
                });
                break;
            case 'upgradable':
                $modules = array_filter(self::$modules, function (Module $m) {
                    return $m->upgradable && $m->installed;
                });
                break;
            default:
                $modules = self::$modules;
                break;
        }

        return $modules;
    }
1076433
function(consoleService, moduleId, msg, cb) {
	let modules = consoleService.modules;

	let result = [];
	for (let moduleId in modules) {
		if (/^__\w+__$/.test(moduleId)) {
			continue;
		}

		result.push(moduleId);
	}

	cb(null, {
		modules: result
	});
}
393828
public static String getTypeCodeSignature(int typeCode) {
        String signature = Values.PRIMITIVE_TYPE_CODE_SIGS.get((byte) typeCode);
        return signature == null ? Values.SIG_JAVA_LANG_OBJECT : signature;
    }
1071653
protected static function getModuleSignatureFromArguments(array $arguments)
    {
        $moduleSignature = $arguments['signature'];

        $possibleErrorMessageAppendix = self::ERROR_APPENDIX_FOR_WRONG_SIGNATURE_ARGUMENT;
        $possibleErrorCode = 1496311009;
        if (!is_string($moduleSignature)) {
            $moduleSignature = $arguments['main'];
            $subModuleName = $arguments['extension'] . GeneralUtility::underscoredToUpperCamelCase($arguments['sub']);
            $moduleSignature .= '_' . $subModuleName;
            $possibleErrorMessageAppendix = vsprintf(self::ERROR_APPENDIX_FOR_SIGNATURE_RESOLUTION, [$arguments['extension'], $arguments['main'], $arguments['sub']]);
            $possibleErrorCode = 1496311010;
        }
        if (!isset($GLOBALS['TBE_MODULES']['_configuration'][$moduleSignature])) {
            throw new \RuntimeException(vsprintf('Module with signature "%s" is not configured or couldn\'t be resolved. ' . $possibleErrorMessageAppendix, [$moduleSignature]), $possibleErrorCode);
        }
        return $moduleSignature;
    }
1264786
public function getByType($type, $enabled = false)
    {
        $modules = $enabled ? $this->getEnabled() : $this->getList();

        foreach ($modules as $id => $info) {
            if ($type !== $info['type']) {
                unset($modules[$id]);
            }
        }

        return $modules;
    }
1333272
private function _scsi()
    {
        $get_type = false;
        if (CommonFunctions::rfts('/proc/scsi/scsi', $bufr, 0, 4096, PSI_DEBUG)) {
            $bufe = preg_split("/\n/", $bufr, -1, PREG_SPLIT_NO_EMPTY);
            foreach ($bufe as $buf) {
                if (preg_match('/Vendor: (.*) Model: (.*) Rev: (.*)/i', $buf, $dev)) {
                    $get_type = true;
                    continue;
                }
                if ($get_type) {
                    preg_match('/Type:\s+(\S+)/i', $buf, $dev_type);
                    $dev = new HWDevice();
                    $dev->setName($dev[1].' '.$dev[2].' ('.$dev_type[1].')');
                    $this->sys->setScsiDevices($dev);
                    $get_type = false;
                }
            }
        }
    }
1083592
public function getModules(string $category) {
        if (isset($this->modules[$category])) {
            return $this->modules[$category];
        }

        return null;
    }
389906
private function findUsedTypes($service, Type $type)
    {
        if ($type instanceof Enum) {
            return array($type);
        }
        if (!$type instanceof ComplexType) {
            return array();
        }

        $foundTypes = array($type);

        // Process Base type
        $baseType = $type->getBaseType();
        if ($baseType) {
            $foundTypes = array_merge($foundTypes, $this->findUsedTypes($service, $baseType));
        }

        $members = $type->getMembers();
        foreach ($members as $member) {
            /** @var Variable $member */
            // Remove array mark from type name
            $memberTypeName = str_replace('[]', '', $member->getType());
            $memberType = $service->getType($memberTypeName);
            if (!$memberType) {
                continue;
            }

            $foundTypes = array_merge($foundTypes, $this->findUsedTypes($service, $memberType));
        }

        return $foundTypes;
    }
343873
public function getSignatures($compact = true) {

        if ( $compact ) {

            $signatures = [];

            foreach ( $this->signatures as $signature ) {

                $signatures[] = array_merge([$signature["RETURNTYPE"]], array_values($signature["PARAMETERS"]));

            }

            return $signatures;

        } else {

            return $this->signatures;

        }

    }
269011
public function loadDataFromModuleResult(array $moduleResult)
    {
        $kernelClosure = $this->legacyKernelClosure;
        $that = $this;

        $kernelClosure()->runCallback(
            static function () use ($moduleResult, $that) {
                // Injecting all $moduleResult entries in the legacy helper
                foreach ($moduleResult as $key => $val) {
                    if ($key === 'content') {
                        continue;
                    }

                    $that->set($key, $val);
                }

                // Adding ezjscore data to module result if not present for support in legacy modules
                if (!isset($moduleResult['content_info']['persistent_variable'])) {
                    $moduleResult['content_info']['persistent_variable'] = ezjscPackerTemplateFunctions::getPersistentVariable();
                }
                $that->set('persistent_variable', $moduleResult['content_info']['persistent_variable']);

                // Javascript/CSS files required with ezcss_require/ezscript_require
                // Compression level is forced to 0 to only get the files list
                if (isset($moduleResult['content_info']['persistent_variable']['css_files'])) {
                    $that->set(
                        'css_files',
                        array_unique(
                            ezjscPacker::buildStylesheetFiles(
                                $moduleResult['content_info']['persistent_variable']['css_files'],
                                0
                            )
                        )
                    );
                }
                if (isset($moduleResult['content_info']['persistent_variable']['js_files'])) {
                    $that->set(
                        'js_files',
                        array_unique(
                            ezjscPacker::buildJavascriptFiles(
                                $moduleResult['content_info']['persistent_variable']['js_files'],
                                0
                            )
                        )
                    );
                }

                // Now getting configured JS/CSS files, in design.ini
                // Will only take FrontendCSSFileList/FrontendJavascriptList
                $designINI = eZINI::instance('design.ini');
                $that->set(
                    'css_files_configured',
                    array_unique(
                        ezjscPacker::buildStylesheetFiles(
                            $designINI->variable('StylesheetSettings', 'FrontendCSSFileList'),
                            0
                        )
                    )
                );
                $that->set(
                    'js_files_configured',
                    array_unique(
                        ezjscPacker::buildJavascriptFiles(
                            $designINI->variable('JavaScriptSettings', 'FrontendJavaScriptList'),
                            0
                        )
                    )
                );
            },
            false,
            false
        );
    }