Revamping invoice PDF rendering and standardisation work

This commit is contained in:
Deon George
2016-08-10 16:07:00 +10:00
parent a560c5f4fa
commit 24bb4a701b
27 changed files with 229 additions and 475 deletions

View File

@@ -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
*/

View File

@@ -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