From d0b44e9ed9056330d0b248172c8cf2ff78e85f13 Mon Sep 17 00:00:00 2001 From: Safat Date: Mon, 10 Nov 2025 21:38:46 +1100 Subject: [PATCH] MDL-85235 tool_mobile: Add extend ios app banner hook --- .../hooks/before_extend_ios_app_banner.php | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 public/admin/tool/mobile/classes/local/hooks/before_extend_ios_app_banner.php diff --git a/public/admin/tool/mobile/classes/local/hooks/before_extend_ios_app_banner.php b/public/admin/tool/mobile/classes/local/hooks/before_extend_ios_app_banner.php new file mode 100644 index 00000000000..8555bdcd6db --- /dev/null +++ b/public/admin/tool/mobile/classes/local/hooks/before_extend_ios_app_banner.php @@ -0,0 +1,78 @@ +. + +namespace tool_mobile\local\hooks; + +/** + * Allow adjustment of ios smart app banner fields. + * + * @package tool_mobile + * @copyright 2025 Safat Shahin + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +#[\core\attribute\label('Allow adjustment of ios smart app banner fields')] +#[\core\attribute\tags('mobile')] +final class before_extend_ios_app_banner { + /** + * Create a new instance of the hook. + * + * @param string $appid The app id for the ios smart banner + * @param string $appargument The app argument for the ios smart banner + */ + public function __construct( + /** @var string $appid The app id for the ios smart banner */ + private string $appid, + /** @var string $appargument The app argument for the ios smart banner */ + private string $appargument, + ) { + } + + /** + * Get the appid. + * + * @return string + */ + public function get_appid(): string { + return $this->appid; + } + + /** + * Set the appid. + * + * @param string $appid + */ + public function set_appid(string $appid): void { + $this->appid = $appid; + } + + /** + * Get the appargument. + * + * @return string + */ + public function get_appargument(): string { + return $this->appargument; + } + + /** + * Set the appargument. + * + * @param string $appargument + */ + public function set_appargument(string $appargument): void { + $this->appargument = $appargument; + } +}