Fixes as a result of KH 3.3

This commit is contained in:
Deon George
2013-01-10 22:25:19 +11:00
parent 79bdd4ce51
commit f08215717c
8 changed files with 11 additions and 14 deletions

View File

@@ -10,7 +10,7 @@
* @copyright (c) 2010 Open Source Billing
* @license http://dev.osbill.net/license.html
*/
class Model_Service_Plugin_DOMAIN extends Model_Service_Plugin {
class Model_Service_Plugin_Domain extends Model_Service_Plugin {
protected $_table_name = 'service__domain';
protected $_updated_column = FALSE;
@@ -18,7 +18,7 @@ class Model_Service_Plugin_DOMAIN extends Model_Service_Plugin {
protected $_has_one = array(
'domain_TLD'=>array('foreign_key'=>'id','far_key'=>'domain_tld_id'),
'domain_registrar'=>array('foreign_key'=>'id','far_key'=>'domain_registrar_id'),
'service_plugin_HOST'=>array('through'=>'service','far_key'=>'service_id','foreign_key'=>'service_id'),
'service_plugin_host'=>array('through'=>'service','far_key'=>'service_id','foreign_key'=>'service_id'),
);
protected $_belongs_to = array(
'service'=>array(),
@@ -31,9 +31,6 @@ class Model_Service_Plugin_DOMAIN extends Model_Service_Plugin {
'domain_name'=>array(
array('strtoupper',array(':value')),
),
'registrar_ns'=>array(
array('Domain::NS',array(':model')),
),
'registrar_lastsync'=>array(
array('Config::date',array(':value')),
),
@@ -81,7 +78,7 @@ class Model_Service_Plugin_DOMAIN extends Model_Service_Plugin {
}
public function manage_dns_button() {
return $this->service_plugin_HOST->manage_button('service_plugin_host');
return $this->service_plugin_host->manage_button('service_plugin_host');
}
}
?>