summaryrefslogtreecommitdiffstats
path: root/lib/model/MailboxPeer.php
blob: 46170c3fd9aa0b9de245b6288deb84708b83fd3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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);
	}
}