Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/plugin/jcapture/action.php

63 lines
1.3 KiB

12 years ago
<?php
/**
* JCapture plugin
*
* @author Pavel Vlasov
*/
12 years ago
if (!defined('DOKU_INC')) {
die();
}
if (!defined('DOKU_PLUGIN')) {
define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/');
}
require_once(DOKU_PLUGIN . 'action.php');
class action_plugin_jcapture extends DokuWiki_Action_Plugin
{
/**
* return some info
*/
function getInfo()
{
return array(
'author' => 'Pavel Vlasov',
'email' => 'Pavel.Vlasov@hammurapi.com',
'name' => 'JCapture',
'desc' => 'Plugin for making screen captures.',
'url' => 'http://www.hammurapi.com/dokuwiki/doku.php/products:jcapture:start',
);
}
12 years ago
/**
* Register the eventhandlers
*/
12 years ago
function register(&$controller)
{
$controller->register_hook(
'TOOLBAR_DEFINE',
'AFTER',
$this,
'insert_button',
array()
);
12 years ago
}
12 years ago
12 years ago
/**
* Inserts the toolbar button
*/
12 years ago
function insert_button(& $event, $param)
{
$event->data[] = array(
12 years ago
'type' => 'JCapture',
'title' => 'Screen capture',
'icon' => '../../plugins/jcapture/camera.png',
'open' => '<abutton>',
'close' => '</abutton>',
);
}
12 years ago
12 years ago
}