This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/application/classes/Minion/Task.php

27 lines
749 B
PHP
Raw Permalink Normal View History

2011-05-14 07:35:33 +00:00
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
2012-11-09 23:13:57 +00:00
* This class overrides Kohana's Minion CLI Module
2011-05-14 07:35:33 +00:00
*
2013-03-19 22:35:19 +00:00
* @package OSB
2011-05-14 07:35:33 +00:00
* @category Helpers
* @author Deon George
2013-03-19 22:35:19 +00:00
* @copyright (c) 2009-2013 Open Source Billing
* @license http://dev.osbill.net/license.html
2011-05-14 07:35:33 +00:00
*/
2012-11-09 23:13:57 +00:00
abstract class Minion_Task extends Kohana_Minion_Task {
protected $_sysoptions = array(
2012-11-09 23:13:57 +00:00
'site'=>NULL,
2013-05-10 10:48:10 +00:00
'verbose'=>FALSE,
2012-11-09 23:13:57 +00:00
);
/**
* Override our __construct so that we can specify options in each class file
*/
protected function __construct() {
// Populate $_accepted_options based on keys from $_options
$this->_accepted_options = array_keys(Arr::merge($this->_sysoptions,$this->_options));
}
2011-05-14 07:35:33 +00:00
}
?>