1
0
Fork 0
mirror of https://github.com/Oreolek/kohana-migrations.git synced 2024-06-28 20:55:08 +03:00
kohana-migrations/classes/Task/Migrations/Status.php

28 lines
585 B
PHP
Raw Normal View History

<?php defined('SYSPATH') OR die('No direct script access.');
/**
* Displays the current status of migrations in all groups
*
* This task takes no config options
*
* @author Matt Button <matthew@sigswitch.com>
*/
2012-10-24 09:45:12 +03:00
class Task_Migrations_Status extends Minion_Task {
/**
* Execute the task
*
* @param array $options Config for the task
*/
2012-10-24 09:06:52 +03:00
protected function _execute(array $options)
{
$model = new Model_Minion_Migration(Database::instance());
$view = new View('minion/task/migrations/status');
$view->groups = $model->get_group_statuses();
echo $view;
}
}