Internal overhaul
This commit is contained in:
@@ -13,20 +13,16 @@ class Model_Product_Plugin_Ssl extends Model_Product_Plugin {
|
||||
protected $_table_name = 'ssl';
|
||||
|
||||
// Our required abstract methods
|
||||
public function render_edit() {}
|
||||
|
||||
public function cost($annual=FALSE) {
|
||||
// @todo
|
||||
$x = 0;
|
||||
|
||||
return $annual ? $x*12 : $x;
|
||||
}
|
||||
|
||||
public function feature_summary() {
|
||||
// @todo This view should render based on the the results of this::allowance();
|
||||
return View::factory('product/plugin/ssl/feature_summary')
|
||||
->set('po',$this);
|
||||
}
|
||||
public function render_edit() {}
|
||||
|
||||
// @todo
|
||||
public function supplier() {
|
||||
return 'internal';
|
||||
}
|
||||
|
@@ -30,7 +30,10 @@ class Model_Service_Plugin_Ssl extends Model_Service_Plugin {
|
||||
),
|
||||
);
|
||||
|
||||
protected $_save_message = TRUE;
|
||||
|
||||
// Required abstract functions
|
||||
|
||||
public function expire($format=FALSE) {
|
||||
return $this->_so->get_valid_to($format);
|
||||
}
|
||||
@@ -39,8 +42,11 @@ class Model_Service_Plugin_Ssl extends Model_Service_Plugin {
|
||||
return ($this->cert AND $this->ca->loaded()) ? sprintf('%s:%s',$this->ca->subject(),$this->display('cert')) : $this->display('csr');
|
||||
}
|
||||
|
||||
public function password_value() {} // Not used
|
||||
public function username_value() {} // Not used
|
||||
public function password() {} // Not used
|
||||
|
||||
public function username() {} // Not used
|
||||
|
||||
// Local functions
|
||||
|
||||
private $_so = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user