Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
PI-552: Updating CF\Cpanel\CpanelAPI->isAdvancedZoneEditEnabled() docs
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wineman committed Jul 19, 2016
1 parent aca963a commit c7bd24c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Cpanel/CpanelAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,13 @@ public function get_cpanel_dns_record_name($cloudflare_dns_record_name)
return $cloudflare_dns_record_name . ".";
}

/**
* @return bool
*/
public function isAdvancedZoneEditEnabled() {
/* Advanced Zone Editor is required to edit DNS records for partial zone provisioning.
* https://documentation.cpanel.net/display/SDK/Guide+to+the+LiveAPI+System+-+The+cpanelfeature%28%29+Method
* Returns 1 = enabled, 0 = disabled
* cPanel returns 1 = enabled, 0 = disabled
*/
return ($this->cpanel_api->cpanelfeature("zoneedit") === 1);
}
Expand Down

0 comments on commit c7bd24c

Please sign in to comment.