flexible-shipping
/
vendor_prefixed
/
octolize
/
wp-octolize-docs-chat
/
src
/
Chat
/
HookableChatObjects.php
flexible-shipping
/
vendor_prefixed
/
octolize
/
wp-octolize-docs-chat
/
src
/
Chat
Last commit date
views
2 weeks ago
AjaxChatSettings.php
2 weeks ago
Assets.php
2 weeks ago
ChatContainer.php
2 weeks ago
ChatSettings.php
2 weeks ago
ChatSettingsProvider.php
2 weeks ago
ConsentSettings.php
2 weeks ago
DocsChat.php
2 weeks ago
HookableChatObjects.php
2 weeks ago
HookableChatObjects.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | namespace FSVendor\Octolize\Docs\Chat; |
| 4 | |
| 5 | use FSVendor\WPDesk\PluginBuilder\Plugin\HookableCollection; |
| 6 | use FSVendor\WPDesk\PluginBuilder\Plugin\HookableParent; |
| 7 | use FSVendor\WPDesk\ShowDecision\ShouldShowStrategy; |
| 8 | class HookableChatObjects implements HookableCollection |
| 9 | { |
| 10 | use HookableParent; |
| 11 | private string $plugin_slug; |
| 12 | private string $plugin_url; |
| 13 | private string $version; |
| 14 | private ChatSettings $settings; |
| 15 | private ShouldShowStrategy $show_strategy; |
| 16 | public function __construct(string $plugin_slug, string $plugin_url, string $version, ShouldShowStrategy $show_strategy) |
| 17 | { |
| 18 | $this->plugin_slug = $plugin_slug; |
| 19 | $this->plugin_url = $plugin_url; |
| 20 | $this->version = $version; |
| 21 | $this->show_strategy = $show_strategy; |
| 22 | } |
| 23 | public function hooks() |
| 24 | { |
| 25 | $this->add_hookable(new ChatContainer($this->show_strategy, $this->plugin_slug)); |
| 26 | $this->add_hookable(new AjaxChatSettings($this->plugin_slug)); |
| 27 | $this->add_hookable(new Assets($this->plugin_url, $this->version, $this->show_strategy)); |
| 28 | $this->hooks_on_hookable_objects(); |
| 29 | } |
| 30 | } |
| 31 |