mirror of
https://github.com/Oreolek/kohana-migrations.git
synced 2024-07-02 22:55:03 +03:00
bc28977d65
- Added variable names to just about all @param tags - Ensured proper alignment in doc block comments - Ensured proper file spacing and trimmed all trailing whitespace - Corrected improper languge construct formats (eg if () not if()) - Corrected some assignment operator alignment - A few spelling corrections - All classes pass `phpcs --Standard=Kohana` (asside from tests)
28 lines
585 B
PHP
28 lines
585 B
PHP
<?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>
|
|
*/
|
|
class Task_Migrations_Status extends Minion_Task {
|
|
|
|
/**
|
|
* Execute the task
|
|
*
|
|
* @param array $options Config for the task
|
|
*/
|
|
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;
|
|
}
|
|
|
|
}
|