60 lines
1.4 KiB
PHP
60 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace Kanboard\Plugin\QualKard;
|
|
|
|
use Kanboard\Core\Plugin\Base;
|
|
|
|
/**
|
|
* QualKard -- flashcard spaced repetition on Kanboard cards.
|
|
*
|
|
* Each card is a flashcard (title = prompt, description = answer). You grade a due card by dragging
|
|
* it into a grade column (Hairy/Hard/Medium/Easy); QualKard turns the grade into a due date via the
|
|
* qualcard average + interval, and the companion RecoReco plugin does all the card movement.
|
|
*
|
|
* Requires RecoReco (the move engine). Grading math is ported from Ruben's C program "qualcard".
|
|
*/
|
|
class Plugin extends Base
|
|
{
|
|
public function initialize()
|
|
{
|
|
// Hooks are wired in later versions (setup on Integrations, the grade handler, the badge).
|
|
}
|
|
|
|
public function getHelpers()
|
|
{
|
|
return array(
|
|
'Plugin\QualKard\Helper' => array('QualKardHelper'),
|
|
);
|
|
}
|
|
|
|
public function getPluginName()
|
|
{
|
|
return 'QualKard';
|
|
}
|
|
|
|
public function getPluginDescription()
|
|
{
|
|
return t('Flashcard spaced repetition: grade a card by dragging it to a column, and it comes back when due (needs RecoReco).');
|
|
}
|
|
|
|
public function getPluginAuthor()
|
|
{
|
|
return 'Ruben (drbeco)';
|
|
}
|
|
|
|
public function getPluginVersion()
|
|
{
|
|
return '0.2.0';
|
|
}
|
|
|
|
public function getPluginHomepage()
|
|
{
|
|
return 'https://code.beco.cc/beco/QualKard';
|
|
}
|
|
|
|
public function getCompatibleVersion()
|
|
{
|
|
return '>=1.2.0';
|
|
}
|
|
}
|