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