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

@@ -37,16 +37,14 @@ class Model_Service_Plugin_Host extends Model_Service_Plugin {
protected $_save_message = TRUE;
// Required abstract functions
/** REQUIRED ABSTRACT METHODS **/
public function attributes($variable=NULL) {}
public function expire() {
return $this->host_expire;
}
public function name($variable=NULL) {
return sprintf('%s.%s',$this->display('domain_name'),$this->tld->display('name'));
}
public function password() {
return $this->host_password;
}
@@ -55,7 +53,7 @@ class Model_Service_Plugin_Host extends Model_Service_Plugin {
return $this->host_username;
}
// Local functions
/** LOCAL METHODS **/
/**
* This provides us with a manage button to jump to the hosting server
@@ -72,6 +70,10 @@ class Model_Service_Plugin_Host extends Model_Service_Plugin {
return ($this->username() AND $this->password() AND $a=$this->host->plugin()) ? $a->manage_button($this,$t) : '';
}
public function name($variable=NULL) {
return sprintf('%s.%s',$this->display('domain_name'),$this->tld->display('name'));
}
/**
* Search for services matching a term
*/