From e53c20bbcdc3f02a0e85975fce0f5c9b963e4cfe Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Fri, 24 Aug 2012 12:36:20 -0400 Subject: [PATCH] cc-3936: added method to make it easier to get users of a certain type. --- airtime_mvc/application/models/User.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/airtime_mvc/application/models/User.php b/airtime_mvc/application/models/User.php index 05e13bf97..0aa8a4236 100644 --- a/airtime_mvc/application/models/User.php +++ b/airtime_mvc/application/models/User.php @@ -238,6 +238,9 @@ class Application_Model_User return $user; } + public static function getUsersOfType($type) { + return CcSubjsQuery::create()->filterByDbType($type)->find(); + } public static function getUsers(array $type, $search=null) { $con = Propel::getConnection();