Conflicts: main/inc/lib/extra_field.lib.php main/inc/lib/sessionmanager.lib.php plugin/advancedsubscription/src/HookAdvancedSubscription.class.php1.10.x
parent
9923f2d7a5
commit
2e580e8b07
@ -0,0 +1,38 @@ |
||||
<?php |
||||
/** |
||||
* Created by PhpStorm. |
||||
* User: dbarreto |
||||
* Date: 19/12/14 |
||||
* Time: 09:45 AM |
||||
*/ |
||||
|
||||
class HookWSRegistration extends HookEvent implements HookWSRegistrationEventInterface |
||||
{ |
||||
|
||||
protected function __construct() |
||||
{ |
||||
parent::__construct('HookWSRegistration'); |
||||
} |
||||
|
||||
/** |
||||
* @param int $type |
||||
* @return int |
||||
*/ |
||||
public function notifyWSRegistration($type) |
||||
{ |
||||
/** @var \HookWSRegistrationObserverInterface $observer */ |
||||
if (!isset($this->eventData['server'])) { |
||||
global $server; |
||||
$this->eventData['server'] = $server; |
||||
} |
||||
$this->eventData['type'] = $type; |
||||
foreach ($this->observers as $observer) { |
||||
$data = $observer->hookWSRegistration($this); |
||||
$this->eventData['server'] = $data['server']; |
||||
if (isset($server)) { |
||||
$server = $this->eventData['server'] ; |
||||
} |
||||
} |
||||
return 1; |
||||
} |
||||
} |
@ -1,11 +0,0 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
/** |
||||
* Config the plugin |
||||
* @author Daniel Alejandro Barreto Alva <daniel.barreto@beeznest.com> |
||||
* @package chamilo.plugin.hookmanagement |
||||
*/ |
||||
|
||||
require_once __DIR__ . '/../../main/inc/global.inc.php'; |
||||
require_once api_get_path(LIBRARY_PATH) . 'plugin.class.php'; |
||||
require_once api_get_path(PLUGIN_PATH) . 'hookmanagement/src/HookManagementPlugin.class.php'; |
@ -1,2 +0,0 @@ |
||||
<?php |
||||
/* For license terms, see /license.txt */ |
@ -1,17 +0,0 @@ |
||||
<?php |
||||
/* For license terms, see /license.txt */ |
||||
/** |
||||
* This script is included by main/admin/settings.lib.php and generally |
||||
* includes things to execute in the main database (settings_current table) |
||||
* @package chamilo.plugin.hookmanagement |
||||
*/ |
||||
|
||||
/** |
||||
* Initialization |
||||
*/ |
||||
|
||||
require_once dirname(__FILE__) . '/config.php'; |
||||
if (!api_is_platform_admin()) { |
||||
die ('You must have admin permissions to install plugins'); |
||||
} |
||||
HookManagementPlugin::create()->install(); |
@ -1,8 +0,0 @@ |
||||
<?php |
||||
|
||||
/* Strings for settings */ |
||||
$strings['plugin_title'] = 'Hook Management'; |
||||
$strings['plugin_comment'] = 'This plugin allow the use of hooks for others plugins, To use hooks, this plugins must be enabled'; |
||||
$strings['tool_enable'] = 'Enable Hook management plugin'; |
||||
$strings['tool_enable_help'] = "Escoja si desea activar el gestor de Hooks."; |
||||
|
@ -1,7 +0,0 @@ |
||||
<?php |
||||
|
||||
/* Strings for settings */ |
||||
$strings['plugin_title'] = 'Gestor de Hooks'; |
||||
$strings['plugin_comment'] = 'Este plugin permite el uso de hooks y los gestiona. Debe estar activado para usar los hooks'; |
||||
$strings['tool_enable'] = 'Activar plugin Gestor de Hooks'; |
||||
$strings['tool_enable_help'] = "Escoja si desea activar el gestor de Hooks."; |
@ -1 +0,0 @@ |
||||
This plugin, as the rest of Chamilo, is released under the GNU/GPLv3 license. |
@ -1,12 +0,0 @@ |
||||
<?php |
||||
/* For license terms, see /license.txt */ |
||||
/** |
||||
* This script is a configuration file for the date plugin. You can use it as a master for other platform plugins (course plugins are slightly different). |
||||
* These settings will be used in the administration interface for plugins (Chamilo configuration settings->Plugins) |
||||
* @package chamilo.plugin.hookmanagement |
||||
*/ |
||||
/** |
||||
* Plugin details (must be present) |
||||
*/ |
||||
require_once __DIR__ . '/config.php'; |
||||
$plugin_info = HookManagementPlugin::create()->get_info(); |
@ -1,17 +0,0 @@ |
||||
<?php |
||||
/* For license terms, see /license.txt */ |
||||
/** |
||||
* This script is included by main/admin/settings.lib.php when unselecting a plugin |
||||
* and is meant to remove things installed by the install.php script in both |
||||
* the global database and the courses tables |
||||
* @package chamilo.plugin.hookmanagement |
||||
*/ |
||||
|
||||
/** |
||||
* Queries |
||||
*/ |
||||
require_once dirname(__FILE__) . '/config.php'; |
||||
if (!api_is_platform_admin()) { |
||||
die ('You must have admin permissions to uninstall plugins'); |
||||
} |
||||
HookManagementPlugin::create()->uninstall(); |
Loading…
Reference in new issue