Added Service Add, some internal consistency updates

This commit is contained in:
Deon George
2013-11-27 11:22:20 +11:00
parent c18d5a3881
commit 0ed5e5163d
29 changed files with 372 additions and 179 deletions

View File

@@ -15,9 +15,8 @@ class Model_Product_Plugin_Domain extends Model_Product_Plugin {
}
// Our required abstract methods
public function admin_update() {}
public function cost($annual=FALSE) {
// @todo
$x = 0;
return $annual ? $x*12 : $x;
@@ -25,6 +24,15 @@ class Model_Product_Plugin_Domain extends Model_Product_Plugin {
public function feature_summary() {}
public function render_edit() {}
// @todo
public function supplier() {
return 'internal';
}
/** LOCAL FUNCTIONS **/
// @todo This is not used, but should be.
public function order_features() {
$output = '';
@@ -44,9 +52,5 @@ class Model_Product_Plugin_Domain extends Model_Product_Plugin {
return $output;
}
public function supplier() {
return 'internal';
}
}
?>

View File

@@ -77,6 +77,7 @@ class Model_Service_Plugin_Domain extends Model_Service_Plugin {
/**
* Search for services matching a term
* @todo This search doesnt pick up the TLD of domain names
*/
public function list_autocomplete($term,$index,$value,array $label,array $limit=array(),array $options=NULL) {
// We only show domain names.