Revamping invoice PDF rendering and standardisation work
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user