ja.son-williams.ca/www/plugins/jasonwilliams/calgaryconditions/Plugin.php

42 lines
1.1 KiB
PHP
Raw Normal View History

<?php namespace JasonWilliams\CalgaryConditions;
/**
* The plugin.php file (called the plugin initialization script) defines the plugin information class.
*/
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
public function pluginDetails()
{
return [
'name' => 'Calgary Conditions',
'description' => 'Provides local time and weather information for Calgary, AB, Canada',
'author' => 'Jason Williams',
'icon' => 'oc-icon-cloud'
];
}
public function registerSettings()
{
return [
'settings' => [
'label' => 'Weather Plugin',
'description' => 'Manage API keys and settings related to the weather plugin',
'icon' => 'icon-cog',
'class' => 'JasonWilliams\CalgaryConditions\Models\Settings',
'order' => 500,
]
];
}
public function registerComponents()
{
return [
'\JasonWilliams\CalgaryConditions\Components\CurrentInfo' => 'CurrentInfo'
];
}
}