diff --git a/include/class-MailforwardAPI.php b/include/class-MailforwardAPI.php deleted file mode 100644 index a63158f..0000000 --- a/include/class-MailforwardAPI.php +++ /dev/null @@ -1,63 +0,0 @@ -. - -/** - * E-mail forwarding API - */ -class MailforwardfromAPI extends DomainAPI { - - /** - * Domain ID column name - * - * @override - */ - const DOMAIN_ID = Mailforwardfrom::T . DOT . 'domain_ID'; - - /** - * @constructor - */ - public function __construct() { - Query::__construct(); - $this->from( Mailforwardfrom::T ); - $this->defaultClass( 'Mailforwardfrom' ); - } - - /** - * Join mailforwardes and domain (once) - * - * @return self - */ - public function joinMailforwardfromDomain() { - if( empty( $this->joinedMailforwardfromDomain ) ) { - $this->joinedMailforwardfromDomain = true; - $this->from( 'domain' ); - $this->equals( 'domain.domain_ID', 'mailforwardfrom.domain_ID' ); - } - return $this; - } - - /** - * Filter to a certain mail forwarding username - * - * @param mailforward_source string - * @return self - */ - public function whereMailforwardfromUsername( $username ) { - return $this->whereStr( 'mailforwardfrom_username', $username ); - } - -}