diff options
author | Marc Alexander <admin@m-a-styles.de> | 2013-08-21 16:31:57 -0500 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2013-09-14 13:55:39 +0200 |
commit | 58755c4972128923f12cc1511bd24c36912bf890 (patch) | |
tree | 231192339574797f3eb61d0e1c9b0dfba62a2d0e /phpBB/phpbb | |
parent | df8e5f4c3c333be677489d2317f6991598a6cebf (diff) | |
download | forums-58755c4972128923f12cc1511bd24c36912bf890.tar forums-58755c4972128923f12cc1511bd24c36912bf890.tar.gz forums-58755c4972128923f12cc1511bd24c36912bf890.tar.bz2 forums-58755c4972128923f12cc1511bd24c36912bf890.tar.xz forums-58755c4972128923f12cc1511bd24c36912bf890.zip |
[feature/passwords] Add get_name() method to drivers
This will allow us to actually properly differentiate between the available
drivers.
PHPBB3-11610
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/crypto/driver/base.php | 21 | ||||
-rw-r--r-- | phpBB/phpbb/crypto/driver/interface.php | 7 |
2 files changed, 28 insertions, 0 deletions
diff --git a/phpBB/phpbb/crypto/driver/base.php b/phpBB/phpbb/crypto/driver/base.php index c134122174..f75031dabd 100644 --- a/phpBB/phpbb/crypto/driver/base.php +++ b/phpBB/phpbb/crypto/driver/base.php @@ -26,6 +26,9 @@ abstract class phpbb_crypto_driver_base implements phpbb_crypto_driver_interface /** @var phpbb_crypto_driver_helper */ protected $helper; + /** @var driver name */ + protected $name; + /** * Constructor of crypto driver object * @@ -44,4 +47,22 @@ abstract class phpbb_crypto_driver_base implements phpbb_crypto_driver_interface { return true; } + + /** + * @inheritdoc + */ + public function get_name() + { + return $this->name; + } + + /** + * Set driver name + * + * @param string $name Driver name + */ + public function set_name($name) + { + $this->name = $name; + } } diff --git a/phpBB/phpbb/crypto/driver/interface.php b/phpBB/phpbb/crypto/driver/interface.php index 9686aa33de..68313fbedd 100644 --- a/phpBB/phpbb/crypto/driver/interface.php +++ b/phpBB/phpbb/crypto/driver/interface.php @@ -65,4 +65,11 @@ interface phpbb_crypto_driver_interface * @return string String containing the hash settings */ public function get_settings_only($hash, $full = false); + + /** + * Get the driver name + * + * @return string Driver name + */ + public function get_name(); } |