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/modules/ssl/classes/Task/Ssl/Renew.php

22 lines
526 B
PHP
Raw Normal View History

2011-12-16 23:31:35 +00:00
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
2012-11-09 23:13:57 +00:00
* Renew an SSL Certificate
2011-12-16 23:31:35 +00:00
*
2013-03-19 22:35:19 +00:00
* @package SSL
* @category Tasks
2011-12-16 23:31:35 +00:00
* @author Deon George
2013-03-19 22:35:19 +00:00
* @copyright (c) 2009-2013 Open Source Billing
2011-12-16 23:31:35 +00:00
* @license http://dev.osbill.net/license.html
*/
2012-11-09 23:13:57 +00:00
class Task_SSL_Renew extends Task {
2011-12-16 23:31:35 +00:00
/**
* Renew a certificate
*/
2012-11-09 23:13:57 +00:00
protected function _execute(array $params) {
2011-12-16 23:31:35 +00:00
// @todo, Change this to be a SSL id, maybe list all the certs expiring
2012-11-09 23:13:57 +00:00
ORM::factory('Service',$params['id'])->plugin()->renew();
2011-12-16 23:31:35 +00:00
}
}
?>