More Standardisation work.

This commit is contained in:
Deon George
2016-08-03 14:00:51 +10:00
parent 85f08bbb0a
commit 5f84d2c14f
38 changed files with 276 additions and 100 deletions

View File

@@ -43,7 +43,7 @@ class Model_Service_Plugin_Host extends Model_Service_Plugin {
return $this->host_expire;
}
public function name() {
public function name($variable=NULL) {
return sprintf('%s.%s',$this->display('domain_name'),$this->tld->display('name'));
}
@@ -75,7 +75,7 @@ class Model_Service_Plugin_Host extends Model_Service_Plugin {
/**
* Search for services matching a term
*/
public function list_autocomplete($term,$index,$value,array $label,array $limit=array(),array $options=NULL) {
public function list_autocomplete($term,$index,$value,array $label,array $limit=array(),array $options=array()) {
// We only show domain names.
if (is_numeric($term))
return array();
@@ -88,6 +88,7 @@ class Model_Service_Plugin_Host extends Model_Service_Plugin {
->join('service')
->on('service.id','=',$this->_table_name.'.service_id')
->where('service.account_id','IN',$ao->RTM->customers($ao->RTM))
->and_where('service.status','=',1)
->and_where($this->_table_name.'.domain_name','like','%'.$term.'%');
return parent::list_autocomplete($term,$index,$value,$label,$limit,$options);