plugins->moduleInfo(self::id(), 'name'); return __(is_string($name) ? $name : self::id()); } /** * This module path. */ public static function path(): string { return dirname(__DIR__); } /** * Encryption methods combo. * * @return array */ public static function cryptCombo(): array { return [ __('No encryption') => 'plaintext', __('Crypt DES standard') => 'crypt_std_des', __('Crypt DES étendu') => 'crypt_ext_des', __('Crypt MD5') => 'crypt_md5', __('Crypt Blowfish') => 'crypt_blowfish', __('Crypt SHA256') => 'crypt_sha256', __('Crypt SHA512') => 'crypt_sha512', ]; } /** * Admin section menu. * * @return array */ public static function sectionCombo(): array { return [ __('Settings') => 'settings', __('Logins history') => 'logins', __('Authorized users') => 'passwords', ]; } }