diff options
Diffstat (limited to 'lib/model/MailboxPeer.php')
-rw-r--r-- | lib/model/MailboxPeer.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/model/MailboxPeer.php b/lib/model/MailboxPeer.php new file mode 100644 index 0000000..46170c3 --- /dev/null +++ b/lib/model/MailboxPeer.php @@ -0,0 +1,30 @@ +<?php + +/** + * Subclass for performing query and update operations on the 'mailbox' table. + * + * + * + * @package lib.model + */ +class MailboxPeer extends BaseMailboxPeer +{ + // only return results according to domain permissions + public static function doCount(Criteria $criteria, $distinct = false, $con = null) + { + DomainPermissionPeer::addDomainPermissionCriteria($criteria, MailboxPeer::DOMAIN_ID); + return parent::doCount($criteria, $distinct, $con); + } + + public static function doSelect(Criteria $criteria, $con = null) + { + DomainPermissionPeer::addDomainPermissionCriteria($criteria, MailboxPeer::DOMAIN_ID); + return parent::doSelect($criteria, $con); + } + + public static function doSelectJoinDomain(Criteria $criteria, $con = null) + { + DomainPermissionPeer::addDomainPermissionCriteria($criteria, MailboxPeer::DOMAIN_ID); + return parent::doSelectJoinDomain($criteria, $con); + } +} |