parent
bab90178a5
commit
1f8caef326
@ -1,4 +1,34 @@ |
||||
Skype Plugin |
||||
============== |
||||
|
||||
Create Skype user field |
||||
This pluging was integrated within Chamilo LMS core |
||||
|
||||
To configure this plugin you need execute this SQL queries: |
||||
|
||||
* Enable the Skype extra field: |
||||
``` |
||||
INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible, changeable, created_at) |
||||
VALUES |
||||
(1, 1, 'skype', 'Skype', 1, 1, now()); |
||||
``` |
||||
* Enable the LinkedInURl extra field: |
||||
``` |
||||
INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible, changeable, created_at) |
||||
VALUES |
||||
(1, 1, 'linkedin_url', 'LinkedInUrl', 1, 1, now()); |
||||
``` |
||||
* Enable the configuration settings: |
||||
``` |
||||
INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, access_url_changeable) |
||||
VALUES |
||||
('allow_show_skype_account', NULL, 'radio', 'Course', 'true', 'AllowShowSkypeAccountTitle', 'AllowShowSkypeAccountComment', 1), |
||||
('allow_show_linkedin_url', NULL, 'radio', 'Course', 'true', 'AllowShowLinkedInUrlTitle', 'AllowShowLinkedInUrlComment', 1); |
||||
``` |
||||
``` |
||||
INSERT INTO settings_options (variable, value, display_text) |
||||
VALUES |
||||
('allow_show_skype_account', 'true', 'Yes'), |
||||
('allow_show_skype_account', 'false', 'No'), |
||||
('allow_show_linkedin_url', 'true', 'Yes'), |
||||
('allow_show_linkedin_url', 'false', 'No'); |
||||
``` |
||||
|
@ -1,9 +0,0 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
/** |
||||
* Config the plugin |
||||
* @author Imanol Losada Oriol <imanol.losada@beeznest.com> |
||||
* @package chamilo.plugin.skype |
||||
*/ |
||||
|
||||
require_once api_get_path(SYS_PATH) . 'main/inc/global.inc.php'; |
@ -1,10 +0,0 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
/** |
||||
* Initialization install |
||||
* @author Imanol Losada Oriol <imanol.losada@beeznest.com> |
||||
* @package chamilo.plugin.skype |
||||
*/ |
||||
require_once __DIR__ . '/config.php'; |
||||
|
||||
Skype::create()->install(); |
@ -1,34 +0,0 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
/** |
||||
* Create Skype user field |
||||
* |
||||
* @author Imanol Losada Oriol <imanol.losada@beeznest.com> |
||||
* @package chamilo.plugin.skype |
||||
*/ |
||||
class HookObserverSkype extends HookObserver implements HookSkypeObserverInterface |
||||
{ |
||||
|
||||
/** |
||||
* Class constructor |
||||
*/ |
||||
public function __construct() |
||||
{ |
||||
parent::__construct( |
||||
'plugin/skype/src/Skype.php', 'skype' |
||||
); |
||||
} |
||||
|
||||
/** |
||||
* Create Skype user field when plugin is enabled |
||||
* @param HookSkypeEventInterface $hook The hook |
||||
*/ |
||||
public function hookEventSkype(HookSkypeEventInterface $hook) |
||||
{ |
||||
$data = $hook->getEventData(); |
||||
if ($data['type'] === HOOK_EVENT_TYPE_PRE) { |
||||
// Code |
||||
} |
||||
} |
||||
} |
@ -1,10 +0,0 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
/** |
||||
* Initialization uninstall |
||||
* @author Imanol Losada Oriol <imanol.losada@beeznest.com> |
||||
* @package chamilo.plugin.skype |
||||
*/ |
||||
require_once __DIR__ . '/config.php'; |
||||
|
||||
Skype::create()->uninstall(); |
Loading…
Reference in new issue