38 lines
708 B
PHP
38 lines
708 B
PHP
|
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||
|
|
||
|
/**
|
||
|
* This class supports SSL
|
||
|
*
|
||
|
* @package OSB
|
||
|
* @subpackage SSL
|
||
|
* @category Models
|
||
|
* @author Deon George
|
||
|
* @copyright (c) 2010 Open Source Billing
|
||
|
* @license http://dev.osbill.net/license.html
|
||
|
*/
|
||
|
class Model_SSL_CA extends ORMOSB {
|
||
|
protected $_updated_column = FALSE;
|
||
|
|
||
|
// Relationships
|
||
|
protected $_belongs_to = array(
|
||
|
);
|
||
|
|
||
|
protected $_has_one = array(
|
||
|
);
|
||
|
|
||
|
protected $_display_filters = array(
|
||
|
'sign_cert'=>array(
|
||
|
array('SSL::subject',array(':value')),
|
||
|
),
|
||
|
);
|
||
|
|
||
|
public function expires() {
|
||
|
return SSL::expire($this->sign_cert);
|
||
|
}
|
||
|
|
||
|
public function issuer() {
|
||
|
return SSL::issuer($this->sign_cert);
|
||
|
}
|
||
|
}
|
||
|
?>
|