ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Static Public Member Functions | |
static | autoloadPSR0 ($className) |
Autoload function for SimpleSAMLphp modules following PSR-0. More... | |
static | autoloadPSR4 ($className) |
Autoload function for SimpleSAMLphp modules following PSR-4. More... | |
static | getModuleDir ($module) |
Retrieve the base directory for a module. More... | |
static | isModuleEnabled ($module) |
Determine whether a module is enabled. More... | |
static | getModules () |
Get available modules. More... | |
static | resolveClass ($id, $type, $subclass=null) |
Resolve module class. More... | |
static | getModuleURL ($resource, array $parameters=array()) |
Get absolute URL to a specified module resource. More... | |
static | getModuleHooks ($module) |
Get the available hooks for a given module. More... | |
static | callHooks ($hook, &$data=null) |
Call a hook in all enabled modules. More... | |
Static Public Attributes | |
static | $modules = array() |
static | $module_info = array() |
Static Private Member Functions | |
static | isModuleEnabledWithConf ($module, $mod_config) |
Definition at line 12 of file Module.php.
|
static |
Autoload function for SimpleSAMLphp modules following PSR-0.
string | $className | Name of the class. |
TODO: this autoloader should be removed once everything has been migrated to namespaces.
Definition at line 39 of file Module.php.
References $file, $module, $path, and SimpleSAML\Logger\warning().
|
static |
Autoload function for SimpleSAMLphp modules following PSR-4.
string | $className | Name of the class. |
Definition at line 83 of file Module.php.
References $file, and $module.
|
static |
Call a hook in all enabled modules.
This function iterates over all enabled modules and calls a hook in each module.
string | $hook | The name of the hook. |
mixed | &$data | The data which should be passed to each hook. Will be passed as a reference. |
Definition at line 364 of file Module.php.
Referenced by core_hook_sanitycheck(), sspmod_portal_Portal\getLoginInfo(), portal_hook_htmlinject(), SimpleSAML\Module\cron\Cron\runTag(), sanitycheck_hook_cron(), and SimpleSAML_exception_handler().
|
static |
Retrieve the base directory for a module.
The returned path name will be an absolute path.
string | $module | Name of the module |
Definition at line 122 of file Module.php.
References $baseDir, $module, and $moduleDir.
Referenced by SimpleSAML_XHTML_Template\findThemeTemplateDirs(), SimpleSAML\Locale\Translate\getDictionary(), and sspmod_core_Auth_Process_AttributeMap\loadMapFile().
|
static |
Get the available hooks for a given module.
string | $module | The module where we should look for hooks. |
Definition at line 325 of file Module.php.
|
static |
Get available modules.
Definition at line 204 of file Module.php.
References $path.
Referenced by core_hook_sanitycheck().
Get absolute URL to a specified module resource.
This function creates an absolute URL to a resource stored under ".../modules/<module>/www/".
string | $resource | Resource path, on the form "<module name>/<resource>" |
array | $parameters | Extra parameters which should be added to the URL. Optional. |
Definition at line 303 of file Module.php.
Referenced by sspmod_saml_Auth_Source_SP\__construct(), sspmod_saml_Auth_Source_SP\askForIdPChange(), sspmod_authtwitter_Auth_Source_Twitter\authenticate(), sspmod_authfacebook_Auth_Source_Facebook\authenticate(), sspmod_exampleauth_Auth_Source_External\authenticate(), sspmod_authYubiKey_Auth_Source_YubiKey\authenticate(), sspmod_multiauth_Auth_Source_MultiAuth\authenticate(), sspmod_core_Auth_UserPassOrgBase\authenticate(), sspmod_core_Auth_UserPassBase\authenticate(), sspmod_cas_Auth_Source_CAS\authenticate(), SimpleSAML_Utilities\createHttpPostRedirectLink(), sspmod_cas_Auth_Source_CAS\finalStep(), SimpleSAML\Utils\Auth\getAdminLoginURL(), getBaseURL(), SimpleSAML\Auth\Simple\getLoginURL(), sspmod_adfs_IdP_ADFS\getLogoutURL(), SimpleSAML\Auth\Simple\getLogoutURL(), sspmod_saml_IdP_SAML2\getLogoutURL(), sspmod_saml_Auth_Source_SP\getMetadataURL(), SimpleSAML\Utils\HTTP\getSecurePOSTRedirectURL(), SimpleSAML_IdP\handleLogoutRequest(), sspmod_consent_Logout\postLogout(), sspmod_exampleauth_Auth_Process_RedirectTest\process(), sspmod_core_Auth_Process_WarnShortSSOInterval\process(), sspmod_preprodwarning_Auth_Process_Warning\process(), sspmod_cdc_Auth_Process_CDC\process(), sspmod_authX509_Auth_Process_ExpiryWarning\process(), sspmod_expirycheck_Auth_Process_ExpiryDate\process(), sspmod_consent_Auth_Process_Consent\process(), sspmod_saml_Auth_Source_SP\startDisco(), SimpleSAML\IdP\IFrameLogoutHandler\startLogout(), sspmod_saml_Auth_Source_SP\startSSO1(), sspmod_saml_Auth_Process_ExpectedAuthnContextClassRef\unauthorized(), and sspmod_authorize_Auth_Process_Authorize\unauthorized().
|
static |
Determine whether a module is enabled.
Will return false if the given module doesn't exist.
string | $module | Name of the module |
Definition at line 142 of file Module.php.
References $config, $module, array, and SimpleSAML_Configuration\getOptionalConfig().
|
staticprivate |
Definition at line 149 of file Module.php.
References $module, $moduleDir, and SimpleSAML\Logger\error().
|
static |
Resolve module class.
This function takes a string on the form "<module>:<class>" and converts it to a class name. It can also check that the given class is a subclass of a specific class. The resolved classname will be "sspmod_<module>_< $type>="">_<class>.
It is also possible to specify a full classname instead of <module>:<class>.
An exception will be thrown if the class can't be resolved.
string | $id | The string we should resolve. |
string | $type | The type of the class. |
string | null | $subclass | The class should be a subclass of this class. Optional. |
Definition at line 252 of file Module.php.
Referenced by SimpleSAML_Stats\createOutput(), sspmod_statistics_StatDataset\getDelimiterPresentation(), sspmod_statistics_Ruleset\getRule(), SimpleSAML_Metadata_MetaDataStorageSource\getSource(), SimpleSAML_Auth_Source\parseAuthSource(), SimpleSAML_Auth_ProcessingChain\parseFilter(), and sspmod_consent_Store\parseStoreConfig().
|
static |
Definition at line 27 of file Module.php.
|
static |
Definition at line 20 of file Module.php.