Espinoza Guillermo %!s(int64=6) %!d(string=hai) anos
pai
achega
738b6344a7
Modificáronse 1 ficheiros con 20 adicións e 25 borrados
  1. 20 25
      src/HostBundle/Traits/DHCPOptionTrait.php

+ 20 - 25
src/HostBundle/Traits/DHCPOptionTrait.php

@@ -39,7 +39,7 @@ trait DHCPOptionTrait
 
     function setFilename($value)
     {
-        $this->config('filename', $value);
+        $this->json_dhcp_option_config['filename'] = $value;
     }
 
     function getFilename()
@@ -49,7 +49,7 @@ trait DHCPOptionTrait
 
     function setSubnetMask($value)
     {
-        $this->config('subnet_mask', $value);
+        $this->json_dhcp_option_config['subnet_mask'] = $value;
     }
 
     function getSubnetMask()
@@ -59,7 +59,7 @@ trait DHCPOptionTrait
 
     function setTimeOffset($value)
     {
-        $this->config('time_offset', $value);
+        $this->json_dhcp_option_config['time_offset'] = $value;
     }
 
     function getTimeOffset()
@@ -69,7 +69,7 @@ trait DHCPOptionTrait
 
     function setRouters($value)
     {
-        $this->config('routers', $value);
+        $this->json_dhcp_option_config['routers'] = $value;
     }
 
     function getRouters()
@@ -79,7 +79,7 @@ trait DHCPOptionTrait
 
     function setDomainNameServers($value)
     {
-        $this->config('domain_name_servers', $value);
+        $this->json_dhcp_option_config['domain_name_servers'] = $value;
     }
 
     function getDomainNameServers()
@@ -89,7 +89,7 @@ trait DHCPOptionTrait
 
     function setHostName($value)
     {
-        $this->config('host_name', $value);
+        $this->json_dhcp_option_config['host_name'] = $value;
     }
 
     function getHostName()
@@ -99,7 +99,7 @@ trait DHCPOptionTrait
 
     function setDomainName($value)
     {
-        $this->config('domain_name', $value);
+        $this->json_dhcp_option_config['domain_name'] = $value;
     }
 
     function getDomainName()
@@ -109,7 +109,7 @@ trait DHCPOptionTrait
 
     function setBroadcastAddress($value)
     {
-        $this->config('broadcast_address', $value);
+        $this->json_dhcp_option_config['broadcast_address'] = $value;
     }
 
     function getBroadcastAddress()
@@ -119,7 +119,7 @@ trait DHCPOptionTrait
 
     function setDefaultLeaseTime($value)
     {
-        $this->config('default_lease_time', $value);
+        $this->json_dhcp_option_config['default_lease_time'] = $value;
     }
 
     function getDefaultLeaseTime()
@@ -129,7 +129,7 @@ trait DHCPOptionTrait
 
     function setMaxLeaseTime($value)
     {
-        $this->config('max_lease_time', $value);
+        $this->json_dhcp_option_config['max_lease_time'] = $value;
     }
 
     function getMaxLeaseTime()
@@ -139,7 +139,7 @@ trait DHCPOptionTrait
 
     function setNextServer($value)
     {
-        $this->config('next_server', $value);
+        $this->json_dhcp_option_config['next_server'] = $value;
     }
 
     function getNextServer()
@@ -149,7 +149,7 @@ trait DHCPOptionTrait
 
     function setTftpServerName($value)
     {
-        $this->config('tftp_server', $value);
+        $this->json_dhcp_option_config['tftp_server'] = $value;
     }
 
     function getTftpServerName()
@@ -159,7 +159,7 @@ trait DHCPOptionTrait
 
     function setOption122DhcpServer($value)
     {
-        $this->config('option122.dhcp-server', $value);
+        $this->json_dhcp_option_config['option122.dhcp-server'] = $value;
     }
 
     function getOption122DhcpServer()
@@ -169,7 +169,7 @@ trait DHCPOptionTrait
 
     function setOption122DhcpServerSecondary($value)
     {
-        $this->config('option122.dhcp-server-secondary', $value);
+        $this->json_dhcp_option_config['option122.dhcp-server-secondary'] = $value;
     }
 
     function getOption122DhcpServerSecondary()
@@ -179,7 +179,7 @@ trait DHCPOptionTrait
 
     function setOption122ProvisioningServer($value)
     {
-        $this->config('option122.provisioning-server', $value);
+        $this->json_dhcp_option_config['option122.provisioning-server'] = $value;
     }
 
     function getOption122ProvisioningServer()
@@ -189,7 +189,7 @@ trait DHCPOptionTrait
 
     function setOption122ProvisioningType($value)
     {
-        $this->config('option122.provisioning-type', $value);
+        $this->json_dhcp_option_config['option122.provisioning-type'] = $value;
     }
 
     function getOption122ProvisioningType()
@@ -199,7 +199,7 @@ trait DHCPOptionTrait
 
     function setLogServers($value)
     {
-        $this->config('log_servers', $value);
+        $this->json_dhcp_option_config['log_servers'] = $value;
     }
 
     function getLogServers()
@@ -209,7 +209,7 @@ trait DHCPOptionTrait
 
     function setTimeServers($value)
     {
-        $this->config('time_servers', $value);
+        $this->json_dhcp_option_config['time_servers'] = $value;
     }
 
     function getTimeServers()
@@ -219,17 +219,12 @@ trait DHCPOptionTrait
 
     function setFixedAddress($value)
     {
-        $this->config('fixed_address', $value);
+        $this->json_dhcp_option_config['fixed_address'] = $value;
     }
 
     function getFixedAddress()
     {
         return @$this->json_dhcp_option_config['fixed_address'];
     }
-    
-    function config($key, $value)
-    {
-        $this->json_dhcp_option_config[$key] = $value;
-    }
 
-}
+}