uawdijnntqw1x1x1
IP : 216.73.216.28
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
convergine
/
carebot
/
src
/
models
/
..
/
Carebot.php
/
/
<?php /** * Author: Convergine (http://www.convergine.com) * Website: http://www.convergine.com * Support: http://support.convergine.com * Version: commerce4.repo * * Copyright: (c) 2009 - 2023 Convergine.com * * Date: 7/4/2023 * Time: 12:16 PM */ namespace convergine\carebot; use convergine\carebot\models\SettingsModel; use convergine\carebot\variables\CarebotVariable; use craft\base\Model; use craft\web\twig\variables\CraftVariable; use yii\base\Event; class Carebot extends \craft\base\Plugin{ public bool $hasCpSettings = true; public bool $hasCpSection = true; public ?string $name = 'Carebot'; public function init() { parent::init(); /** @var SettingsModel $settings */ $settings = $this->getSettings(); // Register variables Event::on( CraftVariable::class, CraftVariable::EVENT_INIT, function (Event $event) { $variable = $event->sender; $variable->set('carebot', CarebotVariable::class); },[],true ); } protected function createSettingsModel(): ?Model { return new SettingsModel(); } protected function settingsHtml(): ?string { return \Craft::$app->getView()->renderTemplate( 'carebot/settings', [ 'settings' => $this->getSettings() ] ); } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/convergine/carebot/src/models/../Carebot.php