From 8dab016a7b652e2a0aafe03c085d9c51ab6f3ff2 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sun, 2 Feb 2014 18:04:38 +0100 Subject: [PATCH] [ticket/12115] Add methods to interface PHPBB3-12115 --- phpBB/phpbb/profilefields/type/type_interface.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/phpBB/phpbb/profilefields/type/type_interface.php b/phpBB/phpbb/profilefields/type/type_interface.php index 93020935e9..94f6882524 100644 --- a/phpBB/phpbb/profilefields/type/type_interface.php +++ b/phpBB/phpbb/profilefields/type/type_interface.php @@ -32,6 +32,13 @@ interface type_interface */ public function get_service_name(); + /** + * Get the name of template file for this type + * + * @return string Returns the name of the template file + */ + public function get_template_filename(); + /** * Get dropdown options for second step in ACP * @@ -178,8 +185,9 @@ interface type_interface /** * Return templated value/field. Possible values for $mode are: * change == user is able to set/enter profile values; preview == just show the value - * @param string $mode - * @param array $profile_row + * + * @param string $mode Mode for displaying the field (preview|change) + * @param array $profile_row Array with data for this field * @return null */ public function process_field_row($mode, $profile_row);