Revamping invoice PDF rendering and standardisation work
This commit is contained in:
@@ -22,9 +22,6 @@ class DOMAIN {
|
||||
public function product_view($data) {
|
||||
}
|
||||
|
||||
public function contract_view($data,$price_base,$price_setup) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Collect information for the cart
|
||||
*/
|
||||
|
@@ -35,16 +35,14 @@ class Model_Service_Plugin_Domain extends Model_Service_Plugin {
|
||||
|
||||
protected $_save_message = TRUE;
|
||||
|
||||
// Required abstract functions
|
||||
/** REQUIRED ABSTRACT METHODS **/
|
||||
|
||||
public function attributes($variable=NULL) {}
|
||||
|
||||
public function expire() {
|
||||
return $this->domain_expire;
|
||||
}
|
||||
|
||||
public function name($variable=NULL) {
|
||||
return sprintf('%s.%s',$this->display('domain_name'),$this->tld->display('name'));
|
||||
}
|
||||
|
||||
public function password() {
|
||||
return $this->registrar_password;
|
||||
}
|
||||
@@ -53,7 +51,7 @@ class Model_Service_Plugin_Domain extends Model_Service_Plugin {
|
||||
return $this->registrar_username;
|
||||
}
|
||||
|
||||
// Local functions
|
||||
/** LOCAL METHODS **/
|
||||
|
||||
/**
|
||||
* This provides us with a manage button to jump to the registrar
|
||||
@@ -70,6 +68,10 @@ class Model_Service_Plugin_Domain extends Model_Service_Plugin {
|
||||
return $this->host->manage_button('host');
|
||||
}
|
||||
|
||||
public function name($variable=NULL) {
|
||||
return sprintf('%s.%s',$this->display('domain_name'),$this->tld->display('name'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Search for services matching a term
|
||||
* @todo This search doesnt pick up the TLD of domain names
|
||||
|
Reference in New Issue
Block a user