2026-06-28 17:23:28 -03:00
|
|
|
<?php
|
|
|
|
|
|
2026-06-28 17:31:42 -03:00
|
|
|
namespace Kanboard\Plugin\BulkMoveTasks;
|
2026-06-28 17:23:28 -03:00
|
|
|
|
|
|
|
|
use Kanboard\Core\Plugin\Base;
|
|
|
|
|
|
|
|
|
|
class Plugin extends Base
|
|
|
|
|
{
|
|
|
|
|
public function initialize()
|
|
|
|
|
{
|
2026-07-07 13:25:02 -03:00
|
|
|
// Render the "Move tasks in bulk" entry. The only column hook sits outside the
|
|
|
|
|
// native menu <ul>, so column_dropdown.php renders it hidden and relocate.js
|
|
|
|
|
// moves it into the menu (passes the current $column and $swimlane).
|
2026-06-28 17:31:42 -03:00
|
|
|
$this->template->hook->attach('template:board:column:dropdown', 'bulkMoveTasks:board/column_dropdown');
|
2026-07-07 13:25:02 -03:00
|
|
|
|
|
|
|
|
$this->hook->on('template:layout:js', array(
|
|
|
|
|
'template' => 'plugins/BulkMoveTasks/Asset/js/relocate.js',
|
|
|
|
|
));
|
2026-06-28 17:23:28 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getPluginName()
|
|
|
|
|
{
|
2026-06-28 17:31:42 -03:00
|
|
|
return 'BulkMoveTasks';
|
2026-06-28 17:23:28 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getPluginDescription()
|
|
|
|
|
{
|
2026-06-28 17:31:42 -03:00
|
|
|
return t('Move all tasks from one board column to another in a single action.');
|
2026-06-28 17:23:28 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getPluginAuthor()
|
|
|
|
|
{
|
|
|
|
|
return 'Ruben (drbeco)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getPluginVersion()
|
|
|
|
|
{
|
2026-07-10 09:15:12 -03:00
|
|
|
return '1.0.1';
|
2026-06-28 17:23:28 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getPluginHomepage()
|
|
|
|
|
{
|
2026-06-28 17:31:42 -03:00
|
|
|
return 'https://code.beco.cc/beco/BulkMoveTasks';
|
2026-06-28 17:23:28 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getCompatibleVersion()
|
|
|
|
|
{
|
|
|
|
|
return '>=1.2.0';
|
|
|
|
|
}
|
|
|
|
|
}
|