Răsfoiți Sursa

new settings section

andre 5 luni în urmă
părinte
comite
7ac77d6629
2 a modificat fișierele cu 13 adăugiri și 8 ștergeri
  1. 8 8
      app/UI/Client/Setting/Pages/Settings.php
  2. 5 0
      core/Helper/DnsHelper.php

+ 8 - 8
app/UI/Client/Setting/Pages/Settings.php

@@ -110,6 +110,14 @@ class Settings extends DataTable implements ClientArea
      */
     public function initContent()
     {
+            logModuleCall(
+                'kerioEmail',
+                __FUNCTION__,
+                $this,
+                'Debug Data',
+                ''
+            );
+
         $this->addActionButton(new EditSettingButton());
     }
 
@@ -198,14 +206,6 @@ class Settings extends DataTable implements ClientArea
             ];
             $data[] = $tmp;
         }
-            logModuleCall(
-                'kerioEmail',
-                __FUNCTION__,
-                $data,
-                'Debug Data',
-                ''
-            );
-
         $dataProv = new ArrayDataProvider();
         $dataProv->setDefaultSorting('setting', 'ASC')->setData($data);
         $this->setDataProvider($dataProv);

+ 5 - 0
core/Helper/DnsHelper.php

@@ -25,6 +25,11 @@ class DnsHelper
         $this->resolver = new \Net_DNS2_Resolver(array('nameservers' => $this->nameserver));
     }    
 
+    /**
+     * @param string $domain
+     * @return array
+     */
+
     public function getRecords($domain) {
         $zoneID = $this->selfDns($domain);
         if($zoneID) {