File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
com/imasters/php/cpanel/operation/dns Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 11
11
require_once 'com/imasters/php/cpanel/operation/dns/EditZoneRecordOperation.php ' ;
12
12
require_once 'com/imasters/php/cpanel/operation/dns/GetZoneRecordOperation.php ' ;
13
13
require_once 'com/imasters/php/cpanel/operation/dns/KillDNSOperation.php ' ;
14
+ require_once 'com/imasters/php/cpanel/operation/dns/ListZonesOperation.php ' ;
14
15
15
16
/**
16
17
* @brief Módulo de DNS
@@ -77,4 +78,11 @@ public function killDNS( $domain ) {
77
78
78
79
return $ killDNSOperation ;
79
80
}
81
+
82
+ /**
83
+ * @return ListZonesOperation
84
+ */
85
+ public function listZones () {
86
+ return new ListZonesOperation ( $ this ->cpanel );
87
+ }
80
88
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * @brief Módulo de DNS
4
+ * @details Implementação das operações de DNS da API do cPanel
5
+ * @package com.imasters.php.cpanel.operation.dns
6
+ */
7
+
8
+ require_once 'com/imasters/php/cpanel/cPanelOperation.php ' ;
9
+
10
+ /**
11
+ * @brief Lista todas as zonas de DNS
12
+ * @author João Batista Neto <neto.joaobatista@imasters.com.br>
13
+ */
14
+ class ListZonesOperation extends cPanelOperation {
15
+ /**
16
+ * @see cPanelOperation::getOperationName()
17
+ * @return string
18
+ */
19
+ public function getOperationName () {
20
+ return 'listzones ' ;
21
+ }
22
+ }
You can’t perform that action at this time.
0 commit comments