Files
wordpress-dev-env/wordpress_plugins/wp-config-file-editor/Services/Profiles.class.php
Felix Förtsch 648ded8896 Initial commit
2020-10-20 14:39:50 +02:00

77 lines
1.3 KiB
PHP

<?php
/**
*
*/
namespace WCFE\Services;
# Module Framework
use WPPFW\Services\ServiceModule;
# Wordpres Plugin Framework
use WPPFW\Plugin\PluginBase;
# Wordpress Services Framework
use WPPFW\Services\Dashboard\Ajax\AjaxService;
/**
*
*/
class ProfilesModule extends ServiceModule {
/**
*
*/
const PROFILES_AJAX_SERVICE_KEY = 2;
/**
*
*/
const PROFILES_AJAX_VIEW_SERVICE_OBJECT_KEY = 0;
/**
*
*/
const PROFILES_AJAX_SERVICE_OBJECT_KEY = 1;
/**
* put your comment there...
*
* @param PluginBase $plugin
* @param mixed $services
*/
protected function initializeServices(PluginBase & $plugin, & $services)
{
$services[ self::PROFILES_AJAX_SERVICE_KEY ] = new AjaxService
(
$plugin,
array
(
self::PROFILES_AJAX_VIEW_SERVICE_OBJECT_KEY => new Profiles\Services\Profiles\AjaxView(),
self::PROFILES_AJAX_SERVICE_OBJECT_KEY => new Profiles\Services\Profiles\Ajax()
)
);
}
/**
* put your comment there...
*
*/
public function profilesView() {
return $this->getServiceObject( self::PROFILES_AJAX_SERVICE_KEY, self::PROFILES_AJAX_VIEW_SERVICE_OBJECT_KEY );
}
/**
* put your comment there...
*
*/
public function profilesService()
{
return $this->getServiceObject( self::PROFILES_AJAX_SERVICE_KEY, self::PROFILES_AJAX_SERVICE_OBJECT_KEY );
}
}