Esempio n. 1
0
 /**
  * Removes an existing editable dns record
  * Keep in mind dns changes may take a while to propagate.
  * You cannot remove dreamhosters.com records.
  *
  * @param  String $domain
  * @param  String $type
  * @param  String $value
  * @return Dreamhost\HttpClient\Response
  */
 public static function removeRecord($domain, $type, $value)
 {
     if (self::isDreamhostersUrl($domain)) {
         throw new InvalidDNSDomainException('You cannot add dreamhosters.com records');
     }
     if (!self::isValidType($type)) {
         throw new InvalidDNSRecordType("{$type} is not a valid DNS type");
     }
     return parent::runCommand('dns-remove_record', ['record' => $domain, 'type' => $type, 'value' => $value]);
 }
 /**
  * Remove a mail filter from an email address
  *
  * @param  MailFilterInterface $mailFilter
  * @return Dreamhost\HttpClient\Response
  */
 public static function removeFilter(MailFilterInterface $mailFilter)
 {
     return parent::runCommand('mail-remove_filter', $mailFilter->toKeyValueArray());
 }