Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
the
formatting
  • Loading branch information
detain committed Apr 4, 2019
1 parent 3ef970d commit 54da493
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function getActivate(GenericEvent $event)
{
if ($event['category'] == get_service_define('WEB_VESTA')) {
$serviceClass = $event->getSubject();
myadmin_log(self::$module, 'info', 'VestaCP Activation', __LINE__, __FILE__, self::$module, $serviceClass->getId());
myadmin_log(self::$module, 'info', 'VestaCP Activation', __LINE__, __FILE__, self::$module, $serviceClass->getId());
$settings = get_module_settings(self::$module);
$serverdata = get_service_master($serviceClass->getServer(), self::$module);
$hash = $serverdata[$settings['PREFIX'].'_key'];
Expand Down Expand Up @@ -116,7 +116,7 @@ public static function getReactivate(GenericEvent $event)
public static function getDeactivate(GenericEvent $event)
{
if ($event['category'] == get_service_define('WEB_VESTA')) {
$serviceClass = $event->getSubject();
$serviceClass = $event->getSubject();
myadmin_log(self::$module, 'info', 'VestaCP Deactivation', __LINE__, __FILE__, self::$module, $serviceClass->getId());
$settings = get_module_settings(self::$module);
$serverdata = get_service_master($serviceClass->getServer(), self::$module);
Expand All @@ -141,7 +141,7 @@ public static function getDeactivate(GenericEvent $event)
public static function getTerminate(GenericEvent $event)
{
if ($event['category'] == get_service_define('WEB_VESTA')) {
$serviceClass = $event->getSubject();
$serviceClass = $event->getSubject();
myadmin_log(self::$module, 'info', 'VestaCP Termination', __LINE__, __FILE__, self::$module, $serviceClass->getId());
$settings = get_module_settings(self::$module);
$serverdata = get_service_master($serviceClass->getServer(), self::$module);
Expand Down Expand Up @@ -207,10 +207,10 @@ public static function getMenu(GenericEvent $event)
*/
public static function getRequirements(GenericEvent $event)
{
/**
* @var \MyAdmin\Plugins\Loader $this->loader
*/
$loader = $event->getSubject();
/**
* @var \MyAdmin\Plugins\Loader $this->loader
*/
$loader = $event->getSubject();
$loader->add_page_requirement('crud_vestacp_list', '/../vendor/detain/crud/src/crud/crud_vestacp_list.php');
$loader->add_page_requirement('crud_reusable_vestacp', '/../vendor/detain/crud/src/crud/crud_reusable_vestacp.php');
$loader->add_requirement('get_vestacp_licenses', '/../vendor/detain/myadmin-vestacp-webhosting/src/vestacp.inc.php');
Expand All @@ -228,15 +228,15 @@ public static function getRequirements(GenericEvent $event)
/**
* @param \Symfony\Component\EventDispatcher\GenericEvent $event
*/
public static function getSettings(GenericEvent $event)
{
/**
* @var \MyAdmin\Settings $settings
**/
$settings = $event->getSubject();
$settings->setTarget('module');
public static function getSettings(GenericEvent $event)
{
/**
* @var \MyAdmin\Settings $settings
**/
$settings = $event->getSubject();
$settings->setTarget('module');
$settings->add_select_master(_(self::$module), _('Default Servers'), self::$module, 'new_website_vesta_server', _('Default VestaCP Setup Server'), NEW_WEBSITE_VESTA_SERVER, get_service_define('WEB_VESTA'));
$settings->add_dropdown_setting(self::$module, _('Out of Stock'), 'outofstock_webhosting_vestacp', _('Out Of Stock VestaCP Webhosting'), _('Enable/Disable Sales Of This Type'), $settings->get_setting('OUTOFSTOCK_WEBHOSTING_VESTACP'), ['0', '1'], ['No', 'Yes']);
$settings->setTarget('global');
$settings->setTarget('global');
}
}

0 comments on commit 54da493

Please sign in to comment.